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

Warning The OneSignalNotificationServiceExtension [Debug] target overrides the CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER #1155

Closed
Hani-Ghazi opened this issue Jan 29, 2021 · 14 comments
Labels
Dependencies Pull requests that update a dependency file Help Wanted iOS Reproducible

Comments

@Hani-Ghazi
Copy link

Hani-Ghazi commented Jan 29, 2021

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?

@sipersso
Copy link

sipersso commented Jan 30, 2021

Same issue here for the native lib

@RatebSeirawan
Copy link

+1
did someone solve this yet?

@halilbilen
Copy link

halilbilen commented Feb 6, 2021

+1
Problem with all processors.

@wolfzer44
Copy link

same issue here

@rgomezp rgomezp added Compatibility Issue Dependencies Pull requests that update a dependency file Help Wanted iOS labels Feb 23, 2021
@rgomezp
Copy link
Contributor

rgomezp commented Feb 23, 2021

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?

@sipersso
Copy link

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

@rgomezp
Copy link
Contributor

rgomezp commented Apr 7, 2021

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.

@akhilsanker
Copy link

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

@douglasrosa0110
Copy link

  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

@rgomezp
Copy link
Contributor

rgomezp commented May 18, 2021

Closing due to inactivity.

@rgomezp rgomezp closed this as completed May 18, 2021
@SAS-2022
Copy link

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

@ctkqiang
Copy link

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.

@KevinZR-26
Copy link

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.

@ilyasarafathemvigo
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file Help Wanted iOS Reproducible
Projects
None yet
Development

No branches or pull requests