在 XCode 中运行我的项目时,我的测试给出了这个错误:
target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'iphoneos' platform
它发生在几次 XCode 更新之后。有谁知道如何解决这一问题?
在 XCode 中运行我的项目时,我的测试给出了这个错误:
target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'iphoneos' platform
它发生在几次 XCode 更新之后。有谁知道如何解决这一问题?
看起来 Xcode 6 将 ocunit 测试包的产品标识符从com.apple.product-type.bundle
更改为com.apple.product-type.bundle.ocunit-test
.
编辑并替换with$(ProjectName).xcodeproj/project.pbxproj
的任何实例。现在,每当您使用 Xcode 6 打开您的项目,然后想在 Xcode 5 中打开它时,您都需要这样做。com.apple.product-type.bundle.ocunit-test
com.apple.product-type.bundle
对我有用的是: