sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Fix all "Double-quoted include in framework header, expected angle-bracketed instead" warnings

Open lmmenge opened this issue 3 years ago • 4 comments

Environment

How do you use Sentry? On-premise (21.3.0)

Which SDK and version? iOS 6.2.1

Steps to Reproduce

  1. Install Xcode 12.5
  2. Create a new project or upgrade a new project's configurations to Xcode 12.5's recommended settings
  3. Integrate Sentry's iOS SDK
  4. 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.

lmmenge avatar Apr 22 '21 14:04 lmmenge

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 avatar May 19 '21 06:05 philipphofmann

@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.

Screen Shot 2021-10-16 at 15 56 00

If the warnings appear once and then never again, deleting your DerivedData folder should do the trick to bring them back.

lmmenge avatar Oct 16 '21 14:10 lmmenge

Thanks for the input, @lmmenge. We will try to fix this slowly.

philipphofmann avatar Oct 18 '21 12:10 philipphofmann

This has also been brought up through the Unity SDK: https://discord.com/channels/621778831602221064/621783582628642822/971159190166962216

bitsandfoxes avatar May 04 '22 13:05 bitsandfoxes

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.

philipphofmann avatar Jul 13 '23 13:07 philipphofmann