My name is Luca, and I'm currently working on continuous iOS integration to create applications in xcode for distribution (Ad Hoc and App Store) using shell scripts.
So far, I have achieved good results using IPA files. My problem arises for distribution on the App Store. To build .app from a script (passing some arguments), I do:
xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc
Since with XCode 4.2, applications are presented using the XCode Organizer window, I must also archive my executable.
Therefore, I modify the previous command line as follows:
xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc **archive**
Unfortunately, after that, it seems to me that the "archive" argument causes xcodebuild to ignore the others (PRODUCT_NAME, TARGETED_DEVICE_FAMILY, ....), and my output is built using the predefined Xcode build settings.
I want to be able to pass arguments using xcodebuild and be efficient, but the βarchiveβ action seems to prevent this.
I'm going crazy, help :)
thanks
user1105927
source share