您的位置:首页 > 移动开发 > IOS开发

ios中framework 运行测试提示test failed

2016-07-06 20:54 337 查看


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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: