【发布时间】:2019-02-02 02:53:59
【问题描述】:
我创建了一个 Xcode 框架项目,然后我使用 CocoaPods 导入另一个模块。然后我想写一个单元测试。
但是当单元测试运行时,出现了运行时错误
2019-02-02 10:20:39.157536+0800 xctest[90385:6327514] The bundle “XXX” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2019-02-02 10:20:39.157855+0800 xctest[90385:6327514] (dlopen_preflight(/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-dfsjsywxidmqgmaudrhgrhgniihc/Build/Products/Debug-iphonesimulator/XXX.xctest/XXXTests): Library not loaded: @rpath/XXX1.framework/XXX1
Referenced from: /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-dfsjsywxidmqgmaudrhgrhgniihc/Build/Products/Debug-iphonesimulator/XXX.framework/XXX
Reason: image not found)
Program ended with exit code: 82
如何解决这个问题。
【问题讨论】:
标签: ios swift xcode frameworks