mapbox-directions-swift icon indicating copy to clipboard operation
mapbox-directions-swift copied to clipboard

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

Open noway opened this issue 1 year ago • 1 comments

Can't compile for iOS Simulator on Apple Silicone Mac:

Could not find module 'MapboxDirections' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, at: /Users/user/Library/Developer/Xcode/DerivedData/project-aslfqkpxdckiatdadbaaceazrmrq/Index.noindex/Build/Products/Debug-iphonesimulator/MapboxDirections/MapboxDirections.framework/Modules/MapboxDirections.swiftmodule

  • I'm installing via CocoaPods
  • MapboxDirections (2.11.1)
  • I don't have EXCLUDED_ARCHS in my .pbxproj

Compiles fine to a physical iPhone.

Could this be because you're not publishing MapboxDirections as a .xcframework?

Is there a workaround for .framework?

noway avatar Feb 15 '24 21:02 noway