In the MacOS bigsur environment of M1, an application compiled using Xcode (12.5) reported an error when running on the Terminals of Recovery or other new machine, with "dyld: library not loaded:/usr/lib/swift/libswift AppKit. dylib".
May I ask if there are any compilation options that need to be changed for Xcode? In the past, on Macs with Intel chips, I could have Xcode automatically add the swift dynamic library to the app by changing the compatible system version to 10.13. However, on M1, changing the compatible minimum system version of Xcode no longer automatically adds the swift dynamic library to the frameworks. I attempted to manually add the Swift dynamic library to the application, but found that starting from OS11, the Swift dynamic library no longer exists in the/usr/lib/swift directory, and all the built-in dynamic libraries in the system are bound together and placed in Dyld_ Shared_ Cache_ In arm64e, and I am unable to extract the correct and available dylib from this file.
May I ask what I need to do to successfully run the Xcode generated application in the recovery ? Or how to manually add libswiftxxx.dylib to the application.
Post
Replies
Boosts
Views
Activity
How can I check if my computer has been entered into the macOS recovery by someone, and Can I view the relevant logs for macOS recovery?