我试图将我们现有的CocoaPod配置从0.39.0迁移到1.0.1。迁移到CocoaPods 1.0.1
我们现有的Podfile
样子:
platform :ios, '9.0'
use_frameworks!
target 'Tools' do
pod 'zipzap', '~> 8.0.4'
pod 'Argo', '~> 2.2.0'
pod 'Curry', :git => 'https://github.com/thoughtbot/Curry.git', :commit => 'eeb459fac309833288e61e134a4e8fad649e99b0'
end
target 'ToolsTests' do
end
这编译和测试跑就好了前面。 After following the migration guide.我重新调整了Podfile
像这样:
platform :ios, '9.0'
target 'Tools' do
use_frameworks!
pod 'zipzap', '~> 8.0.4'
pod 'Argo', '~> 2.2.0'
pod 'Curry', :git => 'https://github.com/thoughtbot/Curry.git', :commit => 'eeb459fac309833288e61e134a4e8fad649e99b0'
target 'ToolsTests' do
inherit! :search_paths
end
end
这将编译和链接就好了。不幸的是,测试运行时,他们与崩溃:
2016-06-07 12:04:06.265 xctest[56474:789900] The bundle “ToolsTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-06-07 12:04:06.299 xctest[56474:789900] (dlopen_preflight($HOME/Library/Developer/Xcode/DerivedData/Tools-dbmncsubtoarlhhcrpchrswefprz/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator/ToolsTests.xctest/ToolsTests): Library not loaded: @rpath/Argo.framework/Argo
Referenced from: $HOME/Library/Developer/Xcode/DerivedData/Tools-dbmncsubtoarlhhcrpchrswefprz/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator/ToolsTests.xctest/ToolsTests
Reason: image not found)
Program ended with exit code: 82
在迁移指南,它说:
我们收到的bug报告很大一部分是由于Podfile歧义。它给了很大的自由来创建各种可以用实现细节运行的CocoaPods设置,或者工作,但比他们需要的复杂得多。
这是过去的“实施细节运气”工作的这种情况之一吗?如果不是什么正确的Podfile
语法?
我应该注意,如果我在ToolsTests
中复制pod
defs,那么一切正常。虽然这感觉错了。