所以我有一個iPhone靜態庫,我正在嘗試構建。我有這個問題中使用的腳本(http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4),但是我碰到的問題是,我似乎仍然無法成功構建模擬器的靜態庫。當我建立在靜態庫項目,我得到了如下警告:iPhone模擬器靜態庫問題
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的被納入架構和有效的架構。有小費嗎?