flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Undifened symbol when running on ios with flutter #1295

Closed LucaSappey closed 1 year ago

LucaSappey commented 1 year ago

My error : Error (Xcode): Undefined symbol: _OBJCCLASS$_FMDatabaseQueue

Flutter doctor : [✓] Flutter (Channel stable, 3.3.10, on macOS 13.3.1 22E261 darwin-arm, locale fr-FR) • Flutter version 3.3.10 on channel stable at /Users/lucas/Development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (4 months ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) • Android SDK at /Users/lucas/Library/Android/sdk • Platform android-33, build-tools 32.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E222b • CocoaPods version 1.12.0

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.77.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.54.0

[✓] Connected device (3 available) • iPhone 14 Pro Max (mobile) • 9B752D66-E8C0-482C-878C-D47652BF311A • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 13.3.1 22E261 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.49

[✓] HTTP Host Availability • All required HTTP hosts are available

• No issues found!

This error appear after I had this line on my podfile : config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64 i386 armv7"

I add this line to solve this error : Error (Xcode): Building for iOS Simulator, but linking in dylib built for iOS, file '/Users/lucas/Developer/meet_the_runner_mobile/ios/Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Mapbox' for architecture arm64

Please help :(

Thank's in advance.

Lucas

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.