Can't build iOS app for simulator on m1 computer


I added the ios framework to a brand new project, and when I ran the up I got the error

could not find module ‘opencv2’ for target ‘arm64-apple-ios-simulator’; found: x86_64-apple-ios-simulator, armv7s, armv7s-apple-ios, armv7-apple-ios, i386-apple-ios-simulator, arm64-apple-ios, armv7, at: /Users/johannwerner/Desktop/VisionTest/opencv2.framework/Modules/opencv2.swiftmodule

I tried
I set my project settings to exclude the arm64 for simulators and still the same issue

Are you using the latest version?