英文:
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.tbd
和 libiconv.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'.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论