iOS Building for ‘iOS-simulator‘, but linking in object file xxx
[导读]:iOS 开发运行模拟器时报错:Buildingfor'iOS-simulator',butlinkinginobjectfile(/Users/dengzemiao/Downloads/uniapp_ios_4.36/SDK/SDK/Libs/DCUniRecord.framework/DCUniRecord[arm64][3](PGRecord.o))builtfor'iOS'打开 TARGET ->...
iOS 开发运行模拟器时报错:
Building for 'iOS-simulator', but linking in object file (/Users/dengzemiao/Downloads/uniapp_ios_4.36/SDK/SDK/Libs/DCUniRecord.framework/DCUniRecord[arm64][3](PGRecord.o)) built for 'iOS'
打开 TARGET -> 项目 -> Build Settings 搜索 Excluded Architectures,给 Debug、Release 都添加一个 Any iOS Simulator SDK = arm64:
修改好后 Command + Shift + K 清理重新编译下,然后在运行到设备。
如果使用 cocoapod 也需要在 cocoapod 的 Pods 工程里面同样的位置这样加一条。
本文来自E先生的博客,如若转载,请注明出处:https://javajz.cn
留言区