iOS开发问题之:M1运行旧版本项目报错

2023-10-18  本文已影响0人  VKOOY

今天运行了一个3年前的项目,M1电脑+Xcode15,结果报错了,简单记录一下

报错:

ld: in  building for iOS Simulator, but linking in object file built for iOS, file 'XXXl' for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

出现在M1芯片的Mac上,解决方案:
在编译设置中,对模拟器排除 arm64

报错:
Executable Path is a Directory

去掉图示arm64就可以了(到底搞了个寂寞?) image.png

继续报错:

Assertion failed: (false && "compact unwind compressed function offset doesn

报错详情:

Xcode 15 beat6 Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.

解决方案:
在Build Settings-> other linker flags 新增 "-ld64"

可以了。

上一篇下一篇

猜你喜欢

热点阅读