Ad Hoc build error: ipatool path collision

Updated expired IOS Distribution certificate, re-generated and downloaded provisioning profiles. Now app with Watch OS1, 2 targets fails when exporting Ad Hoc Archive with the following IDEDistribution.critical.log entry. Both watchApp targets use the same Bundle Id (when they were different, error would say they need to have the same Bundle Id). Enable BitCode set to NO for OS1, and YES for OS2. Used to build before expiring cert. Not sure if issue has anything to do with bitcode. Ideas?


2015-10-18 01:09:52 +0000 [MT] Presenting: Error Domain=IDEFoundationErrorDomain Code=1 "ipatool failed with an exception: #<RuntimeError: Path collision: /var/folders/xn/yr9m4lwd64515kmprkyd7yjc0000gn/T/ipatool20151017-6303-2vss35/MachOs/watchos/armv7k/com.abc.appName.watchapp/WK>

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:85:in `raiseIfFileExists'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1376:in `block (2 levels) in CompileOrStripBitcodeInBundle'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1365:in `each'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1365:in `block in CompileOrStripBitcodeInBundle'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1360:in `each'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1360:in `CompileOrStripBitcodeInBundle'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1417:in `block in CompileOrStripBitcodeInBundle'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1416:in `each'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1416:in `CompileOrStripBitcodeInBundle'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1602:in `ProcessIPA'

/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2112:in `<main>'

Answered by hishak in 87535022

Fixed in xcode 7.1.

As stated in App Distribution Guide:

Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

Only have 1 external Framework (Parse) and it is bitcode enabled. Have set all targets to Enable Bitcode = Yes. All Deployment Targets are >=8. Error received when Exporting Ad Hoc Archive leaving 'Export from bitcode' checked. If we unselect it, no error, ipa gets created and runs on device ok.

Accepted Answer

Fixed in xcode 7.1.

Ad Hoc build error: ipatool path collision
 
 
Q