当前位置: 首页 > 知识库问答 >
问题:

为某些iOS模拟器构建CocoaPods库时出错

颜安宁
2023-03-14
file was built for archive which is not the architecture being linked (i386)

展开:
对于某些模拟器,我在构建项目时会收到以下错误:

ld:警告:忽略文件/users/admin/library/developer/xcode/deriveddata/myapp-ekwldvjyuxwkykbareyvvydbtero/build/products/debug-iphonesimulator/libfscalendar.a,为存档生成的文件不是所链接的体系结构(i386)://users/admin/library/developer/xcode/derivedata/musers/admin/library/developer/xcode/debug-iphonesimulator/libfscalendar.a Tero/build/products/debug-iphonesimulator/libgbdeviceInfo.a,为归档构建的文件不是所链接的体系结构(i386)://users/admin/library/developer/xcode/deriveddata/myapp-ekwldvjyuxwkykbareyvvydbtero/build/products/debug-iphonesimulator/libsclalertview-objective-c.a,为归档构建的文件是不是架构正在链接(i386)://users/admin/library/developer/xcode/deriveddata/myapp-ekwldvjyuxwkykbareyvvydbtero/build/products/debug-iphonesimulator/libsclalertview-objectiv-c a ld:警告:忽略文件Areyvvydbtero/build/products/debug-iphonesimulator/libsskeychain.体系结构i386的未定义符号:“_objc_class_$_fscalendar”,引用自:objc-class-ref in vcalendarview.o“_objc_class_$_gbdeviceinfo”,引用自:objc-class-ref in vemailview.o“objc_class_$_sclalertview”,引用自:objc-class-ref in vemailview.o“objc-class-ref in_objc_class_$_sclalertViewShowBuilder”,引用自:objc-valerts.o“_objc_class_$_sskeychain”中的class-ref引用自:vdescriptionview.o ld:symbol(ss)中未找到体系结构i386 clang:error:linker命令失败,退出代码为1(使用-v查看调用)

它适用于iPhone6 Plus模拟器9.3.0,但不适用于iPhone5s。为什么?对于其他链接器标志选项,我有$(inherited)

共有1个答案

栾瑞
2023-03-14

我通过删除DerivedData目录解决了这个问题。

步骤:

>

  • 在Xcode中,转到菜单栏→窗口→项目。

  •  类似资料: