Building with xcodebuild Timed out waiting for <IDEWorkspace, 0x2004cebc0>/“runContextManager.runContexts”

二次信任 提交于 2019-12-02 17:00:19

checking the "shared" box in the "Manage Schemes" dialog moves the schemes to Project.xcodeproj/xcshareddata/xcschemes/Scheme.xcscheme

so even if you have a clean checkout that has never been opened via the xcode ui, this will work. we use this so that buildbot can build our apps

Unfortunately xcodebuild depends on some per user files generated by the XCode. To fix this you can log in as your hudson user and run the XCode UI once. That will create the necessary files.

I'm currently trying to work around this, but copying the needed files into the source tree before building.

If you run xcodebuild and XCode is running in the background, xcodebuild will contact XCode to get the needed data. Since XCode is not running, you get the timeout.

Grav

Schemes are per default not shared between users (and your build-server). As David mentions, you can share them, but you can also just invoke the targets instead, which are shared.

So instead of

xcodebuild -scheme Foobar

it'd be

xcodebuild -target Foobar

since schemes are normally named the same as the target.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!