DEV Community

Thomas Prezioso Jr.
Thomas Prezioso Jr.

Posted on

"ARCHS[@]: unbound variable" error in SwiftUI Project

Recently I ran into an error when trying to run a SwiftUI Project on my iPhone. I'm running this project on a M1 Macbook Pro. The error seemed to start happening when my project started using certain Cocoapods. The error reads "ARCHS[@]: unbound variable".

To fix this error all you need to do is navigate to the Project File > Info > Excluded Architecture. If in Excluded Architecture you see arm64, all you need to do is remove the arm64 and reload your Xcode project.

Hope this quick post helps anyone struggling with this weird error in your SwiftUI project. If this doesn't help please check out this stack overflow post.

Happy coding!

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay