SwiftUIX: Xcode 12 fails to compile. Cannot find type 'ASAuthorization' in scope

In AuthorizationAppleIDButton.swift, compilation fails with

Cannot find type ‘ASAuthorization’ in scope

This used to compile up until beta 5.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@alexfringes @prasannag @pteasima I’ve created a temporary branch asauthorization-xcode12b6-patch removing it altogether. This is an Xcode bug, and there doesn’t seem to be a way around it.

So while we wait for the next beta, feel free to hop on to this branch to get your archives/previews working.

Seeing this also. Same setup as @prasannag mentioned above. However, I’m only running into it when building for SwiftUI Previews, not for the simulator (or onto device).