Hi guys, so I am pretty new here but been able to find plenty of useful information on the forums, been trying not to make any support topics asking silly questions just to be directed to a tutorial, wouldn't be so bad if there was one for the issue I'm having 😁
Basically I am making a theos-jailed app,
ARCHS = armv7 arm64
MODULES = jailed
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = UberDriverPro
DISPLAY_NAME = Uber Driver
BUNDLE_ID = com.ubercab.UberPartner
UberDriverPro_FILES = Tweak.xm
UberDriverPro_IPA = /Users/johnsmith/Desktop/uber2/ipa/decrypted.ipa
include $(THEOS_MAKE_PATH)/tweak.mk
I've got a resources folder with Info.plist which just replaces the .plist which I confirmed is working.
I've got no idea how to check if tweak.xm is working as I've got my iPhone 5s jailbroken at 11.4.1 and there is no jailbreak detection bypass for this ios yet and the app doesn't run without it (no way to test) but I got it from a flex 3 beta tweak and converted to %hook%. Is there any way to check for it in files or anywhere after compiling?
What puzzles me is that the decrypted app is 43.1 MB, compiled app is 42.2 MB and pre-decryption its 123 MB 😵
The encrypted app installs fine via iFunBox but the compiled one post-tweaks just comes up with ERR: Package installation failed (-402653081), Cydia Impactor crashes towards the end at ><APPNAME arm/arm64,> AppDB Pro just doesn't start installing it and times out (normally it signs apps with dev certificate so you don't have to reinstall every 7 days).
Considering I already extracted all the headers from the app for future tweaking and no longer need JB (for now) if this method doesn't work is it possible to just put the Info.plist and tweak.xm in a .dylib and sideload it inside the encrypted ipa? (just opening in WinRAR and packing the files in)? Its making .dylib files in \.theos\obj of the project folder but there is some in subfolders arm64, armv7, debug (biggest by 1kb), there is 2 in the main obj folder one with the tweak name 113kb and one with app name 65kb, would one of those contain the Tweak.xm and Info.plist?
Here is my tweak.xm:
#define PLIST_PATH @"Info.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
%hook UBDirectedDispatchFlow
-(BOOL)shouldCheckFareInRiderApp {
return TRUE;
}
%end
%hook UBDirectedDispatchFlow
-(BOOL)shouldShowDoPanelTask {
return TRUE;
}
%end
and my compile log:
Johns-Mac:uberdriverpro johnsmith$ make package FINALPACKAGE=1 CODESIGN_IPA=0
> Making all for tweak UberDriverPro…
make[2]: Nothing to be done for `internal-library-compile'.
> Making stage for tweak UberDriverPro…
find /Users/johnsmith/Desktop/uber2/uberdriverpro/.theos/_ -name \*.png -a ! -type l -exec pincrush -i {} \;
find /Users/johnsmith/Desktop/uber2/uberdriverpro/.theos/_ \( -name \*.plist -or -name \*.strings \) -exec plutil -convert binary1 {} \;
==> Unpacking decrypted.ipa…
==> Copying resources…
==> Setting bundle ID…
==> Setting display name…
==> Merging Info.plist…
==> Copying dependencies…
==> Injecting dependencies…
==> Repacking UberDriver.app…
Johns-Mac:uberdriverpro johnsmith$
Been working on this for 3 days straight (started from 0 experience just finding a flex tweak) so its a lot of time I really don't want to go to waste especially cause it feels like I am just about to get it done, then just unjailbreak the iPhone and sideload.
Any help would be appreciated guys!
Edit: V strange, just realized the original ipa doesn't want to load on the phone via anything other than iFunBox, where as the older version of it loads no problem, I downloaded it via iTunes changing the http requests to ext app identifier 823263228 so its in my iTunes app library, not something off the web, not sure what the reason for that could be, now I am really puzzled as that's an app straight from iTunes app store, I can't get another version of the app to decrypt and this is the last one that supports the tweak as well as the first one to support an in-app feature to stop it from crashing during use,