use*_*195 6 continuous-integration travis-ci swift xcode7
它是一个仅限框架项目(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.
Run Code Online (Sandbox Code Playgroud)
我的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
Run Code Online (Sandbox Code Playgroud)
小智 2
对于 Xcode 7.2
尝试添加-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0'
脚本: - xcodebuild clean build test -project HelloWorld.xcodeproj -scheme HelloWorld CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0'
| 归档时间: |
|
| 查看次数: |
1762 次 |
| 最近记录: |