xcode15.2 showing error, Unkown option: -no_warn_duplicates_libraries
Xcode 15.2 - Error - Unkown option: -no_warn_duplicates_libraries
It’s generally best if you ask a question rather than just post an error message. Without that, folks have to guess as to your problem. See Quinn’s Top Ten DevForums Tips for lots of advice on this front.
My best guess here is that you’re setting the -no_warn_duplicates_libraries
linker flag but you’re link is being done by ld64
rather than ld_prime
. That flag only makes sense with ld_prime
because ld64
doesn’t generate those warnings in the first place.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Hi Buddy,
Thanks for your reply😊
Yea sure got it. This is my first post, will make it better in future.
How it happens means
- Actually I updated from Xcode 15 to Xcode 15.2, after that.. I try to build my app I got this error, "ld: Unkown option: -no_warn_duplicates_libraries"
- In Xcode 15 no issue, can build the app successfully. But the error appears when comes to Xcode 15.2
- I am not using the linker flag: -no_warn_duplicates_libraries
- But I have -ld64(, which I added from Xcode 15) and other linker flags
By latest
- when I remove my existing linker flags and just added $(inherited) -Xlinker -no_warn_duplicates_libraries, leads to build getting success.
- But app get crash when install in a simulator.
- At the same time I am not able to append my existing linker flags with the solution.