In my app the first call is
await Purchases.setDebugLogsEnabled(true);
The app crashes after that.
Any suggestions on how to resolve that?
In my app the first call is
await Purchases.setDebugLogsEnabled(true);
The app crashes after that.
Any suggestions on how to resolve that?
I upgraded flutter now. Still not showing
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.2 21D5039d darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!
🧐 So it crashes only when running it through VS Code, but not Xcode?
If that’s the case, I’d suggest upgrading to the latest version of dart / flutter and retrying, I hit something like this at one point and it solved it for my computer. Could you give it a shot?
Let me know if I read this wrong and the issue isn’t that it’s crashing through VS Code but not Xcode
No, I am using XCode’s output to test currently.
I have upgraded all the packages to latest version now
For now I can use the XCode’s output for debugging. Thanks
It seems like your toolchain is set to use Xcode 13.2.1 based on that output, maybe you should try opening the project using the same Xcode version? I doubt that that’s the problem, but just in case.
Could you tell us which version of purchases_flutter you’re using?
Have you tried running the project directly from Xcode and not VS code?
I think there might be an issue with the setup itself, perhaps removing and re-adding the SDK from scratch, then cleaning flutter cache might help?
Thanks for the help
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.2 21D5039d darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
• No issues found!
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.