-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.2.1, Swift, Cocoapods] got "Could not build module 'Airbrake_iOS'" #58
Comments
Fixed |
I still receive
Also, regarding frameworks, there is another crash on launch that #63 should address. |
@rwickliffe we can't reproduce your bug. pod version 0.39.0 and Airbrake-iOS 4.2.2. |
I'm using the same versions and it is specific to frameworks in that I'm installing via CocoaPods with |
@rwickliffe Thanks for pointing out this issue to us. This is indeed related to CocoaPods with framework by use_frameworks! adding to Podfile, we've got the same issue.
|
@jocelynlih Sorry for the delay, I hadn't had a chance to get back to this. I've tried the steps you outlined and was not successful - I still receive the two errors mentioned above: Also, this may be expected, but any time In testing this, I noticed that the latest release (currently 4.2.4) no longer includes the PLCrash*.h files in Airbrake-iOS-umbrella.h, so I can no longer simply |
@jocelynlih I got the same problem as @rwickliffe I can confirm that the project doesn't build using |
Thx @lucaFaverio I'm working on the new release to address this issue. |
Why this issue was closed ? Stiil issue when I do import Airbrake_iOS Pods/Airbrake-iOS/Airbrake/notifier/ABCrashReport.h:10:9: Include of non-modular header inside framework module 'Airbrake_iOS.ABCrashReport' |
@jocelynlih this issue still exists with the latest release (4.2.5). Digging a bit I found out that the culprit seems to be this import Pods So it made sense to change the import. |
@lucaFaverio thx for the details. will look into the issue. |
Is there any update on this issue? The current release, 4.2.6, doesn't build for me due to this. @lucaFaverio 's fix in #58 (comment) solves this issue for me, and there don't appear to be any side affects introduced with this fix. Not sure that its worthy of a PR, here is a commit for reference: Meeco@9fdb49b |
Uses @Class in ABCrashReport.h to declare PLCrashReporter and PLCrashReport without having to import the CrashReporter framework in the header file. This resolves an issue in which client apps failed to import Airbrake_iOS due to the CrashReporter framework being private. See [Github issue airbrake#58](airbrake#58)
Uses @Class in ABCrashReport.h to declare PLCrashReporter and PLCrashReport without having to import the CrashReporter framework in the header file. This resolves an issue in which client apps failed to import Airbrake_iOS due to the CrashReporter framework being private. See [Github issue airbrake#58](airbrake#58)
to anyone that gets here and having trouble with swift, the setup airbrake for your swift application pull above has details on making a bridge file, that as well as making sure the header_search_paths where correct fixed the problems for us |
After I have my Podfile updated I started get this issue and even I trying to implement @lucaFaverio's steps, it didn't work at all for me. |
My Podfile looks something like this (removed other Swift pods):
Then I followed the readme in order to use it in my Swift project. In my Bridging-Header.h, I add ...
#import <Airbrake_iOS/ABNotifier.h>
Then hit build. The problem is, I always get
Could not build module 'Airbrake_iOS'
.I also tried this:
#import "ABNotifier.h"
But it says
"ABNotifier.h" file not found
.So I add the source code directly to my project, comment out some code in GCAlertView.h to make it compile (detail at http://stackoverflow.com/a/30138540/467588). And it compiles fine.
There may be some issues with pod setup. Is anyone seeing this?
The text was updated successfully, but these errors were encountered: