Reputation: 11
I have a perfectly working Xcode (at least for Swift iOS projects), today I tried to install flutter. I followed the steps from here: FlutterDev (every step, so the solution is not here)
I can build and run Flutter projects in terminal on Simulator on iPhones and Android Virtual Devices as well.
Flutter doctor found everything OK.
But I can't run it on any physical Apple device. Tested on 2 MacBook Pros -> deploying to 3 different iPhones.
I got SIGABRT error right after the app tried to launch if I run the from Xcode, and the terminal stuck in installing and launching... if I try to run the app from there.
Terminal
Xcode
Upvotes: 1
Views: 2521
Reputation: 11
After I've spent my day troubleshooting the only solution that worked for me is to download xcode beta, the newest 13.4 iOS beta and then everything worked immediately. I opened the existing projects, hit run and opened on my phone without any extra steps.
Upvotes: 0
Reputation: 507
It is a bug from Flutter. Instead switch the channel:
flutter channel dev
flutter upgrade
flutter run
But remember: The dev
channel is far ahead of the stable one, it is little less safe. I would recommend you to use it just for running the app on your device. For coding etc. switch back to the stable
channel:
flutter channel stable
flutter upgrade
The bug will be fixed in v1.15.3
.
Upvotes: 0
Reputation: 3767
Maybe you should just try these steps:
1) flutter clean
2) flutter build ios --release
Then later do this in Xcode MenuBar: Product -> Clean and then build in Xcode
Upvotes: 2