【发布时间】:2016-11-10 03:45:42
【问题描述】:
我花了一些时间来解决这个问题,所以我想如果有人搜索它,他们可能会在这里找到解决方案。
问题发生在我有一个名为 CoreUI 的框架时。这在我的 iPhone 和 iPad 上运行良好,但在模拟器上崩溃,终端出现以下错误
dyld: Symbol not found: _OBJC_CLASS_$_CUICatalog
Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/UIKit.framework/UIKit
Expected in: /Users/sareninden/Library/Developer/Xcode/DerivedData/Treinplanner-bcfwuvntuwetsmavibxtvaiczpfg/Build/Products/Debug-iphonesimulator/CoreUI.framework/CoreUI
in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/UIKit.framework/UIKit
在查看了所有构建设置但一无所获后,我尝试使用名为 CoreUI 的框架创建一个空项目。在没有添加任何逻辑的情况下,它会因相同的错误而崩溃。
在模拟器中CoreUI似乎也是Apple使用的框架名称。即使它是一个只有 swift 的框架,它仍然会导致冲突。
【问题讨论】:
标签: ios swift frameworks crash ios-simulator