UIKit-cross-platform
UIKit-cross-platform copied to clipboard
build error `Implicit declaration of function 'OSAtomicCompareAndSwap32Barrier' is invalid in C99`
trafficstars
Current behavior
build error Implicit declaration of function 'OSAtomicCompareAndSwap32Barrier' is invalid in C99 when building for apple silicon mac. It works when building for Intel mac via rosetta.
Expected behavior
builds for apple silicon macs
Steps to reproduce
- build sample mac app for apple silicon
Screenshots
Environment
- Device: Mac with M1
- Xcode: 13.1
- OS: 12.0.1
- UIKit Version: master (fc51799c204c871336939ffb203ec45a65b21d0c)
Yep, saw this too. I think we'll need to update SDL to fix it but for now the workaround is to build for rosetta (esp. because building our UIKit for Mac doesn't make a lot of sense since it's possible to build real UIKit apps for Apple Silicon macs)