Xcode 4.4 DP7 cannot link projects that use ARC and also target armv6 devices

Originator:linde.andreas
Number:rdar://11889190 Date Originated:Tue, 17 Jul 2012 10:13:23 GMT
Status:Resolved Resolved:
Product:iPhone SDK Product Version:Xcode 4.4 DP7
Classification:Serious Bug Reproducible:Always
 
Summary:
Xcode 4.4 DP7 cannot link projects that use ARC and also target armv6 devices.

Steps to Reproduce:
- Setup a project that uses ARC
- Build for armv6 and armv7
- Set a deployment target to iOS 4.0 (or any higher, but lower than iOS 4.3)
- Build for both architectures

Expected Results:
- No errors

Actual Results:
ld: warning: ignoring file /Applications/Xcode44-DP7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a, file was built for archive which is not the architecture being linked (armv6): /Applications/Xcode44-DP7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

Regression:
Copy libarclite_iphoneos.a from Xcode 4.3.3 into the above path, and everything works again.

Notes:

Comments

Fixed in release version

This was fixed in the released version of Xcode 4.4.

By oliver.drobnik at Aug. 7, 2012, 10:54 a.m. (reply...)

The libarclite_iphoneos.a library in Xcode 4.5-DP3 seems to have the same issue (no longer a fat library with both armv6/armv7).


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!