FLEXing icon indicating copy to clipboard operation
FLEXing copied to clipboard

Latest libFLEX v4.4.0 is missing arm64e slice

Open yur1xpp opened this issue 4 years ago • 7 comments

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: https://github.com/DGh0st/FLEXall/issues/7#issuecomment-772887412

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.

yur1xpp avatar Feb 05 '21 02:02 yur1xpp

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

NSExceptional avatar Feb 06 '21 05:02 NSExceptional

I'm actually following similar issue on theos, and it seems Matt has found a way to do so: https://github.com/theos/theos/issues/563#issuecomment-759609420

yur1xpp avatar Feb 07 '21 02:02 yur1xpp

@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

opa334 avatar Feb 26 '21 19:02 opa334

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

dlevi309 avatar Feb 04 '22 07:02 dlevi309

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.

DeerSpotter avatar Mar 25 '22 17:03 DeerSpotter

@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 avatar Mar 25 '22 17:03 dlevi309

@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

dlevi309 avatar Mar 25 '22 17:03 dlevi309