Jump to content

7 posts in this topic

Recommended Posts

Posted

Hello, I am experiencing problems with Theos, I have the iOS 10.2 SDK

Here is the error:                                                                                                                                                

iPad:/var/mobile/liquidtextpdf root# make package                                                                                            
> Making all for tweak LiquidTextPDF…                                                                                                        
make[2]: Nothing to be done for 'internal-library-compile'.                                                                                  
> Making all in LiquidTextPDFSettings…                                                                                                       
> Making all for bundle LiquidTextPDF…                                                                                                       
==> Copying resource directories into the bundle wrapper…                                                                                    
==> Linking bundle LiquidTextPDF (armv7)…                                                                                                    
ld: framework not found Preferences                                                                                                          
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)                                                          
make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/liquidtextpdf/.theos/obj/armv7/LiquidTextPDF.bundle/LiquidTextPDF] Error 1                                                                                                                                           
==> Linking bundle LiquidTextPDF (arm64)…                                                                                                    
ld: framework not found Preferences                                                                                                          
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)                                                          
make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/liquidtextpdf/.theos/obj/arm64/LiquidTextPDF.bundle/LiquidTextPDF] Error 1                                                                                                                                           
make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/liquidtextpdf/.theos/obj/arm64/LiquidTextPDF.bundle/LiquidTextPDF] Error 2                                                                                                                                           
make[3]: *** Waiting for unfinished jobs....                                                                                                 
make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/liquidtextpdf/.theos/obj/armv7/LiquidTextPDF.bundle/LiquidTextPDF] Error 2                                                                                                                                           
make[2]: *** [/var/theos/makefiles/instance/bundle.mk:26: internal-bundle-all_] Error 2                                                      
make[1]: *** [/var/theos/makefiles/master/rules.mk:123: LiquidTextPDF.all.bundle.variables] Error 2                                          
make: *** [/var/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2                                                                

 

 

Tweak.xm:

@import Foundation;
@import UIKit;
#import <substrate.h>
#import "vm_writeData.h"

// To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-offsets/
// To Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject/

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.majdawwad.liquidtextpdf.plist"

inline bool GetPrefBool(NSString *key) {
		return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}


// Add your MS/Flex/MSHook Code here. Examples can be found on iOSGods.


%ctor {

	// Code Injection example
    if(GetPrefBool(@"key1")) {
      vm_writeData(0x123456, 0x123456); // 
    }

    if(GetPrefBool(@"key2")) {
      vm_writeData(0x10963C, 0xC0F8AC70); // 
    }

    if(GetPrefBool(@"key3")) {
      vm_writeData(0x1806B8, 0x381C); // ARMv7Offsets
      vm_writeData(0x2FA51C, 0x381C); // 
      vm_writeData(0x1001D98E0, 0x1F2003D5); // ARM64Offsets
      vm_writeData(0x10038DD0C, 0x1F2003D5); // 
    }

}

%hook LTuserinfo
-(bool) hasProUpgrade {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook LTuserinfo
-(void) setHasProUpgrade:(bool)arg1 {
if(GetPrefBool(@"key1")) {
arg1 = TRUE;
}
%orig(arg1);
}
%end

%hook LTuserinfo
-(bool) inkStartedEnabled {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook LTuseinfo
-(bool) inkingEnabled {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook LTuserinfo
-(void) setInkingEnabled:(bool)arg1 {
if(GetPrefBool(@"key1")) {
arg1 = TRUE;
}
%orig(arg1);
}
%end

%hook LTuserinfo
-(void) setValidatedStudent:(bool)arg1 {
if(GetPrefBool(@"key1")) {
arg1 = TRUE;
}
%orig(arg1);
}
%end

%hook LTuserinfo
-(bool) multidocEnabled {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook LTuserinfo
-(bool) multiDocStartedEnabled {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook LTuserinfo
-(bool) proStartedEnabled {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end

%hook CLSAnalyticsMetadataController
+(bool) hostJailbroken {
if(GetPrefBool(@"key2")) {
return FALSE;
}
return %orig;
}
%end


// Automatic Popup Code
void setup() {
    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Made for iOSGods.com" message:@"Liquid Text PDF Reader Patcher by Majd Awwad for iOSGods.com!\n\nVisit the hack's official topic on iOSGods for more information and updates!" preferredStyle:UIAlertControllerStyleAlert];


    UIAlertAction *iosgods = [UIAlertAction actionWithTitle:@"Visit iOSGods.com!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
        UIApplication *application = [UIApplication sharedApplication];
        NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"];
        [application openURL:URL options:@{} completionHandler:^(BOOL success) {
            if (success) {
                //NSLog(@"Opened url");
            }
        }];
        
    }];
    
    UIAlertAction *clubs = [UIAlertAction actionWithTitle:@"Visit the Clubs!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
        UIApplication *application = [UIApplication sharedApplication];
        NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/clubs/"];
        [application openURL:URL options:@{} completionHandler:^(BOOL success) {
            if (success) {
                //NSLog(@"Opened url");
            }
        }];
    }];
    
    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you ?" style:UIAlertActionStyleCancel handler:nil];
    
    [igcredits addAction:iosgods];
    [igcredits addAction:clubs];
    [igcredits addAction:thankyou];


    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];
}

void unsubscribeToLaunchEvent(void);

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,
                               CFStringRef name, const void *object, CFDictionaryRef info) {
    setup();
    unsubscribeToLaunchEvent();
}

const char *authObserver = "authObserver";

void subscribeToLaunchEvent() {
    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,
                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,
                                    NULL, CFNotificationSuspensionBehaviorDrop);
}

void unsubscribeToLaunchEvent() {
    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,
                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);
}

__attribute__((constructor)) static void initialize() {
    subscribeToLaunchEvent();
}

 

Makefile:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#THEOS_PACKAGE_DIR_NAME = debs
PACKAGE_BUILDNAME = iOSGods.com
#DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1
#GO_EASY_ON_ME = 1

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = LiquidTextPDF
LiquidTextPDF_FILES = Tweak.xm
LiquidTextPDF_FRAMEWORKS = UIKit
LiquidTextPDF_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk


SUBPROJECTS += LiquidTextPDFSettings # To compile your project as a Tweak only, comment out or remove this line.
include $(THEOS_MAKE_PATH)/aggregate.mk

 

  • Like 1
Posted
18 minutes ago, RudePerson said:

You are missing all files in: SdkFolder/System/Libary/PrivateFrameworks

 

Use this SDK: https://www90.zippyshare.com/v/u7FJ5AKX/file.html

 

Or copy all files from the PrivateFrameworks into your current SDK.

Now I get this error

find: ‘plutil’: Bad CPU type in executable    

Posted
6 hours ago, The Epic Gamer said:

I installed it but now I still have the same first error, even though I used the sdk you sent me

You haven't extracted it correctly then

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines