Jump to content

KingRalph

Senior Member
  • Posts

    1,300
  • Joined

  • Last visited

Posts posted by KingRalph

  1. also how do I make a uialert

    in my tweak.xm should i put import the UiKit and import foundation that's what shmoo was telling me if so what is the exact code of both

     

    Your makefile will look something like this:

     

    ARCHS = arm64 armv7
    TARGET = iphone:clang:8.1
     
    include theos/makefiles/common.mk
     
    TWEAK_NAME = XXX
    XXX_FILES = Tweak.xm
    XXX_FRAMEWORKS = UIKit
     
    include $(THEOS_MAKE_PATH)/tweak.mk
     
    after-install::
    install.exec "killall -9 SpringBoard"
     
    

    Don't forget to replace XXX with the name of your tweak! :)

  2. Not getting mad at anyone here but now I'm getting ****ing pissed now I tried moving stuff around in my tweak.xm of course ****ing didn't work screw the ****ing project I'm about to have someone I trust that can compile it

    It's alright fam, I've been there before. Just keep persevering, and you will find a solution. :)

     

    Ps. I made a tool that will (hopefully) fix your errors.

  3. I re-coded the tweak. Decided to hook the GADViewController class function instead hooking of the instance variable.

    Here is the updated code:

    #import <substrate.h>
    #import <Foundation/Foundation.h>
    
    %hook GADBannerView
    
    - (void)setFrame:(CGRect)frame {
        frame = CGRectMake(0,0,0,0);
        %orig(frame);
    }
    
    %end
    
  4. I'm trying to modify the properties of an instance variable, so I decided to hook the variable inside the init function (because init is called first). Can someone please review my code? I feel like I'm missing something.

    %hook RootViewController
     
    - (id)init {
    // Hook the instance variable for the ad's view 
    adsView = MSHookIvar<UIView *>(self, "_bannerViewContainer");
    // Hide the ad's UIView
    adsView.hidden = YES;
     
    return %orig;
    }
    %end
  5. Run the command $THEOS/bin/nic.pl and got this output:

     

    can't load '/usr/local/lib/per15/5.14.4/arm-iphoneos-21e en /usr/local/lib/per15/5.14.4/arm-ihoneos-21evel/a to/Fentl/Fentl.bundle 1 : no suitable image found. Di /usr/local/lib/per15/5.14.4/arm-iphoneos-21ev el/ s.0x0022E000 size.0x00001000 segment. DATA in segment I nt:map() mapping /usr/local/lib/perl5/5.14.4/arm-iphoneos /level /auto/Fcntl/Fcntl.bundle:mmap line 7 . at /usr/local/lib/per15/5.14.4/arm-iphoneos-21evel/Fcntl. Compilation failed in re• ire at /usr/local/lib/per15 /5.14.4/arm-iphoneos-21evel/POSIX.pm line 13. BEGIN failed nom er15/5.14.4/arm-iphoneos-21evel/POSIX.pm line 19. compilation aborted at /var/THEOS/bin/nic.pl line 16

    Your theos is probably broken.

     

    You can reinstall it with this tool I made.

  6. So I installed you setuptheos deb file and I installed. All went good. I reinstalled my sdk. I checked everything to make sure it was fine. I cd'd into my project and ran make package install and got that error. But I think as I discussed with mitosis, it is because I'm on an arm64 device. Im not sure though.

    Hmmm...

     

    Why don't you try the "setupAll" option?

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