mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
178 stars 87 forks source link

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

Open noway opened 4 months ago

noway commented 4 months ago

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

Compiles fine to a physical iPhone.

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

Is there a workaround for .framework?