reFlutter icon indicating copy to clipboard operation
reFlutter copied to clipboard

IOS app is automatically closing after using reflutter

Open basant-karki opened this issue 3 years ago • 57 comments

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.

basant-karki avatar May 06 '22 06:05 basant-karki

Hi @Impact-I , I am also experiencing the same issue when I used the updated version yesterday.

jayluxferro avatar May 06 '22 07:05 jayluxferro

@jayluxferro which version are you using?

ghost avatar May 06 '22 07:05 ghost

@basant-karki version==0.6.6

jayluxferro avatar May 06 '22 07:05 jayluxferro

@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.

ghost avatar May 06 '22 07:05 ghost

Let me try that and see. Thanks @basant-karki

jayluxferro avatar May 06 '22 07:05 jayluxferro

@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.

ghost avatar May 06 '22 08:05 ghost

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

Impact-I avatar May 06 '22 08:05 Impact-I

Alright @Impact-I , I will get you a sample log.

jayluxferro avatar May 06 '22 08:05 jayluxferro

@Impact-I yes, reflutter version == 0.4.9 was working fine for me.

ghost avatar May 06 '22 09:05 ghost

@Impact-I Log of my device. iPhone Console.txt

ghost avatar May 06 '22 09:05 ghost

@basant-karki What is your snapshot hash ? Today I will redo reFlutter logic and recompile engine for you Maybe this will help

Impact-I avatar May 06 '22 10:05 Impact-I

@Impact-I thank you for your help, can you please explain a bit more about what was the actual problem?

ghost avatar May 06 '22 10:05 ghost

@Impact-I here is the snapshot hash : SnapshotHash: 9cf77f4405212c45daf608e1cd646852

ghost avatar May 06 '22 10:05 ghost

Hello @Impact-I , so when I hook into the runtime, this is what I get. The application just stops on launch.

Screen Shot 2022-05-06 at 10 06 11 AM

jayluxferro avatar May 06 '22 10:05 jayluxferro

Let me do some analysis on it using Frida and share. A hook into the application just terminates it.

Screen Shot 2022-05-06 at 10 14 10 AM

jayluxferro avatar May 06 '22 10:05 jayluxferro

@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 avatar May 06 '22 10:05 Impact-I

@Impact-I Thank you for the information. Now I'm waiting for the fix.

ghost avatar May 06 '22 10:05 ghost

@jayluxferro What is your snapshot hash ?

Impact-I avatar May 06 '22 10:05 Impact-I

The libappHash is d56742caf7b3b3f4bd2df93a9bbb5503

jayluxferro avatar May 06 '22 10:05 jayluxferro

@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

Impact-I avatar May 06 '22 21:05 Impact-I

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 avatar May 07 '22 08:05 jayluxferro

@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

Impact-I avatar May 07 '22 10:05 Impact-I

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 avatar May 07 '22 11:05 jayluxferro

@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.

Impact-I avatar May 07 '22 11:05 Impact-I

@jayluxferro Did you succeed?

Impact-I avatar May 07 '22 13:05 Impact-I

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 avatar May 07 '22 13:05 jayluxferro

@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 avatar May 07 '22 13:05 Impact-I

@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.

Screenshot 2022-05-07 at 2 20 16 PM

jayluxferro avatar May 07 '22 14:05 jayluxferro

@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

Impact-I avatar May 07 '22 15:05 Impact-I

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.

jayluxferro avatar May 07 '22 20:05 jayluxferro