I am getting the following error when i tried to integrate Parse.com and Facebook SDK.
The error is as follows:
The library files that i added.
Update - After changing YES
to "Allow non-modular includes in Framework modules"
Error : Include of non-modular header inside framework module class : These file not found in the project. Show activity on this post. Make sure the header files are publicly available as part of the framework's public headers. Goto Framework -> Target -> Build Phases and drag to move the relevant header files from Project to Public.
If any of the public header files you have mentioned in your module.modulemap have import statements that are not mentioned in modulemap, this will give you the error. Since it tries to import some header that is not declared as modular (in module.modulemap), it breaks the modularity of the framework.
Try going Build Settings under "Target" and set "Allow Non-modular Includes in Framework Modules" to YES. The real answer is that the location of the imports needs to be changed by the library owner. Those files ifaddrs.h, arpa/inet.h, sys/types.h are getting imported in a .h file in a framework, which Xcode doesn't like.
Ideally we should try and aim to have Allow non-module includes set to NO. Setting this to YES in most cases means you're doing something wrong. The setting translates to "Allow importing random header files on disk that aren't otherwise part of the module".
Go to Build Settings and search for "Allow non-modular includes in Framework modules" and change it to YES
If you are developing with Swift you have to remove the ".modulemap" file under the "Modules" folder in every framework from Facebook you have included. That worked for me.
See this link: https://developers.facebook.com/docs/ios/troubleshooting#xcode_link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With