XCode代码信号错误XCTest

当我尝试在模拟器上运行我的应用程序时,一切正常。 但是当我尝试构build它以在真实设备上进行testing时,出现以下错误:

CodeSign /Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest cd /Users/fvoordeckers/Documents/Projecten/MyProject/iOS export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Developer: Frederik (########)" /usr/bin/codesign --force --sign ##################/Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest /Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest: bundle format unrecognized, invalid, or unsuitable Command /usr/bin/codesign failed with exit code 1 

我用#改变了ID。 我创build了一个供应configuration文件,其中包括我正在使用的设备和所需的证书。 它似乎没有与应用程序的问题,但与xctest …我也尝试添加“ – 深圳”标志的签署configuration,但它没有帮助…

转到编辑计划在xcode – >在生成目标 – >删除MyProject.xctest完全或取消选中 MyProject.xctest 分析,testing等所有框

清理您的项目,然后在设备上运行

除了将Xcode更新到最新的testing版: Xcode 7.3 Beta 4 之外 ,我遇到了同样的问题,也没有任何帮助(更新scheme,更改configuration文件或代码签名标识等)。

我想苹果在这个新版本中做了一些重大的改进:)