You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building module 'KSCrash':
In file included from <module-includes>:1:
KSCrash/KSCrash.framework/Headers/KSCrash-umbrella.h:19:9: fatal error: 'KSCrashAdvanced.h' file not found
#import "KSCrashAdvanced.h"
^
1 error generated.
fatal error: could not build module 'KSCrash'
#import <KSCrash/KSCrash.h>
~~~~~~~^
This appears to have started happening with #124, and to the best of my understanding it seems to be caused because the KSCrash/Recording/Advanced subspec marks some headers as public, but those headers aren't part of the source_files of the spec. (public_header_files is expected to be a subset of source_files, which I learned from CocoaPods/CocoaPods#4936.) Including these headers as source_files seems to fix the problem.
After fixing that, there's also a second issue if you try to use just the Recording subspec:
While building module 'KSCrash':
In file included from <module-includes>:1:
In file included from KSCrash/KSCrash.framework/Headers/KSCrash-umbrella.h:3:
KSCrash/KSCrash.framework/Headers/KSCrash.h:31:9: fatal error: 'KSCrashReportFilter.h' file not found
#import "KSCrashReportFilter.h"
^
1 error generated.
fatal error: could not build module 'KSCrash'
#import <KSCrash/KSCrash.h>
~~~~~~~^
This one's a bit more straightforward, KSCrashReportFilter.h wasn't included as a public header for the Recording subspec. Adding it fixes the problem.
PR to fix both of these incoming!
The text was updated successfully, but these errors were encountered:
If you try to install KSCrash via CocoaPods with
use_frameworks!
, in a Podfile like this:You'll get an error like this one:
This appears to have started happening with #124, and to the best of my understanding it seems to be caused because the
KSCrash/Recording/Advanced
subspec marks some headers as public, but those headers aren't part of thesource_files
of the spec. (public_header_files
is expected to be a subset ofsource_files
, which I learned from CocoaPods/CocoaPods#4936.) Including these headers assource_files
seems to fix the problem.After fixing that, there's also a second issue if you try to use just the
Recording
subspec:This one's a bit more straightforward,
KSCrashReportFilter.h
wasn't included as a public header for theRecording
subspec. Adding it fixes the problem.PR to fix both of these incoming!
The text was updated successfully, but these errors were encountered: