I'm using sign_in_with_apple. Have an issue on iOS simulator (software version 14.0). Infinite loader is displayed after a password is entered and 'Continue' is tapped. The flow gets stuck. Nothing happens next. What could be the reason for that? What am I doing wrong?
Flutter sign in with Apple not working on iOS simulator (infinite loader)
6.8k views Asked by AndrewS At
2
There are 2 answers
0
On
As Andrew said, the issue is with iOS 14.0 simulator. Unfortunately it hasn't been solved in iOS 15.0 either. I will suggest the same solution as Andrew but would explain a bit more about the details.
- Download iOS 13.0 emulator. BY default you will only have latest one, for example iOS 15.0, Go to Xcode. Tope left, click on xcode, then preferences, then click on components. Download the iOS 13.0 emulator.
- Click onto runner home page, go to general(beside sign in and capabilities). Under deployment info, check 13.0 iOS version.
- Go to your pod file and paste/edit this snippet at the end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
This will set up all your configs to the required iOS 13.0 version.
Other requirements
- Make sure you have a developer apple account set up
If you followed everything till now, it should all run well.
Looks like currently there is an issue on iOS 14 simulator . Need to use a real device or an iOS 13 simulator. See https://developer.apple.com/forums/thread/651533.