Carthage: Environment variable not set: ARCHS

Created on 29 Oct 2020  Â·  5Comments  Â·  Source: Carthage/Carthage

  • carthage install method: [ ] .pkg, [x] homebrew, [ ] source
  • which carthage: /usr/local/Homebrew/bin/carthage
  • carthage version: 0.36.0
  • xcodebuild -version: Xcode 12.1 (12A7403)
  • Are you using --no-build? No
  • Are you using --no-use-binaries? No
  • Are you using --use-submodules? No
  • Are you using --cache-builds? No
  • Are you using --new-resolver? No

I’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?

question

Most helpful comment

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.

image

All 5 comments

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.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abbeyjackson picture abbeyjackson  Â·  3Comments

itinance picture itinance  Â·  3Comments

willhains picture willhains  Â·  3Comments

mdiep picture mdiep  Â·  3Comments

jdecarlo picture jdecarlo  Â·  3Comments