今天測試一個(gè)iOS程序,運(yùn)行的直接報(bào)錯(cuò)了,錯(cuò)誤信息是:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=arm32 armv7 armv7s).
解決方法
1毛肋,在Project target里“Architectures”設(shè)置為“Standard (armv7,armv7s)”
2,修改在Project target里“Build Settings”的“Valid Architectures”添加“i386”和“armv7”(Xcode4.6 以上版本不再支持armv6,請去掉)
3,設(shè)置”Build Active Architecture Only”為“NO”旋奢。這樣你build你的項(xiàng)目的時(shí)候就能在iphone5和iphone4s里執(zhí)行。