flutter_sequencer
flutter_sequencer copied to clipboard
Exported iOS app is unable to complete createTracks
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 :)
Any progress?
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
@NAKANISYNTH @Moyck Did you find a solution to this issue? How did you convert the released build to ipa?
@jugamir This issue seems to have been solved in the latest version 0.4.4. https://pub.dev/packages/flutter_sequencer/changelog
@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
This solved it for me: https://github.com/mikeperri/flutter_sequencer/issues/10#issuecomment-827046191