这是我的.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...
为你的方案勾选Shared
点击关闭
,提交并推送。
问题已解决。现在 Travis 的工作没有任何问题。
关于ios - 带有 : ERROR: Cannot find schemes 的 Travis-CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35198798/