Installing TinyConstraints using SPM on an M1 Pro MacBook Pro, Xcode 13.4 - building for any iOS simulator will fail. It works fine on an Intel-based Mac.
Error:
Could not find module 'TinyConstraints' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/will/Library/Developer/Xcode/DerivedData/<APP>/Build/Products/Debug-iphonesimulator/TinyConstraints.swiftmodule
I used to use CocoaPods and having the following in my Podfile worked for TinyConstraints and other pods:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
I have tried modifying Universal-Target-Base.xcconfig to add
EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
and/or removing the VALID_ARCHS settings, but to no avail.
With SPM the only fix I've found is to run Xcode in Rosetta, which really isn't ideal.
Installing TinyConstraints using SPM on an M1 Pro MacBook Pro, Xcode 13.4 - building for any iOS simulator will fail. It works fine on an Intel-based Mac.
Error:
I used to use CocoaPods and having the following in my Podfile worked for TinyConstraints and other pods:
I have tried modifying
Universal-Target-Base.xcconfigto addand/or removing the
VALID_ARCHSsettings, but to no avail.With SPM the only fix I've found is to run Xcode in Rosetta, which really isn't ideal.