Post

Replies

Boosts

Views

Activity

Can't run iOS App on "My Mac (Designed for iPad)"
Since updating to macOS 14.4 (23E214) (I think) I can no longer run my App with target "My Mac (Designed for iPad)". The error is: Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. Looking in console: System Policy: Xcode(39249) deny(1) file-read-data /private/var/db/MobileIdentityService/Configuration/Version.plist Interestingly, renaming the bundle id, build and run (fails too) and renaming back allows it to run once. Perhaps this is a bug in whatever is enforcing it not to run. Nothing else (clean, delete derived data, delete app container) allows it to run.
1
0
555
Mar ’24
Optionally load dynamic SwiftPM
I want to support iOS 12+, but also want to use a SwiftPM package that only supports iOS 13+. The SwiftPM library is dynamic, so I want to build it, copy it to Frameworks, but not link to it, and then load it at runtime on iOS 13+. The last step is not too complex: if(@available(iOS 13, *)) { dlopen("MySwiftPMPackage.framework/MySwiftPMPackage", RTLD_LAZY); Class MySwiftPMPackageViewController = NSClassFromString(@"MySwiftPMPackageViewController"); // create an instance of `MySwiftPMPackageViewController` and use it } This works if I add the package to my target in "General > Frameworks, Libraries..." and "Build Phases > Target Dependencies" and then remove it from "Link binary with libraries" (despite the crash there in Xcode 14 the first time I try). It will then run on iOS 12 and iOS 13+. The problem is, every time I reload the project, the library is added back to "Link binary with libraries", presumably because the package refreshes. Is there any way to prevent it from being added back there?
0
0
658
Oct ’22
Prevent "Focus Movement"
I use GCKeyboard to detect key events, but if there is a text field on screen then arrow keys will cause the text field to become first responder due to the new _UIFocusEngineRepeatingPressGestureRecognizer automatically added to the window in iOS 16. Other than removing those manually, is there a way to prevent this behaviour?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
747
Sep ’22