kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.94k stars 473 forks source link

xcode 4.5 command line can't build framework #94

Open rayceli opened 11 years ago

rayceli commented 11 years ago

after i upgrade xcode version to 4.5, when i build my framework in command line

xcodebuild -sdk "iphoneos" "ARCHS=armv6 armv7" "VALID_ARCHS=armv6 armv7" "ONLY_ACTIVE_ARCH=NO" -target YK -configuration "Release" clean build

i got this error:

Framework target "YK" had no source files to build from. Make sure your source files have the correct target membership Command /bin/sh failed with exit code 1

but when i try build it from gui xcode, it works.

jinwoo-lee-github commented 11 years ago

me too.

yuchao commented 11 years ago

+1

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386).

shagedorn commented 11 years ago

As of Xcode 4.5, armv6 is no longer supported. It probably works in Xcode because the project/target settings have been updated to build armv7 and possibly armv7s, but you won't get an armv6 build with Xcode 4.5.

http://developer.apple.com/library/mac/releasenotes/DeveloperTools/RN-Xcode/_index.html#//apple_ref/doc/uid/TP40001051-SW174 "This version of Xcode does not generate armv6 binaries. 12282156" (Changes : General : iOS)

Since deployment targets < 4.3 aren't supported either, it kind of makes sense to drop armv6 support (although dropping armv6 support was probably the reason to force a deployment targer >= 4.3).