我在这里查看了很多答案,但没有一个能解决我的问题。
我有一个 Xcode 工作区,其中包含自定义框架和 iOS 应用程序项目。该项目直到今天早上都运行良好,现在它可以构建但立即崩溃:
dyld: Library not loaded: @rpath/ONCKit.framework/ONCKit
Referenced from: /private/var/mobile/Containers/Bundle/Application/4DF67A3F-6255-4276-8812-8C742A363995/atero_t.app/atero_t
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/4DF67A3F-6255-4276-8812-8C742A363995/atero_t.app/Frameworks/ONCKit.framework/ONCKit: mmap() error 1 at address=0x100118000, size=0x000B8000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/4DF67A3F-6255-4276-8812-8C742A363995/atero_t.app/Frameworks/ONCKit.framework/ONCKit
/private/var/mobile/Containers/Bundle/Application/4DF67A3F-6255-4276-8812-8C742A363995/atero_t.app/Frameworks/ONCKit.framework/ONCKit: mmap() error 1 at address=0x100280000, size=0x000B8000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/4DF67A3F-6255-4276-8812-8C742A363995/atero_t.app/Frameworks/ONCKit.framework/ONCKit
我一整天都在尝试build设置,但我完全迷失了。
最佳答案
如果这对任何人都有帮助,我在网上找到的所有解决方案都不适合我。拉了我的头发两天,并尝试了一切。我撤销了内部证书、新的配置文件、将文件添加到嵌入式等。
我一生都无法弄清楚出了什么问题,直到我注意到在钥匙串(keychain)访问中我的 Apple WWDR 和 iOS 发行版证书被设置为“始终信任”
而不是“使用系统默认值” ”。将我的证书切换回“使用系统默认值”,一切都恢复正常工作。我不知道为什么以及如何工作,但它确实如此。
关于xcode - dyld : Library not loaded. 原因:找不到合适的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27116371/