Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode 12:test.a(dataCollectKey.o),为iOS模拟器构建,但在为macOS构建的对象文件中链接,用于架构x86_64_Ios_Xcode - Fatal编程技术网

Xcode 12:test.a(dataCollectKey.o),为iOS模拟器构建,但在为macOS构建的对象文件中链接,用于架构x86_64

Xcode 12:test.a(dataCollectKey.o),为iOS模拟器构建,但在为macOS构建的对象文件中链接,用于架构x86_64,ios,xcode,Ios,Xcode,我的项目链接了一个静态框架。一个文件,它在Xcode 11下工作得非常好。但当我升级到Xcode 12时,出现了错误: In /test.a(dataCollectKey.o), building for iOS Simulator, but linking in object file built for macOS, for architecture x86_64 我不明白,x86_64应该用于iPhone模拟器架构,那么为什么会出现这个错误,有什么帮助吗?非常感谢 你在这个问题上取得了成

我的项目链接了一个静态框架
。一个
文件,它在Xcode 11下工作得非常好。但当我升级到Xcode 12时,出现了错误:

In /test.a(dataCollectKey.o), building for iOS Simulator, but linking in object file built for macOS, for architecture x86_64

我不明白,x86_64应该用于iPhone模拟器架构,那么为什么会出现这个错误,有什么帮助吗?非常感谢

你在这个问题上取得了成功吗?我和第三方图书馆有同样的问题。你可以禁用模拟器的框架,然后应该可以工作。你在这个问题上有任何成功吗?我对第三方图书馆也有同样的问题,你可以禁用模拟器的框架,然后就可以工作了。