hmlongco / Factory

A new approach to Container-Based Dependency Injection for Swift and SwiftUI.
MIT License
1.71k stars 107 forks source link

Could not find module 'Factory' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at #134

Closed skywalkerlw closed 1 year ago

skywalkerlw commented 1 year ago

I'm on Xcode 14.3 and Apple M1 chip chip with latest Factory Swift Package

Got this error

image

Seem an issue only for Apple M1 chip according to this: https://stackoverflow.com/questions/56957632/could-not-find-module-for-target-x86-64-apple-ios-simulator.

hmlongco commented 1 year ago

That's not an issue with Factory, but with how you're importing and building Factory and other third party libraries in your project.

See: https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon/