tweaselORG / appstraction

An abstraction layer for common instrumentation functions (e.g. installing and starting apps, setting preferences, etc.) on Android and iOS.
MIT License
4 stars 1 forks source link

Investigate crashing apps on fresh iOS installs #88

Open baltpeter opened 1 year ago

baltpeter commented 1 year ago

In #74, I observed problems with crashing apps after resetting the iPhone.

I was able to run the the example successfully (well, the app I tested crashed on the first try, causing the script to fail—but it did work on second try…).

Tested again on a fresh install and ran into the same problem, regardless of which app I tested. Even manually starting the installed apps afterwards, they would always crash.

I found that I have to start the apps once without the proxy disabled. Afterwards, they also work with the proxy, even after uninstalling and reinstalling them.

This seems like it might be a cert pinning issue with Apple verifying that I do in fact own the app? I don't remember running into this before.

Originally posted by @baltpeter in https://github.com/tweaselORG/appstraction/issues/74#issuecomment-1581548807

Interestingly, it now also works with a different app without needing to start it once without a proxy. So maybe, the condition is in fact that I need to start any App Store app once without proxy? Either way, that doesn't seem so severe anymore and doesn't seem to be caused by this PR, so I'll push this into an issue and merge.

Originally posted by @baltpeter in https://github.com/tweaselORG/appstraction/issues/74#issuecomment-1581550763