Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis-CI with: ERROR: Cannot find schemes

This is my .travis.yml file

language: objective-c

osx_image: xcode7.2

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

While Travis is running I've got this error:

$ 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.

like image 503
Gabriel.Massana Avatar asked Dec 25 '22 09:12

Gabriel.Massana


1 Answers

This problem is easy to solve:

Go to your project scheme and click Manage Schemes...

enter image description here

Tick Shared for your scheme

enter image description here

Click Close, commit and push.

Problem Solved. Now Travis is working without problems.

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

like image 160
Gabriel.Massana Avatar answered Dec 26 '22 22:12

Gabriel.Massana