-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Cannot running with Android Studio IDE #1781
Comments
Hi did you use sentry without errors on android studio before? |
|
I also have this issue .This is my temporary solution: Navigate to // Add this line about extern "C"
#include <mach/mach.h>. // <---- add this
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
//#include <mach/mach.h> //<----- remove this Navigate to #define HDR_SentryCrashThread_h
// Add this
#include <stdint.h> // <------ add this
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
// #include <sys/types.h> //<------- Remove this Navigate to #include <stdint.h> // <------- add this
#ifdef __cplusplus
extern "C" {
#endif
#include "SentryCrashMachineContext.h"
#include <stdbool.h>
//#include <sys/types.h> //<------- Remove this |
We've released |
Got it, any luck with deleting the pods folder and running pod install? Can't reproduce it locally unfortunately, I'm running on xcode 15.1 and sonoma as well |
@buenaflor, after deleted pods folder, I got the same error. My Flutter doctor: Doctor summary (to see all details, run flutter doctor -v): |
That's very odd. @philipphofmann maybe you know more context here? |
@koemheangHQ could you try adding this to your project pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :branch => 'fix/c-extern' |
@brustolin Now It's working. |
@koemheangHQ thanks for reporting back, we have a tentative fix PR incoming. @ThyrithSor did you find time to test this as well? |
Platform
Dart
Obfuscation
Enabled
Debug Info
Enabled
Doctor
flutter clean
flutter run --verbose
flutter pub get
flutter doctor -v
dart versions :3.0.5
flutter version: 3.13.6
Version
7.13.2
Steps to Reproduce
Just install library sentry version 7.13.2 and running with flutter SDK 3.13.6 and dart version 3.0.5, but it showing message like this:
Modules Issue (Xcode): Import of C++ module 'Darwin.Mach' appears within extern "C" language linkage specification /Users/xxx/xxx/Projects/flutter_project/ios/Pods/Sentry/Sources/SentryCrash/Recording/Tools/SentryCrashMachineContext.h:35:0
Modules Issue (Xcode): Import of C++ module 'Darwin.POSIX.sys.types' appears within extern "C" language linkage specification /xxx/xxx/Desktop/Projects/flutter_project/ios/Pods/Sentry/Sources/SentryCrash/Recording/Tools/SentryCrashStackCursor.h:35:0
Expected Result
I'm expected it should be working find, but cannot running
Actual Result
showing message like this:
Modules Issue (Xcode): Import of C++ module 'Darwin.Mach' appears within extern "C" language linkage specification /Users/xxx/xxx/Projects/flutter_project/ios/Pods/Sentry/Sources/SentryCrash/Recording/Tools/SentryCrashMachineContext.h:35:0
Modules Issue (Xcode): Import of C++ module 'Darwin.POSIX.sys.types' appears within extern "C" language linkage specification /xxx/xxx/Desktop/Projects/flutter_project/ios/Pods/Sentry/Sources/SentryCrash/Recording/Tools/SentryCrashStackCursor.h:35:0
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: