reFlutter
reFlutter copied to clipboard
IOS app is automatically closing after using reflutter
Hello team @Impact-I , After using your reflutter, my IPA is automatically closing after the start. But it does work without using reflutter. What could be the reason behind it?
Thanks for your help in advance.
Hi @Impact-I , I am also experiencing the same issue when I used the updated version yesterday.
@jayluxferro which version are you using?
@basant-karki version==0.6.6
@jayluxferro @Impact-I it works on "reflutter==0.4.9". But it keep crashing on the latest version. @Impact-I Please fix this issue asap.
Let me try that and see. Thanks @basant-karki
@jayluxferro previous repo is deleted and version 0.4.9 is using old enginehash.csv from the old repo. So might be you will get an error.
Hello
Thanks for your interest in the project!
No point in using 0.4.9
You must use 0.6.6
When you say you were using an older version, do you mean that 0.4.9 worked successfully on same version of the application being processed?
The log of your device of the time interval would help me: starting from the launch of the application ending with its crash
Alright @Impact-I , I will get you a sample log.
@Impact-I yes, reflutter version == 0.4.9 was working fine for me.
@Impact-I Log of my device. iPhone Console.txt
@basant-karki What is your snapshot hash ? Today I will redo reFlutter logic and recompile engine for you Maybe this will help
@Impact-I thank you for your help, can you please explain a bit more about what was the actual problem?
@Impact-I here is the snapshot hash : SnapshotHash: 9cf77f4405212c45daf608e1cd646852
Hello @Impact-I , so when I hook into the runtime, this is what I get. The application just stops on launch.

Let me do some analysis on it using Frida and share. A hook into the application just terminates it.
@Impact-I thank you for your help, can you please explain a bit more about what was the actual problem?
I didn't find the actual problem and it seems to me that the log is incomplete I assume that the problem is in functionality of the new version - writing a file to the application folder leads to a crash
@Impact-I Thank you for the information. Now I'm waiting for the fix.
@jayluxferro What is your snapshot hash ?
The libappHash is d56742caf7b3b3f4bd2df93a9bbb5503
@basant-karki , @jayluxferro , Hope it works for you
pip uninstall reflutter
pip install reflutter==0.6.8
reflutter example.ipa
> I need to capture traffic only (Choose "No" if you also need a dump.dart) [Y/n]? Y
sign and install ipa
Hi @Impact-I , I tried version 0.6.8 and the app crashes. I took one ipa I refluttered and signed last week and tried doing same with the latest version and it still crashes.
I was able to load the one I refluttered and signed last week on the phone but not with the current version.
A link to the IPA I used: https://www.icloud.com/iclouddrive/085U2IpGotj6P2tqouAKRfC9w#test_app
@jayluxferro The ipa you shared has a different snasphot hash adf563436d12ba0d50ea5beb7f3be1bb
Now, recompile the engine for this hash
I do not have an ios device nearby, I hope you can help me with the test
Hi @Impact-I. About the IPA file I just realised I sent a version lower than what I initially used. For that I was able to reflutter it using the earlier version but not the current. I just thought if you try with that and it works then it should be fine.
I'm recompiling the engine locally to see if it'll work. I just realised you've also initiated a build for that too.
@jayluxferro Build completed for https://www.icloud.com/iclouddrive/085U2IpGotj6P2tqouAKRfC9w#test_app
(adf563436d12ba0d50ea5beb7f3be1bb)
Steps:
pip install reflutter==0.6.8
reflutter test_app.ipa
> I need to capture traffic only (Choose "No" if you also need a dump.dart) [Y/n]? Y
sign and install ipa
I hope this works
If that doesn't work, I'll erase all but the network patches and send the engine to build. -> If it still doesn't work after that, then you're probably doing something wrong. At least I don't know what else can be done about it and where the problem is.
@jayluxferro Did you succeed?
Hi @Impact-I , I tried it and it didn't work. I built the engine locally too and used that to reflutter it but it also didn't work. I thought it was a problem with my apple signing keys but I tested it with one I already refluttered some time back and my signing keys were okay.
The reflutter process completes successfully; it just that the application still crashes on launch.
I wish you had an iPhone close by to test the test_app.ipa
@jayluxferro If you have this in your logs
Bootstrapping failed for <FBApplicationProcess: 0x105f3a1f0; application<appexample>:-1> with error: <NSError: 0x282ee19b0; domain: RBSRequestErrorDomain; code: 5; reason: "The launchd job couldn't be started."> {
underlyingError = <NSError: 0x282ee2070; domain: NSPOSIXErrorDomain; code: 3; reason: "No such process">
It's probably a problem with the signature.
Sorry for your time. Now I will make the last build leaving only network patches
@Impact-I I checked but I didn't have any codesigning issues. This is what I see what I run the app multiple times after it crashes.

@jayluxferro Build completed for https://www.icloud.com/iclouddrive/085U2IpGotj6P2tqouAKRfC9w#test_app (adf563436d12ba0d50ea5beb7f3be1bb)
Steps:
remove release.RE.ipa
pip install reflutter==0.6.8
reflutter test_app.ipa
> I need to capture traffic only (Choose "No" if you also need a dump.dart) [Y/n]? Y
sign and install ipa
This build should work with fewer patches than reFlutter from the old repository
Hi @Impact-I , thanks that works. I will try building the engine locally for this hash d56742caf7b3b3f4bd2df93a9bbb5503 and also try and see if it works. Will let you know if I find anything around this issue. Thanks a lot.