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

Exported iOS app is unable to complete createTracks #22

Open
NAKANISYNTH opened this issue Oct 28, 2021 · 6 comments
Open

Exported iOS app is unable to complete createTracks #22

NAKANISYNTH opened this issue Oct 28, 2021 · 6 comments

Comments

@NAKANISYNTH
Copy link

My Situation

  • Flutter 2.5.2
  • Xcode13.0
  • flutter_sequencer 0.2.1 and 0.4.2 (I've tried with both but the issue not changed.)

When I build with release mode, the app able to play the sound with sf2 files properly. But on the app exported for distribution, even though it is the exact same code, it seems to stop at createTracks and not play the sound. The app doesn't crash, so I don't think it's a problem with the file path or loading.

I don't know if this is related, but when I build from Mac, I get the following messages on console when createTracks is called.

[i-aa] IPCAUClient.cpp:129:ConnectToRegistrationServer: IPCAUClient: bundle display name is nil
DLSBankManager.cpp:99:LoadInstrument: BankEntry::LoadInstrument: Unable to find patch 0 bank 0x78/0
DLSBankManager.cpp:100:LoadInstrument: about to throw -10851: LoadInstrument: Failed to load patch from bank
GlobalState.cpp:486:LoadInstrumentFromDLSCollection: DLS/SF2 bank load failed

If you have any suggestions on how to handle this, please let me know.
Thank you for developing such a cool package :)

@Moyck
Copy link

Moyck commented Apr 6, 2022

Any progress?

@Moyck
Copy link

Moyck commented Apr 6, 2022

I tried all day and finally solved this problem. When I hit Archive with Xcode to package, the plugin doesn't work properly. But when I try to package it into runner.app with

flutter build ios --release

and then convert it to ipa, everything works fine, I hope it can help you

@LeventeAsztalos
Copy link

@NAKANISYNTH @Moyck
Did you find a solution to this issue? How did you convert the released build to ipa?

@NAKANISYNTH
Copy link
Author

@jugamir This issue seems to have been solved in the latest version 0.4.4. https://pub.dev/packages/flutter_sequencer/changelog

@Moyck
Copy link

Moyck commented May 5, 2022

@jugamir The version I use is 0.4.4, but still have this problem.
My solution is to use flutter build ios to generate Runner.app file, then use flutter build ipa to generate Runner.xcarchive. Open Runner.xcarchive/Products/Applications and replace Runner.app file

@LeventeAsztalos
Copy link

LeventeAsztalos commented May 10, 2022

This solved it for me:
#10 (comment)

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

3 participants