所以我有一个我正在尝试构建的 iPhone 静态库。我有这个问题中使用的脚本(http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4),但是我遇到的问题是我似乎仍然无法成功地为模拟器构建静态库。当我在静态库项目中构建时,我收到以下警告:
warning: no rule to process file '$(PROJECT_DIR)/GDInAppStore/GDInAppStore.m' of type sourcecode.c.objc for architecture i386
warning: no rule to process file '$(PROJECT_DIR)/GDInAppStore/SKProduct+priceAsString.m' of type sourcecode.c.objc for architecture i386
warning: no rule to process file '$(PROJECT_DIR)/GDInAppStore/VerificationControllerPBK.m' of type sourcecode.c.objc for architecture i386
我相信这个问题导致了导致我从构建脚本获得的通用库的问题,导致我的其他项目中出现此错误
ld: warning: ignoring file /Users/abotkin/Projects/Static Libraries/GDInAppStore/libGDInAppStore.a, missing required architecture i386 in file
"_OBJC_CLASS_$_GDInAppStore", referenced from:
objc-class-ref in SubscribeNowInAppController.o
ld: symbol(s) not found for architecture i386
我正在使用 Xcode 4.3.2 并在静态库 Xcode 项目中设置了标志,以便 i386 包含在架构和有效架构中。有小费吗?