[ECO-5615] Fix error about conflicting warnings-related build options#440
Conversation
WalkthroughThe PR resolves compiler flag conflicts by removing the global warning-as-errors setting from Package.swift and applying it selectively in CI workflows only. Documentation explaining the rationale is added to XcodeRunner.swift. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes The changes follow a consistent, repetitive pattern across CI configuration and are primarily configuration adjustments with one setting removal and added documentation. The logic impact is minimal and well-scoped. Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.swift📄 CodeRabbit inference engine (CLAUDE.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This reverts the configuration changes from a78e4ae. It turns out that this is causing a compilation error of "error: conflicting options '-warnings-as-errors' and '-suppress-warnings'" when trying to use Xcode to build an app that uses the SDK. Will create a minimal reproduction and raise a bug with Apple (have created #441 for this and restoring a78e4ae once fixed). I'm not sure why our example app wasn't catching this, but I guess there must be a difference in the way that the SDK gets built when it's included in the SDK via a workspace as opposed to via SPM. I've created #442 for for making the example app build more realistic to try and catch this sort of issue in the future; tried doing it as part of this work but didn't find a good solution, and want to get this fix released. Resolves #436.
881dd22 to
322a267
Compare
This reverts the configuration changes from a78e4ae. It turns out that this is causing a compilation error of
error: conflicting options '-warnings-as-errors' and '-suppress-warnings'when trying to use Xcode to build an app that uses the SDK.Will create a minimal reproduction and raise a bug with Apple (have created #441 for this and restoring a78e4ae once fixed).
I'm not sure why our example app wasn't catching this, but I guess there must be a difference in the way that the SDK gets built when it's included in the SDK via a workspace as opposed to via SPM. I've created #442 for for making the example app build more realistic to try and catch this sort of issue in the future; tried doing it as part of this work but didn't find a good solution, and want to get this fix released.
Resolves #436.
Summary by CodeRabbit