UIKit-cross-platform icon indicating copy to clipboard operation
UIKit-cross-platform copied to clipboard

build error `Implicit declaration of function 'OSAtomicCompareAndSwap32Barrier' is invalid in C99`

Open michaelknoch opened this issue 3 years ago • 1 comments
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

  1. build sample mac app for apple silicon

Screenshots

Screenshot 2021-11-29 at 10 51 32

Environment

  • Device: Mac with M1
  • Xcode: 13.1
  • OS: 12.0.1
  • UIKit Version: master (fc51799c204c871336939ffb203ec45a65b21d0c)

michaelknoch avatar Nov 29 '21 09:11 michaelknoch

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)

ephemer avatar Nov 30 '21 17:11 ephemer