ios中framework 运行测试提示test failed

来源:互联网 发布:garageband软件下载 编辑:程序博客网 时间:2024/06/06 05:28


ios中在写framework 需要测试 但是运行测试提示test failed,并且报下面的错误

2016-07-06 20:46:12.977 xctest[32953:2574013] The bundle “XXXsdkTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.2016-07-06 20:46:12.978 xctest[32953:2574013] (dlopen_preflight(/Users/lsq/Library/Developer/Xcode/DerivedData/XXXsdk-flllbifcyllkdmbebspheywtslcv/Build/Products/Debug-iphonesimulator/XXXsdkTests.xctest/XXXsdkTests): Library not loaded: @rpath/ploarsslFramwork.framework/ploarsslFramwork  Referenced from: /Users/lsq/Library/Developer/Xcode/DerivedData/XXXsdk-flllbifcyllkdmbebspheywtslcv/Build/Products/Debug-iphonesimulator/XXXsdk.framework/XXXsdk  Reason: image not found)Program ended with exit code: 82

最终解决方法:

选择项目-》xxxTests-》Build Phases-》点+ -》添加 copy files-》选择Destination为Frameworks-》选择自己需要添加的framews 

然后再测试就可以通过了


参考:http://blog.csdn.net/u010696783/article/details/47778881



0 0
原创粉丝点击