【发布时间】:2016-11-29 18:36:42
【问题描述】:
自从我在我的 GitHub 教育包中获得 TravisCI 以来,我正在试用它。
我在 iOS 10.1 上做 TDD。
我还不知道如何为 Swift 3.0、iOS 10.1 和使用 CocoaPods 配置 TravisCI。
我设法将 TravisCI 与我的存储库关联起来。但除此之外,我总是收到“构建失败”消息。
不确定是否重要,但我的仓库中没有 Pod 文件夹。
我看到了 TravisCI 和 Swift 的教程,并从那里重新创建了 travis.yml,看起来像这样:
language: objective-c
branches:
only:
- master
- Development
xcode_project: Friendschallenge.xcodeproj
xcode_scheme: FriendschallengeTests
osx_image: xcode8.1
xcode_sdk: iphonesimulator10.1
script:
- xcodebuild clean build test -project Friendschallenge.xcodeproj -scheme FriendschallengeTests
我希望你能帮助我。
编辑 1:
这是最新提交的日志:
【问题讨论】:
-
请在问题中包含日志。
-
我认为您缺少配置 在再次在 Travic 上测试之前尝试在本地尝试此命令以避免浪费等待 Travis 的时间:xcodebuild clean build test -project Friendschallenge.xcodeproj -scheme FriendschallengeTests -configuration Debug。如果不将 xcode 配置设置为自动。错误来自您提交的项目,提到您的本地机器 PF 和 Cetificate。
-
运行这个给我一个错误:“A build only device cannot be used to run this target” 如何选择目标?
标签: ios github swift3 cocoapods travis-ci