which carthage: /usr/local/Homebrew/bin/carthagecarthage version: 0.36.0xcodebuild -version: Xcode 12.1 (12A7403)--no-build? No--no-use-binaries? No--use-submodules? No--cache-builds? No--new-resolver? NoI’m using the Xcode 12 workaround script to update my carthage dependencies and when I build in Xcode with the new dependencies, I get an error stating “Environment variables not set: ARCHS”. I’ve excluded arm64 from simulator builds but not sure how to deal with this last one. How can I set ARCHS on carthage builds?
They are part of your build settings in your project.
They are part of your build settings in your project.
Thanks @tmspzz. I do have ARCHS and VALID_ARCHS defined in my project though, although they don’t seem to be passed forward to Carthage. The issue specifically happens at the Carthage build step rather than for my project code.
@tmspzz I got it to work now by setting ARCHS in the workaround script.
@sorinc03 Could you share the adjusted workaround script please? I am struggling with this issue as well.
What worked for me was making sure that in Build Settings > Excluded Architectures I set arm64 only for the iOS Simulator SDK, and not when compiling on device.

Most helpful comment
What worked for me was making sure that in Build Settings > Excluded Architectures I set
arm64only for the iOS Simulator SDK, and not when compiling on device.