sindresorhus / Defaults

💾 Swifty and modern UserDefaults
https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults
MIT License
1.97k stars 117 forks source link

Switch between x86_64 and arm64 issue? #88

Closed RoyRao2333 closed 2 years ago

RoyRao2333 commented 2 years ago

Hi, I just came across a problem a few days ago when I was developing a macOS project: If I build universally in debug, this framework would get errors like Requires arm64 ... found x86_64 instead..

image

I'm using a x86 iMac in my office, and a M1 Pro (arm64) at home, don't know if this is the cause... It's just so weird that Defaults is the only framework that's complaining about this, and other frameworks seems fine...

Screen Shot 2021-12-07 at 17 20 12

Any thoughts? :)

sindresorhus commented 2 years ago

I don't think this is a problem with this package. We're not doing anything special here. Just a standard package: https://github.com/sindresorhus/Defaults/blob/main/Package.swift

https://stackoverflow.com/questions/64026065/xcode-12-issue-could-not-find-module-frameworkname-for-target-arm64-apple-i