question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include of non-modular header inside framework module 'FirebaseAnalytics'

See original GitHub issue

Now getting this error when trying to build this project. I did not check in the pods as they were over 100MB, but did checkin the podfile and lock.

https://github.com/tarr11/fcm_bug

While building module 'FirebaseAnalytics' imported from /Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:
In file included from <module-includes>:1:
In file included from ../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:5:
../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h:1:9: error: include of non-modular header inside framework module 'FirebaseAnalytics' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FIRAnalyticsConfiguration.h>
        ^
While building module 'FirebaseAnalytics' imported from /Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:
In file included from <module-includes>:1:
In file included from ../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:6:
../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h:1:9: error: include of non-modular header inside framework module 'FirebaseAnalytics' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FIRApp.h>
        ^
While building module 'FirebaseAnalytics' imported from /Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:
In file included from <module-includes>:1:
In file included from ../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:7:
../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h:1:9: error: include of non-modular header inside framework module 'FirebaseAnalytics' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FIRConfiguration.h>
        ^
While building module 'FirebaseAnalytics' imported from /Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:
In file included from <module-includes>:1:
In file included from ../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:9:
../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h:1:9: error: include of non-modular header inside framework module 'FirebaseAnalytics' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FIROptions.h>
        ^
4 errors generated.
In file included from /Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMesssaging.m:1:
/Users/douglastarr/dev/rntest/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:9: fatal error: could not build module 'FirebaseAnalytics'
@import FirebaseAnalytics;
 ~~~~~~~^~~~~~~~~~~~~~~~~
5 errors generated.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

24reactions
zhouanbocommented, Oct 7, 2016

I fixed this by uncomment the “use_framework!” line in the podfile.

14reactions
guysegalcommented, Mar 13, 2018

didi anyone managed to solve this? I’m having the same issue but with react-native-firebase

Read more comments on GitHub >

github_iconTop Results From Across the Web

Include of non-modular header inside framework module
Make sure the header files are publicly available as part of the framework's public headers. Goto Framework -> Target -> Build Phases and...
Read more >
Include of non-modular header insi… | Apple Developer Forums
I'm trying to use the OpenTok 3rd party framework in a Swift project using Cocoapods using frameworks. Ever since Xcode 7.1 beta 2,...
Read more >
Include of non-modular header inside framework module ...
This ruby script is ran before doing pod install. Afterwards, proper public headers are exposed for a successful build. 1
Read more >
include of non-modular header inside framework module ...
I saw the meaning of "Allow Non-modular Includes In Framework Modules" in Xcode. Enabling this setting allows non-modular includes to be used from...
Read more >
Include Of Non-Modular Header Inside Framework ... - ADocLib
FirebaseAnalytics. Firebase Analytics for iOS. Firebase Analytics is a free outofthebox analytics solution that inspires actionable insights based on app. 3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found