flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

Could not find module 'MapboxNavigation' for target 'arm64-apple-ios-simulator'

Open cellininicholas opened this issue 4 years ago • 1 comments

I'm having this issue when trying to run on the iOS Simulator. I'm using XCode 12.5.1 instead of 13. Anyone have any advice?

Xcode's output:
↳
    /Users/ncellini/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mapbox_navigation-0.0.26/ios/Classes/SwiftFlutterMapboxNavigationPlugin.swift:6:8: error: could not find module
    'MapboxNavigation' for target 'arm64-apple-ios-simulator'; found: i386, x86_64-apple-ios-simulator, x86_64, i386-apple-ios-simulator
    import MapboxNavigation
           ^
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

I've tried adding the following to the Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end

But that causes other issues in the build process. Again, any advice?

cellininicholas avatar Oct 05 '21 13:10 cellininicholas

Ya. Following instructions from StackOverflow to exclude the arm64 architecture in the Podfile and in the Build Settings, results in the following for me -

Error (Xcode): Undefined symbol: _OBJC_CLASS_$_FlutterStandardMessageCodec

Error (Xcode): Undefined symbol: _OBJC_CLASS_$_FlutterViewController

Error (Xcode): Undefined symbol: _OBJC_CLASS_$_FlutterEventChannel

Error (Xcode): Undefined symbol: _OBJC_CLASS_$_FlutterMethodChannel

Any help would be useful

Imperial-lord avatar Feb 07 '22 05:02 Imperial-lord

Facing the same issue. Any updates

manukumarsb7 avatar May 01 '23 19:05 manukumarsb7

What’s output of your flutter doctor?

On Mon, May 1, 2023 at 3:26 PM Manukumar S B @.***> wrote:

Facing the same issue. Any updates

— Reply to this email directly, view it on GitHub https://github.com/eopeter/flutter_mapbox_navigation/issues/148#issuecomment-1530108566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPLOM7MG26GSYX4ZJ6UXA3XEAE6TANCNFSM5FLZMNFA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Sincerely Emmanuel Oche

eopeter avatar May 01 '23 19:05 eopeter

@eopeter here is the error : Swift Compiler Error (Xcode): Could not find module 'MapboxDirections' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, at: /Users/manukumarsb/Documents/Dev2/vc-fdr-supporter-native/build/ios/Debug-iphonesimulator/MapboxDirections/MapboxDirections.framework/Modules/MapboxDirections.swiftmodule /Users/manukumarsb/Documents/Dev2/vc-fdr-supporter-native/ios/Pods/MapboxNavigation/Sources/MapboxNavigation/Array.swift:0:7

manukumarsb7 avatar May 01 '23 19:05 manukumarsb7