Post

Replies

Boosts

Views

Activity

Sign In With Apple not working with Xcode 12 beta on simulator ?
Running the sample "Juice" app, which demos the Sign In With Apple flow, doesn't seem to work with Xcode 12 beta and iOS 14 beta on the simulator (worked fine on the non-beta versions and on a real device with iOS 14 beta). Once the password for the device's Apple ID is entered, the wheel in the password field just keeps spinning. No error messages and nothing handed back over to the app from the ASAuthorizationController. Anyone else seeing this problem ? Are there any workarounds ?
206
4
98k
Jun ’20
SwiftUI Preview fails in module named "View"
Using Xcode 12 Beta 2. Interesting find : just added my first SwiftUI view (File > New > File... > SwiftUI View) in my existing project, which is heavily UIKit based (hoping to slowly migrate). Note : that file was added to a module / framework named "View" (for historical reasons). The new file comes with the following template code : import SwiftUI struct MemberView: View {     var body: some View {         Text("Hello, World!").font(.title)     } } struct MemberView_Previews: PreviewProvider {     static var previews: some View {         MemberView()     }     } However when I click on "Resume" in the Canvas to see the Preview, I get the following error after a little while (and yes, the build succeeds and I can run the app on a device or simulator) : Failed to build MemberView.swift. Compiling failed : 'MemberView_Previews' is not a member type of 'View' The exact same code was created in another SwiftUI view template, but this time in a different module (one named "Model") and that works ok (i.e. I can see the Preview). Same experiment was done for the "root" of the Project and that works as well. Is there any reason why there would be a naming conflict between a module called "View" and the actual View protocol ? Seems surprising to me... See the "Diagnostic" attachment for more info. Diagnostic - https://developer.apple.com/forums/content/attachment/072506a0-b660-4add-912f-a2ac33e4f2dd
2
0
2.3k
Jul ’20