sentry-cocoa
sentry-cocoa copied to clipboard
Fix all "Double-quoted include in framework header, expected angle-bracketed instead" warnings
Environment
How do you use Sentry? On-premise (21.3.0)
Which SDK and version? iOS 6.2.1
Steps to Reproduce
- Install Xcode 12.5
- Create a new project or upgrade a new project's configurations to Xcode 12.5's recommended settings
- Integrate Sentry's iOS SDK
- Make a build
Expected Result
There should be no warnings.
Actual Result
Xcode 12.5 will suggest turning on by-default the following warning: CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER=YES.
Warns when a quoted include is used instead of a framework style include in a framework header.
Turning it on throws warnings for all the places the Sentry framework is using a project (quote) include instead of a framework (angle bracket) import.
Thanks for opening up this issue @lmmenge. Unfortunately, this isn't an easy fix, and I don't have an ETA for this right now.
@philipphofmann if you need a sample project for reproducing this: https://github.com/lmmenge/sentry-double-quote
Building it in Xcode 13 should output plenty of warnings.

If the warnings appear once and then never again, deleting your DerivedData
folder should do the trick to bring them back.
Thanks for the input, @lmmenge. We will try to fix this slowly.
This has also been brought up through the Unity SDK: https://discord.com/channels/621778831602221064/621783582628642822/971159190166962216
We don't see any problems with double-quoted headers, and we didn't hear any further complaints. We will fix this once it starts becoming a problem again.