stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.55k forks source link

M1 chip and simulator #1108

Closed horatiu03 closed 2 years ago

horatiu03 commented 2 years ago

Hello,

I have a project where I use SQLite.swift. Recently I got a MacBook Pro with a M1 chip. After that the project runs fine on a device but when I try to run on simulator I get this error message from Xcode: Could not find module ‘SQLite’ for target ‘x86_64-apple-ios-simulator’; found: arm64, arm64-apple-ios-simulator I use cocoa pods for adding SQLite.swift to my project. I tried to move it to SPM but the error is still present. After searching for this error I found a work around: Open Xcode with this option: Open using Rosetta, but this to me seems as a hack.

Can this be fixed somehow at the SQLite.swift level? SQLite.swift version 0.13.0 Xcode 13.2.1

Thank you.