iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

xcode 4.5 command line can't build framework

Open rayceli opened this issue 12 years ago • 3 comments

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.

rayceli avatar Sep 13 '12 07:09 rayceli

me too.

jinwoo-lee-github avatar Sep 29 '12 15:09 jinwoo-lee-github

+1

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

yuchao avatar Nov 01 '12 09:11 yuchao

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).

shagedorn avatar Nov 02 '12 10:11 shagedorn