download xcode15beta and build errror

1.9k Views Asked by At

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)

2

There are 2 best solutions below

0
duncam On

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.

0
Hades On

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'.