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

Latest libFLEX v4.4.0 is missing arm64e slice #31

Open
yur1xpp opened this issue Feb 5, 2021 · 7 comments
Open

Latest libFLEX v4.4.0 is missing arm64e slice #31

yur1xpp opened this issue Feb 5, 2021 · 7 comments

Comments

@yur1xpp
Copy link

yur1xpp commented Feb 5, 2021

I encountered an issue where libFLEX failed to load in springboard, but not in apps on iPad Pro 2020 (A12). It load fine in <=A11. I opened this issue on FLEXall initially because I thought it was a FLEXall issue, but seems like it's pointing to libFLEX's. You can see the response by dghost here: DGh0st/FLEXall#7 (comment)

But by checking the Makefile, it does seems there a flag for arm64e, so I'm not sure is the released version included it? Thanks.

@NSExceptional
Copy link
Owner

I forgot that iOS 14 arm64e is incompatible with iOS 13. I need to find a way to include the iOS 13 arm64e slice with an iOS 14 arm64 slice

@yur1xpp
Copy link
Author

yur1xpp commented Feb 7, 2021

I'm actually following similar issue on theos, and it seems Matt has found a way to do so: theos/theos#563 (comment)

@opa334
Copy link

opa334 commented Feb 26, 2021

@NSExceptional an Xcode 11 slice will work on both <=13 and >=14, so you only need to recompile both libFLEX and FLEXing with Xcode 11

@dlevi309
Copy link

dlevi309 commented Feb 4, 2022

if you want, I could help with this. The version of LLVM distributed on bingners repo compiles everything to work with iOS14/13 automatically, I could compile it for you to distribute if you’d like

@DeerSpotter
Copy link

if you want, I could help with this. The version of LLVM distributed on bingners repo compiles everything to work with iOS14/13 automatically, I could compile it for you to distribute if you’d like

Can you please?

This would be great.

@dlevi309
Copy link

@DeerSpotter this is just the package I have compiled locally, the version number shouldn’t be considered in sync at all with the official version, but it’s the latest version of libFLEX as of two months ago. This is really me sending the latest build to you as if you messaged me personally, and has no affiliation with the official package. https://www.dropbox.com/s/w4ecgv7efhyt0nj/libflex_4.6.1_iphoneos-arm.deb?dl=0

Alternatively, you could also use a script I made to switch between the arm64e ABI. You’d basically have to download the version distributed on the main repo, and run these commands
lipo libFLEX.dylib -thin arm64e -output libFLEX.arm64e.dylib
python3 cpu-swipe.py libFLEX.arm64e.dylib
ldid -S libFLEX.arm64e.dylib and you can either just use that newly created version or create a new version of the full library by thinning the arm64 slice (from the original libFLEX.dylib) and then running lipo -create etc. here’s a link to the script for that: https://gist.github.com/dlevi309/cdde58d749bbce5c070ced56af510997

@dlevi309
Copy link

dlevi309 commented Mar 25, 2022

@DeerSpotter or, you know what, gimme a minute and I’ll just run the cpu-swipe stuff on the official package. Please hold

Edit: this is the version straight from the NSCake repo with the arm64e iOS13 edit, I removed the depiction and added +13 at the end of the package version as not to cause confusion. Still unofficial. https://www.dropbox.com/s/nlfk4mzn606rd4x/libflex_4.4.0%2B13_iphoneos-arm.deb?dl=0

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

No branches or pull requests

5 participants