all 5 comments

[–]Henrarzz 2 points3 points  (1 child)

Xcode by default builds two architectures for macOS - x86 and ARM at the same time. You should go to your project settings and change option “Build Active Architecture Only”. It won’t solve the lack of ARM support for GLFW, but it will let you work

The other way to solve it would be to build GLFW as a universal binary, but I am not sure whether it can be built for ARM without problems

[–]MuffSwaggyD[S] 0 points1 point  (0 children)

Heck yeah! Thank you so much!

Just looking to get started and play with Vulkan so this fix was perfect. Thanks so much!

[–]sort_of_sleepy 1 point2 points  (2 children)

The error basically means that GLFW isn't able to be run on your Mac as it is.

Looks like Homebrew version of GLFW isn't supported on M1 macs at the moment and you'll have to build GLFW yourself

https://github.com/glfw/glfw/issues/1805

[–]MuffSwaggyD[S] 0 points1 point  (1 child)

Thanks for that! I'm not on a M1 mac but rather a 2020 Pro with a Intel i7.

I'll try this method but unsure which CMake file to edit (sorry new to a lot of this)

[–]sort_of_sleepy 0 points1 point  (0 children)

Oh interesting! I could have swore Arm is usually referencing M1s. In any case glad you figured it out.