加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 18:09:47 所属栏目:百科 来源:网络整理
导读:这是我的.travis.yml文件 language: objective-cosx_image: xcode7.2script: xctool -project ProjectName.xcodeproj -scheme ProjectName build -sdk iphonesimulator 当Travis正在运行时,我遇到了这个错误: $xctool -project ProjectName.xcodeproj -sche
这是我的.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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读