Jump to content

45GTR

Senior Member
  • Posts

    443
  • Joined

  • Last visited

Posts posted by 45GTR

  1. Makefile:N: theos/makefiles/common.mk: Not a directory
    Makefile:N: /tweak.mk: No such file or directory
    

    You need to add a theos sumlink in both the tweak folder and preferences folder (if you have one). A sumlink can be created using ifile by selecting a new symbolic link, naming it 'theos' and linking it to /private/var/theos/

    ".../theos/makefiles/targets/PPP/iphone.mk:21: *** first argument to 'word' function must be greater than 0. stop."
    
    

    You haven't downloaded the required SDKS. They can be found at http://iphone.howett.net/sdks/ once downloaded, create a new folder in the theos directory named 'sdks' and unzip the sdk you downloaded. THIS MUST BE DONE ON iFILE.

    ld: file too small (length=LLL) file. '.../theos/sdks/iPhoneOSX.Y.sdk/usr/ZZZ' for architecture armAAA.
    

    You have a faulty sdk, redownload and redo the steps above. This error normally occurs when you unzipped the sdk on PC

    FFF:LLL:10: fatal error: 'substrate.h' file not found
    #include <substrate.h>
             ^
    1 error generated.
    

    You are missing valuable iOS headers. They can be found at https://github.com/rpetrich/iphoneheaders once downloaded, extract them to the 'include' folder inside the 'theos' directory.

    Illegal instruction: 4
    

    Occured because you have an older version of theos. Follow the tutorial here to reinstall: http://iosgods.com/topic/656-tutorialvideo-how-to-set-up-theos-on-your-idevice-ios7ios8/

    theos/makefiles/common.mk:103: *** You did not specify a target, and the "" platform does not define a default target. Stop.
    

    Your iOS device is 64 bit and theos isn't. To fix, go to theos/makefiles/platform/Darwin-arm.mk.  Rename it to Darwin-arm64.mk

    then go to /theos/makefiles/target/Darwin-arm. Rename it to Darwin-arm64.

    theos/makefiles/common.mk:115: *** The "iphone" target is not supported on the "" platform. Stop.
    

    Your iOS device is 64 bit and theos isn't. To fix, go to theos/makefiles/platform/Darwin-arm.mk.  Rename it to Darwin-arm64.mk

    then go to /theos/makefiles/target/Darwin-arm. Rename it to Darwin-arm64.

     

    If the preference bundle isn't loading for your project, add the following line to the top of your makefile:

    ARCHS = arm64 armv7
    

    Thanks guys...Kept it short n sweet @@DiDA

  2. Ok, scrap everything else before this. This is the code I'm using in a project without a preference bundle. When I've compiled, it does nothing (supposed to invoke the notification centre with a single swipe):

     

    %hook SBUIController

     

    -(BOOL)shouldShowNotificationCentreTabControlOnFirstSwipe {

     

    return FALSE;

     

    }

     

     

    %end

     

     

     

    Any ideas?

  3. EXACTLY. This one doesn't start with 'com', which is why it doesn't work! *sigh* You can't teach those who don't listen. Good luck with your ignorance m8

    This clearly shows you talking about the second project and not the first. It's funny how you've got a big mouth for a guy that has only one rep. f**king asshole.

     

     

    Oh yeah, forgot to say you've no thanks. Who's helpless now?

     

     

    D.I.C.K

  4. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.asd.preferences.plist"

     

     

    inline bool GetPrefBool(NSString *key)

    {

    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

    }

     

     

    %hook SBUIController

     

    -(bool)shouldShowNotificationCentreTabOnFirstSwipe {

    if(GetPrefBool(@"kEnabled")) {

    return TRUE;

    }

    return %orig;

    }

    %end

    you forgot the '{'

    finally, someone helpful, yeah tried that, didn't work :/

  5. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.asd.preferences.plist" 
    
    
    inline bool GetPrefBool(NSString *key)
    {
    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
    }
    
    
    %hook SBUIController
    
    -(bool)shouldShowNotificationCentreTabOnFirstSwipe {
    if(GetPrefBool(@"kEnabled")) 
    return TRUE;
    }
    return %orig;
    }
    %end
    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>items</key>
    	<array>
    		<dict>
    			<key>cell</key>
    			<string>PSGroupCell</string>
    			<key>label</key>
    			<string>preferences First Page</string>
    		</dict>
    		<dict>
    			<key>cell</key>
    			<string>PSSwitchCell</string>
    			<key>default</key>
    			<true/>
    			<key>defaults</key>
    			<string>com.asd.preferences</string>
    			<key>key</key>
    			<string>kEnabled</string>
    			<key>label</key>
    			<string>Enable Rotation On SpringBoard</string>
    		</dict>
    		<dict>
    			<key>action</key>
    			<string>respring</string>
    			<key>cell</key>
    			<string>PSButtonCell</string>
    			<key>label</key>
    			<string>Respring</string>
    		</dict>
    	</array>
    	<key>title</key>
    	<string>preferences</string>
    </dict>
    </plist>
    

    You dumbass it does start with com. Are you blind? Asshole

×
  • 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