“Include of non-modular header inside framework module” while compiling pod
You should add the flag --use-libraries like this:
pod repo push myCocoapodsRepo myPodspec.podspec --allow-warnings --verbose --use-libraries
Flutter: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin'
What worked eventually:
- Put all the
pubspec.yaml
dependencies to the latest version. - Delete
pubspec.lock
,Pods
folder inios
andPodfile.lock
- Run
flutter clean
->flutter pub get
->cd ios
->pod install
->cd ..
->flutter run
And you should be good to go
Include of non-modular header inside framework error
I was able to reproduce your error. I looks like the WindowsAzureMessaging header and all other headers it refers are not made to be used in a modular framework umbrella header, because it uses "user" imports instead of "system" imports relative to the framework, and also it doesn't have the modulemap file.
You have several options:
- adapt their code and make it build as a module (make it "modular").
- not include it in the umbrella header (avoid referencing things from it there), but link it and use directly in the app and your framework.
- instead of using the file framework as a separate entity, you could take (copy) their source code (m and h files) and compile into your framework, and then expose some headers as your own headers.
I think that option 1 is the right way to go. It is not hard, and if you manage to do that, think about making a pull request for their repo, because this is going to benefit everyone.
Related Topics
Parametrized Unit Tests in Swift
Switch to Match Multiple Cases from Optionsettype
Cmlogitem Timestamp: Why So Complicated
Conversion Between Cgfloat and Nsnumber Without Unnecessary Promotion to Double
How to Use Crc32 from Zlib in Swift (Xcode 9)
Control a Nstabviewcontroller from Parent View
Navigationlink Inside .Searchable Does Not Work
In Swift 3.1, Unsafemutablepointer.Initialize(From:) Is Deprecated
Error "[Sharesheet] Connection Invalidated" Error iOS13+ But Not on iOS 11.4
Extend All Number Types in Swift
How to Access The Firebase Topics a User Is Subscribed To
Viewwilllayoutsubviews in Swift
Swift 2.0 Replicate Objc_Association_Retain
Facebook Graphrequest for Swift 5 and Facebook Sdk 5
What Are The Benefits of an Immutable Struct Over a Mutable One