今天运行了一个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
继续报错:
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"
可以了。
网友评论