-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
car play emulator crashes/ not working #7
Comments
Hello, @Niall-Kenny. Thank you for reporting your concern about the bug! While in debugging mode in Flutter or when a flutter hot reload is fired, it may not properly reload or set the current template from flutter cli to apple carplay and may show you a gray screen in the first carplay-iphone connection because no template has been set due to hot reload. Could you please re-run flutter start without any reload and see if the gray screen is still present in your current project when the simulator is connected to carplay simulator? If you want to use hot reload, try updating the root template. It is important to note that you must always use Runner.entitlements. I hope it is helpful to you; please let me know if any other errors occur in your case. |
Hi @Niall-Kenny, it’s not a problem. Could you please update your project repository that you got this error? So that we can reproduce the error to fix it. Also make sure you’ve added the carplay entitlements. |
Same problem for me.
|
@oguzhnatly it crash on start :/ I simply add all the content from https://github.com/oguzhnatly/flutter_carplay/blob/master/example/lib/main.dart to my app.
Flutter doctor -v :
|
Same problem here. Using an M1 Pro so added 'arm64' to 'excluded architectures' in the build settings. Emulator is running iOS 15.2 |
It fix the issue ? |
Apologies, no the issue remains. |
Hi, any news ? |
Up ? |
up ? |
Hi, I think I found the problem with the crash, are you by any chance using an M1 emulator to test the app? If so it seems that the flutter_carplay plugin has arm64 as an excluded architecture so it won't build the required library for the M1 emulator. |
Also as a sidenote you can clone the Github repo and just remove from the podspec 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' |
Version 1.0.3 has been published in pub.dev. Check it out here. 🎉Thank you for @EArminjon's contribution with #14. This issue has been marked as resolved and closed. Please continue the discussion if the issue remains and don't forget to join the Discord Server, so we can chat over there! |
i only launch the carplay, in this time , app do not launch, the carplay always gray, there is nothing in the carplay |
Hi there,
I use an m1 macbook air and followed the instructions outlined on pub.dev and in this issue for setting up entitlements, your response was very useful! 🙂
This is the project I used when encountering the following errors:
1. iphone app crashes when I open the carplay simulator
Screen.Recording.2021-11-30.at.14.38.22.mov
repro steps:
2. carplay simulator displays grey screen when connected
Screen.Recording.2021-11-30.at.14.40.54.mov
repro steps:
To note:
RunnerDebug.entitlements is used in this project, I did also try Runner.entitlements but with no effect.
The text was updated successfully, but these errors were encountered: