ios – Travis-CI与:错误:无法找到方案

前端之家收集整理的这篇文章主要介绍了ios – 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

为您的计划勾选共享

enter image description here

单击关闭,提交并按下.

问题解决了.现在特拉维斯没有问题.

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

猜你在找的Xcode相关文章