Xcode: Removing and re-adding source to target loses compiler flags
| Originator: | chaos42 | ||
| Number: | rdar://16146412 | Date Originated: | 24-Feb-2014 12:18 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 5.0.2 (5A3005) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: If you have a target which contains source code that requires special compilation flags (e.g. -fobjc-no-arc), and you uncheck the target box in the file inspector, and re-check it, the compilation flags are not remembered. Steps to Reproduce: 1. Have a project with a target with at least one source file that requires a compiler flag for that file. 2. Navigate to the build phases setting of the target. 3. Add the required flag to that file (or if it's already there, observe it) 4. Navigate to that file. 5. In the Target Membership Section of the File Inspector, uncheck the target. 6. Check the same target. 7. Navigate back to the build phases setting of the target. 8. Observe the file. Expected Results: File should still have the compilation flag set. Actual Results: Compilation flag is not set. If the flag is required to prevent compilation errors (e.g. -fobjc-no-arc), attempting to build the target will cause the errors. Version: Xcode 5.0.2 5A3005 Notes: Configuration:
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!