一、公司13年的應(yīng)用,15更新過,如今版本更新重新提交審核,編譯出現(xiàn)這樣的問題:
Xcode編譯錯(cuò)誤 ld: library not found for -lcrt1.3.1.o
在arm64下是沒問題的,但是在armv7下,出現(xiàn)“-lcrt1.3.1.o”找不到的錯(cuò)誤
ld: library not found for -lcrt1.3.1.o
clang.ori: error: linker command failed with exit code 1 (use -v to see invocation)
修改支持的最低iOS系統(tǒng)版本
在General -> Deployment Info -> Deployment Target中,把5.0(及以下的)改為8.0(及以上的)
修改前:

修改后:

下面是摘抄的英文原文,就沒有翻譯,意思是在iOS6以及更高的版本中,crt1.3.1.o已經(jīng)沒有了。
crt1.3.1.ois a library that was included in older iOSes (and thus, their SDKs) but is no longer present in newer SDKs.? However, when the project's Deployment Target is set to an older iOS (<6.0, as @Sandy has found), Xcode still tries linking against it.