Skip to content
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

iOS app fails to launch #26

Closed
pabolojo opened this issue Jan 9, 2021 · 6 comments
Closed

iOS app fails to launch #26

pabolojo opened this issue Jan 9, 2021 · 6 comments

Comments

@pabolojo
Copy link

pabolojo commented Jan 9, 2021

I was playing around with the example given and, in Android, it works fine but in iOS it does not even launch.
I have simplified the sketch several times but the result remains the same. Moreover, I created a new project and just updated the xcode min iOS version to let the package work and included de package in the pubspec.yaml and then the flutter example app does not work anymore.
Any idea on what could be happening?

@gy
Copy link

gy commented Jan 9, 2021

Did you update the Podfile to minimum target of 10.0

Top of the Podfile.

platform :ios, '10.0'

If that's not it, can you post the error you see?

@pabolojo
Copy link
Author

pabolojo commented Jan 9, 2021

Yes, I have updated the Podfile.
There is no error itself, the output that I get is the following:
Launching lib/main.dart on iPad --- in debug mode... lib/main.dart:1 Signing iOS app for device deployment using developer identity: "Apple Development: ---@gmail.com (---)" Xcode build done. 28,3s Exited

The app is installed successfully on my iPad and then, when it is launching, it closes it self and in VS Code the "Installing and launching..." message remains without doing nothing.

I am using Flutter 1.22.5 on VS Code 1.52.1 running on a Hackintosh with macOS 11.0.1 (20B29) and the app is being installed on an iPad Air 2 with iOS 14.3

The steps I followed were:

  1. Created a new application project
  2. Substitute the files in lib by main.dart and controller.dart from this github
  3. Add and install the dependencies in the pubspec.yaml
  4. Edit the Podfile file under the ios folder, unccommenting and editing the platform :ios, '10.0' line
  5. Run the app

@stuartwk
Copy link

I'm having the same issue. The when trying to run it on iPhone, it closes immediately without any error message.

@mortenboye
Copy link
Contributor

The issue could be a missing NSBluetoothAlwaysUsageDescription to info.plist in the Xcode project. That will cause an error in the Xcode log and the app will quit immediately.
Flutter Midi Command uses Bluetooth to search for and connect to MIDI BLE devices.

@stuartwk
Copy link

@mortenboye this was exactly the issue for me. By adding NSBluetoothAlwaysUsageDescription to info.plist, the app launches. Thanks!

@pabolojo
Copy link
Author

pabolojo commented Feb 5, 2021

@mortenboye yes, that was my issue too. After adding that everything works fine.

@pabolojo pabolojo closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants