我想构建我的第一个静态库,并且遇到了编译问题。我的意思是我可以编译我的图书馆和每一件事情看起来不错,但是当我建立了一个测试项目来测试它,我得到了这样那样的错误:iOS:编译静态库
ld: warning: ignoring file /Users/*/Desktop/TestApp/LibProva/libProva.a, file was built for archive which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_OBJC_CLASS_$_Prova", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: ignoring file /Users/**/Desktop/TestApp/LibProva/libProva.a, file was built for archive which is not the architecture being linked (i386)
所以我想这就是有毛病编译(因不同在模拟器和设备中的架构),但我无法找到如何以正确的方式做到这一点。有人能解释我如何解决这个问题吗?