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

Error when sideloading apps (EXC_BAD_ACCESS) #18

Open
Smethan opened this issue Sep 28, 2019 · 12 comments
Open

Error when sideloading apps (EXC_BAD_ACCESS) #18

Smethan opened this issue Sep 28, 2019 · 12 comments

Comments

@Smethan
Copy link

Smethan commented Sep 28, 2019

As the title says, whenever I try to sideload an app using the beta, i.e GBA4iOS, Cercube, Rocket for ig, etc., it crashes after around 5 seconds with no communication to AltServer in that time. I can send crash logs, if that would be helpful. As for the device, it's an iPhone XR on iOS 13.1, and all the apps listed above can be sideloaded just fine with impactor

@eni9889
Copy link

eni9889 commented Sep 28, 2019

This is due to unsigned framework binaries and there is a pending PR to fix it: rileytestut/AltSign#1

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

I have tried pulling in your PR and building, now the freshly compiled AltStore just crashes on my phone, says something about a CoreData error

@eni9889
Copy link

eni9889 commented Sep 29, 2019

Yea same happens to me, don’t know why the PR would cause that will investigate. It’s only an issue on iOS 13 no problems on iOS 12

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

Seems like its not an issue with your PR, I built it with a clean pull of the repo and I still got the crash, so it must be something else, and it does seem to be isolated to iOS 13, my iOS 12 device worked fine with it...

@eni9889
Copy link

eni9889 commented Sep 29, 2019

@Smethan it turns out you need to use Xcode 10.3 to build the project. Xcode 11 has issues.

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

Good to know. I’ll build there I suppose

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

Alrighty, I've compiled it successfully on Xcode 10.3 and ran it on my phone, it works mostly, but I still get the same EXC_BAD_ACCESS error when trying to sign the same apps

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

I've looked into it and apparently its an issue with dereferencing a null pointer at line 79 in ldid.cpp
uint32_t data = mach_header.Swap(signature->dataoff);
The Xcode static analyzer gave the error "Access to field 'dataoff' results in a dereference of a null pointer (loaded from variable 'signature')"

I don't quite know how I would fix this, as I'm not exactly a C++ developer, but maybe it could help someone else out.

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

Update: I bypassed that error by always making signature non-null, but then I got another similar error, so I don't quite know what the real issue here is. Its looking ldid might just have some issues on iOS 13, or just with A12 devices

@eni9889
Copy link

eni9889 commented Sep 29, 2019

Did you use my branch for both altsign and ldid?

Sent with GitHawk

@Smethan
Copy link
Author

Smethan commented Sep 29, 2019

Yes. I pulled the regular AltStore repo, deleted the altsign sub module, and then checked yours out along with ldid

@Smethan
Copy link
Author

Smethan commented Oct 4, 2019

So, it has been a few days, and it seems to me that the Swap() command may be the culprit, as the previous error happened there, and it happens again on the swap command if I bypass that one. I know for a fact that it's a problem within the Entitlements section of the non-dependency ldid, might not be getting the entitlements correctly?

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

Successfully merging a pull request may close this issue.

2 participants