dsymutil crashes with malloc error when using xcodebuild from an OS X app using NSTask

Originator:simonmitchell.dev
Number:rdar://22853842 Date Originated:25/09/2015
Status:Open Resolved:No
Product:xcodebuild Product Version:
Classification: Reproducible:Yes
 
Summary:
We are using xcodebuild to archive our apps for enterprise and testing purposes, when running xcodebuild from command line, the project is built and archived successfully, however running the exact same task in an OS X app using NSTask results in the attached crash log within the dsymutil command line tool.

Steps to Reproduce:
1. Create an Xcode project in Xcode 7
2. Add a framework to the project (May need to be a framework created in previous version of Xcode)
3. Create an OS X App which uses NSTask to archive the app using `xcodebuild -scheme ShemeName archive -archivePath /Users/simonmitchell/AppName`
4. Observe that the build fails on GenerateDSYMFile

Expected Results:
The app will be built and archived correctly to the supplied archive path

Actual Results:
The app is not built as dsymutil crashes with a malloc error

Version:
OSX App built using Xcode 6.4 (6E35b)
iOS App created in Xcode 7 (7A220)
xcodebuild command line tools used from Xcode 7

Notes:
Related problem : https://forums.developer.apple.com/thread/18311

Configuration:
MacBook Pro (Retina, 13-inch, Early 2015)
Processor: 2.7 GHz Intel Core i5
Memory: 8 GB 1867 MHz DDR3

Attachments:
'llvm-dsymutil_2015-09-24-195716_Simons-MacBook-Pro.crash' was successfully uploaded.

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!