这似乎是CocoaPods的一个问题,首先根据guidelines询问。CocoaPods测试目标库未加载退出代码82
使用的Xcode 7.3.1,1.0.1的CocoaPods,1.0.0-beta6和1.1.0-β1
创建使用pod lib create SwiftTest
- 语言的新吊舱项目? Swift
- 演示?是的
- 测试框架?无
- 基于视图的测试?否
将单个类函数添加到自动生成的ReplaceMe.swift
文件以测试项目集成。
从示例项目中调用函数将按预期工作。
调用从测试项目函数失败,错误如下:
The bundle “SwiftTest_Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
(dlopen_preflight(/...): Library not loaded: @rpath/SwiftTest.framework/SwiftTest ... Reason: image not found)
Program ended with exit code: 82
例项目:https://github.com/NextFaze/SwiftTest
查看CocoaPods问题:https://github.com/CocoaPods/CocoaPods/issues/5750 –