Skip to content

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

@michaelknoch

Description

@michaelknoch

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 (fc51799)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions