ld:警告:忽略文件

时间:2014-04-07 11:17:43

标签: ios iphone

我收到警告

 ld: warning: ignoring file [path]/libMAKit.a, missing required architecture i386 in file Undefined symbols for architecture i386:   "_OBJC_CLASS_$_MAViewController", referenced from:       _OBJC_CLASS_$_AnalysisViewController in AnalysisViewController.o   "_OBJC_CLASS_$_MAChartView", referenced from:       objc-class-ref in AnalysisViewController.o   "_OBJC_CLASS_$_MAKitTheme_WelterWeightDark", referenced from:       objc-class-ref in AnalysisViewController.o   "_OBJC_METACLASS_$_MAViewController", referenced from:       _OBJC_METACLASS_$_AnalysisViewController in AnalysisViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

2 个答案:

答案 0 :(得分:7)

看起来libMAKit.a没有模拟器(i386)架构,如果你有源代码,你可以重建它,但经常第三方库没有i386架构,只能在真实设备上使用

答案 1 :(得分:1)

尝试找到一些丢失的文件(红色字母),如图像。我们花了一天的大部分时间来弄清楚我没有在当地拥有所有图像。 (对不起,如果它的英文不好)