ios中framework 运行测试提示test failed

24 篇文章 0 订阅



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



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值