-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Spurious Warnings in Xcode 15 #8301
Comments
@bdkjones thanks for letting us know about this. |
Some of this warnings have dissapeared on Xcode 15 Beta 5, the only one remaining is |
@dianaafanador3 The remaining warning about duplicate C++ libraries still exists in Xcode 15 Beta 8. The consensus is that since Apple added C++ interoperability (and therefore now link the C++ library by default) they forgot to handle all the many libraries that explicitly included the C++ libraries: getsentry/sentry-cocoa#3122 (comment) I think this spurious warning is going to remain until Apple either gets their act together or Realm explicitly removes the C++ libraries when the build is done with Xcode 15+. If it's possible for Realm to conditionally link the C++ libraries only for older Xcode releases, that would likely eliminate this last warning. |
bump (Xcode 15 released and issue still exists) |
This discussion explains the cause and a way for users to address it via a build flag: https://indiestack.com/2023/10/xcode-15-duplicate-library-linker-warnings/ The following text should be added to "Other Linker Flags" in your Build Settings. Note: the text is one single entry and the spacing matters. You're passing this option through the compiler, down to the linker:
|
Closed the issue because the bug is Apple's and Realm can't solve it. |
How frequently does the bug occur?
Always
Description
This may be related to #8251, but I recently added Realm to a project that I'm compiling with Xcode 15 beta 3 and I get 37 gobbledegook warnings about debug notes:
And I get a warning about duplicating the
lc++
library:(Nothing in this app uses C++ other than Realm.)
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Include Realm in an app, then build it with Xcode 15 beta 3.
Version
10.40.2
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
macOS 13.4.1
Build environment
Xcode version: 15 beta 3
Dependency manager and version: SPM via Xcode
The text was updated successfully, but these errors were encountered: