ios - 带有 : ERROR: Cannot find schemes 的 Travis-CI

标签 ios objective-c xcode continuous-integration travis-ci

这是我的.travis.yml文件

language: objective-c

osx_image: xcode7.2

script: 
   xctool -project ProjectName.xcodeproj -scheme ProjectName build -sdk iphonesimulator

当 Travis 运行时我遇到了这个错误:

$ xctool -project ProjectName.xcodeproj -scheme ProjectName build -sdk iphonesimulator

ERROR: Cannot find schemes. Please consider creating shared schemes in Xcode.

TIP: This might happen if you're relying on Xcode to autocreate your schemes and your scheme files don't yet exist. xctool, like xcodebuild, isn't able to automatically create schemes. We recommend disabling "Autocreate schemes" in your workspace/project, making sure your existing schemes are marked as "Shared", and making sure they're checked into source control.

最佳答案

这个问题很容易解决:

转到您的项目方案并单击Manage Schemes...

enter image description here

为你的方案勾选Shared

enter image description here

点击关闭,提交并推送。

问题已解决。现在 Travis 的工作没有任何问题。

I also wrote a post in my blog about Travis-CI.

关于ios - 带有 : ERROR: Cannot find schemes 的 Travis-CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35198798/

相关文章:

c++ - SFML 2.1 和 Xcode 4.6.3 - "The specified SDK "当前 OS X“似乎没有安装所有必要的 header 。”

ios - Xcode 5 中的代码完成 - 不适用于 "for"和 "switch"语句

ios - 如何在 UIScrollView 中调用嵌入式 ViewControllers 生命周期 - Swift - 以编程方式

objective-c - 如何将带有图像的项目添加到 NSMenu 中?

ios - 查找从服务器接收到的数据的文件类型

ios - Xcode本地化文件复制不正确

ios - 如何将文件以字节数组形式下载到 iPhone?

ios - 如何实现像iPhone 4视频播放器框架滚动一样的滚动

objective-c - timeIntervalSinceDate 返回什么时间单位?

xcode - XCode 4 中隐藏的运行/停止按钮