iOS-Universal-Framework
iOS-Universal-Framework copied to clipboard
xcode 4.5 command line can't build framework
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.
me too.
+1
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386).
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).