【发布时间】:2017-11-26 17:15:08
【问题描述】:
我有一个构建框架项目的 Xcode Workspace
Framework1 项目独立构建,没有任何依赖关系。并且这个框架包含在Workspace
另一个框架项目Framework2 使用Framework1 作为依赖并构建。
现在,如果我从 Framework2 项目运行测试,它会给出以下错误
> 2017-06-23 15:44:17.029 xctest[1884:32036] The bundle
> “Framework2Tests” couldn’t be loaded because it is damaged or missing
> necessary resources. Try reinstalling the bundle. 2017-06-23
> 15:44:17.029 xctest[1884:32036]
> (dlopen_preflight(/Users/ME/Library/Developer/Xcode/DerivedData/Linker-bhbtuyxcsiwybtheoopvbaexcyfr/Build/Products/Debug-iphonesimulator/Framework2Tests.xctest/Framework2Tests):
> Library not loaded: @rpath/Framwork1.framework/Framwork1 Referenced
> from:
> /Users/ME/Library/Developer/Xcode/DerivedData/Linker-bhbtuyxcsiwybtheoopvbaexcyfr/Build/Products/Debug-iphonesimulator/Framework2.framework/Framework2
> Reason: image not found)
> Program ended with exit code: 82
示例项目 - https://github.com/nanjundas/LinkerError
有人可以帮我吗??
【问题讨论】:
标签: ios swift xcode linker-errors xctest