【问题标题】:Using Travis CI with Swift 3.0 & CocoaPods将 Travis CI 与 Swift 3.0 和 CocoaPods 一起使用
【发布时间】: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:

这是最新提交的日志:

TravisCI Log

【问题讨论】:

  • 请在问题中包含日志。
  • 我认为您缺少配置 在再次在 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


【解决方案1】:

你见过这个错误吗?

No profiles for 'com.simnik.Friendschallenge' were found: Xcode couldn't find a provisioning profile matching 'com.simnik.Friendschallenge'. Code signing is required for product type 'Application' in SDK 'iOS 10.1' ** BUILD FAILED **

据此 - 您需要使用正确的配置文件。

更多信息你可以找到here

【讨论】:

    【解决方案2】:

    检查您的配置文件和相关的证书。这里查看关于 Apple Troubleshooting 的链接Apple Troubleshooting.About Signing Identities and CertificatesCode signing.这里是制作签名证书和配置文件的链接Tutorial

    【讨论】:

      猜你喜欢
      • 2012-09-19
      • 1970-01-01
      • 1970-01-01
      • 2017-11-26
      • 2013-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多