running agvtool sets target architecture to invalid setting
| Originator: | jehiah | ||
| Number: | rdar://10598164 | Date Originated: | 17-Dec-2011 09:10 PM |
| Status: | Duplicate/8985658 | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: |
When an xcode project is open and using `agvtool` for versioning, executing agvtool changes the target architecture from 'iOS Device/iPhone Simulator/iPad Simulator' to 'My Mac 64bit' which is an invalid value of a ios project. A subsequent build will crash Xcode. Steps to Reproduce: 1) create a sample iOS XCode project 2) in the directory containing .xcodeproj run `agvtool what-marketing-version`. This will cause the target archictecture to change 3) try to build the project. (XCode will crash) Expected Results: using agvtool will not change the target archictecture. Actual Results: target architecture changes to an invalid value. to reset you must restart XCode. Notes: agvtool is the apple provided method of incrementing versioning. I have it configured as a run scripts phase to run `/usr/bin/agvtool next-version -all` as documented at http://www.blog.montgomerie.net/easy-iphone-application-versioning-with-agvtool http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/agvtool.8.html
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!
[SOLUTION]
I just came across the same issue today. This happens if you run agvtool while having Xcode open. So, close Xcode, run agvtool and re-open Xcode.