Travis-CI错误编译Storyboard(编译故事板文件LaunchScreen.storyboard)

时间:2016-02-03 21:42:55

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

我的.travis.yml文件:

language: objective-c

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

虽然Travis-CI正在构建项目,但我遇到了这个错误:

✗ Compile Storyboard file LaunchScreen.storyboard (12902 ms)
/Users/travis/build/GabrielMassana/ProjectName/Base.lproj/LaunchScreen.storyboard:XuA-eV-9XL: error: Launch screens may not use instances of IBUISceneExitPlaceholder.

1 个答案:

答案 0 :(得分:1)

看起来Travis在这里使用的是旧版Xcode。

要解决这个问题,我在.travis.yml文件中使用此行强制Travis Xcode为7.2版本:

osx_image: xcode7.2

所以我的最终.travis.yml文件是:

我的.travis.yml文件:

language: objective-c

osx_image: xcode7.2

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

最后:

** BUILD SUCCEEDED ** (13604 ms)

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