今天在旧的工程中,用xcode4debug,发现链接错误,本以为是之前的静态库编译的版本太低,重新使用xcode4编译。从新加入工程中,同样的错误,奇怪了...
仔细查看了错误信息
ignoring file /Users/***/***/Work/iPhone/CPt/Debug-iphoneos/libCPt.a, file was built for archive which is not the architecture being linked (armv6)
Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_CPTRange", referenced from:
发现armv6,总是这个错误,而且在release编译时候不出错,arche也没问题。只有在debug时候出现。
尝试修改
Build Architectures 的debug选项为Opimized(armv7),一编译竟然ok了。