Swift 框架项目仅生成设备不能用于运行此目标
这是一个只支持框架的项目(SWIFT),它构建了一个库(.Framework module),与单元测试一起链接到项目,并最终导致以下错误Swift 框架项目仅生成设备不能用于运行此目标,swift,continuous-integration,xcode7,travis-ci,Swift,Continuous Integration,Xcode7,Travis Ci,这是一个只支持框架的项目(SWIFT),它构建了一个库(.Framework module),与单元测试一起链接到项目,并最终导致以下错误 ** BUILD SUCCEEDED ** xcodebuild: error: Failed to build project HelloWorld with scheme HelloWorld. Reason: A build only device cannot be used to run this target. The command "
** BUILD SUCCEEDED **
xcodebuild: error: Failed to build project HelloWorld with scheme HelloWorld.
Reason: A build only device cannot be used to run this target.
The command "xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO" exited with 70.
我的travis yml文件是
language: objective-c
branches:
only:
- master
xcode_project: HelloWorld.xcodeproj
xcode_scheme: HelloWorld
osx_image: xcode7.2
script:
- xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY=""
CODE_SIGNING_REQUIRED=NO
对于Xcode 7.2
尝试添加-destination'platform=iOS模拟器,name=iphone6,OS=9.0'
脚本:
-xcodebuild clean build test-project HelloWorld.xcodeproj-scheme HelloWorld CODE\u SIGN\u IDENTITY=“”
CODE\u SIGNING\u REQUIRED=NO-destination'platform=iOS Simulator,name=iPhone 6,OS=9.0'可能重复的