I get this error only when I try to archive, building for simulator or other test device works. Previously, I had this problem when trying to build for a test device, but I started over and reinstalled the pod and it worked. I have tried setting 'Allow non-modular Includes in Frameworks' to yes in both my project and Target, but this has NOT worked. Any ideas on how to get out of this would be greatly appreciated!
Asked
Active
Viewed 168 times
1
-
try adding those header files to the Headers section of your app under Build Phases, as [explained in this answer](https://stackoverflow.com/a/49810627/981049). – Michael Dautermann Feb 26 '19 at 05:26
-
Did you find any solution to this problem? I'm having the same issue with a different framework when archiving – Daniel Espina Dec 18 '19 at 15:03
-
I did get it to work, but it was a random sequence of events that I did that I unfortunately don't remember off the top of my head. Although it only worked on the first build after installing the SDK if I remember correctly. Not stable and AppLovin's revenue ended up sucking so I abandoned them all together. – David Villegas Sep 22 '20 at 04:50
1 Answers
0
I got the same error (for archiving only) for my Swift framework with C code inside.
Only this remedy helped me.
Add -Xcc -Wno-error=non-modular-include-in-framework-module
in Other Swift Flags
(build settings of framework). This flag forces the compiller count that error as a warning.

Serge Maslyakov
- 1,410
- 1
- 17
- 23