Skip to content
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

Thousands of warnings when building 510.0.1 version release #4

Open
eito opened this issue May 21, 2024 · 1 comment
Open

Thousands of warnings when building 510.0.1 version release #4

eito opened this issue May 21, 2024 · 1 comment

Comments

@eito
Copy link

eito commented May 21, 2024

These warnings didn't exist before the iOS Simulator platform was added in the 510.x.x version. You also only see them when building release.

I see over 60K of these warnings which greatly slows down the build (and brings Xcode to a crawl if you're watching the log)

Showing All Messages
(arm64)  could not find object file symbol for symbol _$s11SwiftSyntax016MemberAccessExprB0V13leadingTrivia4base6period4name08trailingG0AcA0G0VSg_xSgAA05TokenB0VAnKtcAA0eB8ProtocolRzlufC

....

/Users/runner/work/swift-syntax-xcframeworks/swift-syntax-xcframeworks/swift-syntax/.build/arm64-apple-macosx/debug/ModuleCache/2G7IFUA1P8XNG/Darwin-1IPQPNED63C6S.pcm: No such file or directory

while processing /Users/runner/work/swift-syntax-xcframeworks/swift-syntax-xcframeworks/swift-syntax/.build/arm64-apple-macosx/debug/ModuleCache/2G7IFUA1P8XNG/Darwin-1IPQPNED63C6S.pcm

Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.

/Users/runner/work/swift-syntax-xcframeworks/swift-syntax-xcframeworks/swift-syntax/.build/arm64-apple-macosx/debug/ModuleCache/2G7IFUA1P8XNG/SwiftShims-27BB6EH6OY71.pcm: No such file or directory

There are various threads on the topic. The one from the Swift Forums seemed promising, but I wasn't able to get it to resolve this issue in my testing.

https://forums.swift.org/t/swift-behavior-of-gmodules-and-dsyms/23211/3
bazelbuild/tulsi#135

Everything works fine still -- the warnings are coming from dsymutil when attempting to generate a dSYM file -- but it does mean that the tons of warnings slow down the build a bit.

I'm willing to try other approaches, just not sure what else to try.

NOTE: in my use-case I really want to be able to use Previews so I need that iOS simulator variant.

@eito
Copy link
Author

eito commented May 21, 2024

I have a fix for this that I can put up a PR for shortly...

We can just pass this to the xcodebuild command.

GCC_GENERATE_DEBUGGING_SYMBOLS=NO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant