Info.plist Preprocessing Not Working In Xcode 4
| Originator: | brianpartridge | ||
| Number: | rdar://10132069 | Date Originated: | 15-Sept-2011 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 4.2 |
| Classification: | Regression | Reproducible: | Yes |
Summary: After building a target, subsequent builds of the same target do not perform preprocessing of the target's Info.plist file. Steps to Reproduce: - Create an iOS application project. - Create a file in the same directory as the .xcodeproj file named 'InfoPlist.h', with contents: #define FOOBAR Hello - In the target build settings check 'Preprocess Info.plist File'. - In the target build settings set 'Info.plist Preprocessor Prefix File' to 'InfoPlist.h'. - In the project's Info.plist file add a new row with key: 'foobar' and value: 'FOOBAR'. - Build the project. - Find the Info.plist in the resulting app bundle. Note that the value for the 'foobar' key is 'Hello'. - Edit 'InfoPlist.h' to have contents: #define FOOBAR Goodbye - Build the project. - Find the Info.plist in the resulting app bundle. Note that the value for the 'foobar' key is 'Hello'. Expected Results: In the last step above, the value for the 'foobar' key should be 'Goodbye'. Actual Results: The value for the 'foobar' key is still 'Hello'. Regression: In Xcode 3.2.6 preprocessing is performed every time a target is built so the 'foobar' key is always updated to contain the correct value. Notes: Performing a Clean and then building again causes the correct value to be embedded in the Info.plist file. But subsequent builds repeat the same problem, until a Clean is performed again.
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!