【发布时间】:2016-03-26 15:41:01
【问题描述】:
这是一个仅框架项目 (SWIFT),它构建了一个库(.framework 模块)以与项目以及单元测试一起链接,并最终出现以下错误。
** 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
【问题讨论】:
标签: swift continuous-integration xcode7 travis-ci