下载Xcode 15 Beta并构建错误

huangapple go评论64阅读模式
英文:

download xcode15beta and build errror

问题

我下载了Xcode 15 beta,然后运行项目时报错,但在使用Xcode 14.3运行时没有报错。

错误信息如下:

找不到库 'iconv.2.4.0'
链接器命令失败,退出代码为1(使用-v查看调用)

英文:

I downloaded xcode15 beta, and then run the project and reported an error, but I did not report an error when I ran it with xcode14.3.

the error info is:
> Library 'iconv.2.4.0' not found
Linker command failed with exit code 1 (use -v to see invocation)

答案1

得分: 2

在我的情况下,我似乎是在链接一个不再可用的较旧版本的 libiconv。

我通过进入构建阶段 > 链接二进制文件,移除了旧版本的 libiconv(在我的情况下,我看到的是 libiconv.2.4.0.tbdlibiconv.2.4.0.dylib),然后使用 + 按钮添加了 libiconv.tbd,成功解决了这个问题。

英文:

In my case, I seemed to be linking against an older version of libiconv that was no longer available.

I was able to fix this by going into Build Phases > Link Binary With Libraries, removing the old versions of libiconv (in my case I was seeing libiconv.2.4.0.tbd and libiconv.2.4.0.dylib), and adding libiconv.tbd back using the + button.

答案2

得分: 0

搜索全局替换'iconv.2.4.0'为'iconv.2',然后我成功编译了。因为我没有在xcode 15 beta 3中搜索'iconv.2.4.0',所以应该将其重命名为'iconv.2'。

英文:

Search for 'iconv.2.4.0' globally and replace it with 'iconv.2' , then I compiled successfully. Because I did not search for 'iconv.2.4.0' in xcode 15 beta 3, it should be renamed to 'iconv.2'.

huangapple
  • 本文由 发表于 2023年6月12日 16:59:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76455043.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定