xctool Always Uses System Xcode Path #193
Comments
I went ahead and wrote detroit-labs/safe-xcode-select as a temporary workaround, but that requires compiling it and installing it on your server. |
I think this is a good feature to have. We'll look into it. Thanks for the report! |
why not just use xcrun to invoke xcodebuild? xcrun will honour the DEVELOPER_DIR environment variable to select which xcodebuild to use. |
There actually is a workaround for this, but we've never documented it. Like @orj points out, Xcode's command line utilities will honor whatever path is found in the If you do ...
... the right things will happen. Internally, xctool is always calling |
This is a little late, but thanks! We’re upgrading our CI system and this means there’s one less thing we have to do. |
We have
xctool
installed on our Jenkins instance to do our CI work on our iOS projects. Problem is, we have a lot of clients and a lot of apps. Some of our apps have moved to iOS 7, while others are back on iOS 5 (when you a bunch of products through the app, you can’t exactly cut out 5% of users). It would be great if we could have Xcode 5 through the App Store and Xcode 4.6.3 installed simultaneously.xctool
uses the system Xcode path fromxcode-select
, so AFAIK there is no way to do this without usingxcode-select
in our build path to select the path before running. Sincexcode-select
needs to be run withsudo
, the only options there are to run the build script with higher permissions (bad), use thesetuid
bit onxcode-select
to make it always run as root (gross), or make a script somewhere with thesetuid
bit set and have it pass arguments toxcode-select
(eww).If instead we could pass a path to
xctool
, well, that’d be great.The text was updated successfully, but these errors were encountered: