-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linker emits "duplicate symbol" errors with Xcode 15 - Microsoft.iOS 16.4.7099 #19115
Comments
This is a known issue, when using Xcode 15, we still recommend using <MtouchExtraArgs>-gcc_flags "-Xlinker -ld_classic"</MtouchExtraArgs> |
where we need to add this @dalexsoto @actus-reus @anaisbetts @radical |
I used
within the <Project Sdk="Microsoft.NET.Sdk> scope. |
send me the path so I can add it |
This will be fixed in our .NET 8 release, which comes with support for Xcode 15. |
Steps to Reproduce
Expected Behavior
The application project should build without error or warning as it does with Xcode 14
Actual Behavior
The new Xcode 15 linker reports "duplicate symbols" errors in the native library of the binding project. The error points the duplicated symbols twice to the exact same library and location. No problem with Xcode 14. The only way to make the project compile with Xcode 15 is to fallback to the Xcode 14 classic linker by inserting:
<_MainLinkerFlags Include="-ld64" />in the application project. But the fallback might be dropped by Apple at any point.
See #18719 and https://developer.apple.com/forums/thread/736590
Environment
Version information
Build Logs
MoveSenseTestApp_Debug_Build_2023-09-29T07_04_08.7561760Z.msbuild.log
Example Project (If Possible)
ld64.zip
Note that the native library had to be removed from the sample project for its size if over 125MB.
The text was updated successfully, but these errors were encountered: