Building with xcodebuild Timed out waiting for /“runContextManager.runContexts”

前端 未结 3 1036
陌清茗
陌清茗 2021-01-31 08:13

I am setting up my iphone project to run with hudson, my build script works fine locally, but when executing the following command on my snow leopard server mac

         


        
相关标签:
3条回答
  • 2021-01-31 08:36

    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.

    0 讨论(0)
  • 2021-01-31 08:38

    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.

    0 讨论(0)
  • 2021-01-31 08:40

    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

    0 讨论(0)
提交回复
热议问题