0
我正在开发一个假的静态框架。我构建它并包含另一个示例应用程序。示例应用程序在iPhone上运行良好(IOS 7.1),但它给下面的错误,当我在模拟器架构i386的未定义符号和未找到架构i386的符号
ld: warning: ignoring file /Users/awsuser8/Desktop/Test.framework/Test, file was built for archive which is not the architecture being linked (i386): /Users/awsuser8/Desktop/Test.framework/Test
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Test", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1.如果您的库中包含多个库文件以包含在项目中,则需要包含模拟器(i386)和设备(例如armv7)。 2.确保您在Build Phases的Link Bin With Libraries部分中添加了正确的库。 – Vacca