react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

Warning The `OneSignalNotificationServiceExtension [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER`

Open Hani-Ghazi opened this issue 5 years ago • 16 comments

I'm getting this warning while I'm executing pod install

it's not my first time using this library, but this is a new issue that happened on my new Macbook pro with Apple Silicon M1 chip

The `OneSignalNotificationServiceExtension [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-OneSignalNotificationServiceExtension/Pods-OneSignalNotificationServiceExtension.debug.xcconfig'. This can lead to problems with the CocoaPods installationOS: Mac BigSur 11.0.1

RN: 0.64.3 One-Signal: 4.0.3

any idea how to avoid this warning?

Hani-Ghazi avatar Jan 29 '21 21:01 Hani-Ghazi

Same issue here for the native lib

sipersso2 avatar Jan 30 '21 07:01 sipersso2

+1 did someone solve this yet?

RatebSeirawan avatar Feb 03 '21 13:02 RatebSeirawan

+1 Problem with all processors.

halilbilen avatar Feb 06 '21 15:02 halilbilen

same issue here

wolfzer44 avatar Feb 23 '21 06:02 wolfzer44

Howdy! Just to confirm, this is a warning correct? It shouldn't be a blocker

In any case, we will investigate.

Others on this thread, can you please provide environment information?

Also to confirm, this is happening with M1 as well as other processors for all of you?

rgomezp avatar Feb 23 '21 22:02 rgomezp

It is not an M1 issue. Getting the same error on an Intel processor here.

sipersso2 avatar Feb 24 '21 05:02 sipersso2

Howdy y'all, I was able to reproduce. To get rid of this issue, try setting the CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER to $(inherited) or NO.

The reason this started happening is because XCode 12 now defaults this setting to YES.

rgomezp avatar Apr 07 '21 22:04 rgomezp

Hi @rgomezp , Changed but issue issue still exist.

Mac OS: 11.2.3 Xcode: 12.4 React native: 0.61.5 react-native-onesignal: 4.0.4

Any other solution?

Thanks

akhilsanker avatar Apr 15 '21 07:04 akhilsanker

  1. Select the Target (that have warnings) > Build Settings > Search for CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
  2. Select Other and paste $(inherited)
  3. Test by pod install

douglasrosa0110 avatar Apr 20 '21 19:04 douglasrosa0110

Closing due to inactivity.

rgomezp avatar May 18 '21 21:05 rgomezp

This was closed a while ago, but I recently started getting the same error:

When I install pods the following warning is showing after installation:

[!] The `Runner [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Release]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Profile]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.

After that, I'm setting "Quoted Include in Framework Header" to $(inherited) for both Pods and Target.

When running the target on a simulator, I'm getting the following error:

Showing All Errors Only
/Volumes/sub_1/Flutter-Projects/swift_share/swift_share/ios/Pods/Target Support Files/url_launcher_ios/url_launcher_ios-umbrella.h:13:9: double-quoted include "FLTURLLauncherPlugin.h" in framework header, expected angle-bracketed instead

My Flutter Doctor:

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.4 22F66 darwin-arm64, locale en-SA)
    • Flutter version 3.10.2 on channel stable at /Users/wsabg/Public/Programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (3 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/wsabg/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.79.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.64.2)
    • VS Code at /Users/wsabg/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.77.1)
    • VS Code at /Volumes/sub_1/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] Connected device (3 available)
    • SM N970F (mobile) • R58N83T3JMZ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos       • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 114.0.5735.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Screenshot 2023-06-15 at 07 02 49

Also I would like to note that when installing pods, a few libraries are resolving back to version 0.0.1 which is strange as they are different from the version already set.

Solutions I've already tried:

rm -rf ~/Library/Developer/Xcode/DerivedData/ rm -rf ~/Library/Cashes/CocoaPods/
pod deintegrate pod update

and

Build setting -> Other Linker Flags -> add $(inherited)

Still the error persists, let me know if anyone figured out a solutions for this issue

SAS-2022 avatar Jun 15 '23 04:06 SAS-2022

This was closed a while ago, but I recently started getting the same error:

When I install pods the following warning is showing after installation:

[!] The `Runner [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Release]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Profile]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.

After that, I'm setting "Quoted Include in Framework Header" to $(inherited) for both Pods and Target.

When running the target on a simulator, I'm getting the following error:

Showing All Errors Only
/Volumes/sub_1/Flutter-Projects/swift_share/swift_share/ios/Pods/Target Support Files/url_launcher_ios/url_launcher_ios-umbrella.h:13:9: double-quoted include "FLTURLLauncherPlugin.h" in framework header, expected angle-bracketed instead

My Flutter Doctor:

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.4 22F66 darwin-arm64, locale en-SA)
    • Flutter version 3.10.2 on channel stable at /Users/wsabg/Public/Programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (3 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/wsabg/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.79.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.64.2)
    • VS Code at /Users/wsabg/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.77.1)
    • VS Code at /Volumes/sub_1/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] Connected device (3 available)
    • SM N970F (mobile) • R58N83T3JMZ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos       • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 114.0.5735.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Screenshot 2023-06-15 at 07 02 49

Also I would like to note that when installing pods, a few libraries are resolving back to version 0.0.1 which is strange as they are different from the version already set.

Solutions I've already tried:

rm -rf ~/Library/Developer/Xcode/DerivedData/ rm -rf ~/Library/Cashes/CocoaPods/ pod deintegrate pod update

and

Build setting -> Other Linker Flags -> add $(inherited)

Still the error persists, let me know if anyone figured out a solutions for this issue

I'm facing the same issue.

ctkqiang avatar Jun 30 '23 01:06 ctkqiang

This was closed a while ago, but I recently started getting the same error: When I install pods the following warning is showing after installation:

[!] The `Runner [Debug]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Release]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `Runner [Profile]` target overrides the `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.

After that, I'm setting "Quoted Include in Framework Header" to $(inherited) for both Pods and Target. When running the target on a simulator, I'm getting the following error:

Showing All Errors Only
/Volumes/sub_1/Flutter-Projects/swift_share/swift_share/ios/Pods/Target Support Files/url_launcher_ios/url_launcher_ios-umbrella.h:13:9: double-quoted include "FLTURLLauncherPlugin.h" in framework header, expected angle-bracketed instead

My Flutter Doctor:

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.4 22F66 darwin-arm64, locale en-SA)
    • Flutter version 3.10.2 on channel stable at /Users/wsabg/Public/Programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (3 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/wsabg/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.79.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.64.2)
    • VS Code at /Users/wsabg/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] VS Code (version 1.77.1)
    • VS Code at /Volumes/sub_1/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] Connected device (3 available)
    • SM N970F (mobile) • R58N83T3JMZ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos       • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 114.0.5735.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Screenshot 2023-06-15 at 07 02 49 Also I would like to note that when installing pods, a few libraries are resolving back to version 0.0.1 which is strange as they are different from the version already set. Solutions I've already tried: rm -rf ~/Library/Developer/Xcode/DerivedData/ rm -rf ~/Library/Cashes/CocoaPods/ pod deintegrate pod update and Build setting -> Other Linker Flags -> add $(inherited) Still the error persists, let me know if anyone figured out a solutions for this issue

I'm facing the same issue.

I have the same problem, my project run Flutter 3.16.5 and flutter_onesignal 3.4.1. Sorry for my english, the problem shows when I try compile my app (run into the iOS simulator), and my debug console show "The OneSignalNotificationServiceExtension [Debug] target overrides the CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER build setting defined in `Pods/Target Support Files/Pods-OneSignalNotificationServiceExten.....", I disscomment this line: " OneSignal.shared.setLogLevel(OSLogLevel.verbose, OSLogLevel.none);", and this is all, the app runs again. I'm not saying this is the solution, but for the moment it solves.

KevinZR-26 avatar Mar 09 '24 06:03 KevinZR-26

I have the same issue

ilyasarafathemvigo avatar Apr 29 '24 10:04 ilyasarafathemvigo

  1. Select the Target (that have warnings) > Build Settings > Search for CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
  2. Select Other and paste $(inherited)
  3. Test by pod install

Screenshot 2024-12-21 at 18 51 42 Screenshot 2024-12-21 at 18 52 29

I did as he said, then I had a problem with the order of the Build Phase in the Runner so I moved Embed app extensions before The Binary and everything went well.

references: [forums.developer.apple.com](https://forums.developer.apple.com/forums/thread/730974?answerId=755002022#755002022) https://github.com/firebase/flutterfire/issues/4133

andersonmendesdev avatar Dec 21 '24 22:12 andersonmendesdev

  1. Select the Target (that have warnings) > Build Settings > Search for CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER

    1. Select Other and paste $(inherited)

    2. Test by pod install

this part works for me, big thanks

wahyu-handayani avatar Jul 31 '25 06:07 wahyu-handayani