"xcodebuild archive" ignores command line build settings
| Originator: | ben | ||
| Number: | rdar://10319577 | Date Originated: | 20-Oct-2011 04:49 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4D199 |
| Classification: | Reproducible: | Always |
20-Oct-2011 04:49 PM Benjamin Ragheb: Summary: The xcodebuild command line tool accepts build settings on the command line which should take precedence over any settings in the project file itself. Steps to Reproduce: 1. In Xcode, create a new project named "BugTest", any template should do. 2. Close project. 3. From command line, execute "xcodebuild -scheme BugTest archive PRODUCT_NAME=FooBar" 4. Find the resulting archive in the Xcode Organizer window. Expected Results: The key CFBundleName in the application's Info.plist ought to have the value "FooBar" Actual Results: The key CFBundleName in the application's Info.plist has the value "BugTest" Regression: This does not match the behavior of xcodebuild's build action, which respects build settings changed in this way.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
The -xcconfig option is likewise broken
xcodebuild also has a -xcconfig parameter which allows settings to be set. These are documented to take precedence over everything, including command-line options.
As with command-line options this works correctly for the 'build' action but 'archive' action currently ignores them.