Include of non-modular header inside framework module 'FirebaseAnalytics'
See original GitHub issueNow 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:
- Created 7 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed this by uncomment the “use_framework!” line in the podfile.
didi anyone managed to solve this? I’m having the same issue but with react-native-firebase