Jump to content

Astronaut

Senior Member
  • Posts

    163
  • Joined

  • Last visited

Everything posted by Astronaut

  1. I am trying to insert a UIAlert pop up. I hooked it to applicationDidBecomeActive and when I compile it, there are no errors. The pop up appears but after I press the button for it to go away, it just leaves a black screen with a status bar. My makefile has : NAMEHERE_FRAMEWORKS = UIKit My Tweak.xm has: #import <UIKit/UIKit.h> and this is the code in Tweak.xm: %hook AppDelegate -(void)applicationDidBecomeActive:(id)argument { UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Tittle" message:@"A message here" delegate:nil cancelButtonTitle:@"Thanks!" otherButtonTitles:nil]; [alert show]; [alert release]; } %end I'm on iOS 9.3.3
  2. I believe this fixed it. The tweak works like how it's supposed to work. I tried this Makefile: ARCHS = armv7 arm64 armv7s export TARGET = iphone:9.3:9.3 include theos/makefiles/common.mk TWEAK_NAME = test test_FILES = Tweak.xm include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard" But my question is: Is this going to work with other iOS versions and devices?
  3. I still get the same error. Makefile:13 Missing separator
  4. It won't compile now. This is what I get: iPhone-7:/var/mobile/noadsn3 root# make package /var/mobile/noadsn3/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang. /var/mobile/noadsn3/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries. Makefile:13: *** missing separator. Stop
  5. On top of export TARGET right?
  6. Makefile: export TARGET = iphone include theos/makefiles/common.mk TWEAK_NAME = NoAdsN3 NoAdsN3_FILES = Tweak.xm include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard"
  7. yes I used flex to create this code but it worked with flex and not with the deb I created.
  8. Is my code correct? Because when I install the deb file, it doesn't do what it's supposed to do which is remove the ads. This is the code: My Tweak.xm: %hook ReachabilityGLAds -(BOOL) startNotifier { return FALSE; } %end %hook GLAdBanner -(id) init { return NULL; } %end %hook GLOfflineAdFullScreenManager -(id) getAllEmbeddedFullScreenAds { return NULL; } %end
  9. Is this correct? I am now able to create the .deb but once I install it, it doesn't do anything like remove the ads. My Tweak.xm: %hook ReachabilityGLAds -(BOOL) startNotifier { return FALSE; } %end %hook GLAdBanner -(id) init { return NULL; } %end %hook GLOfflineAdFullScreenManager -(id) getAllEmbeddedFullScreenAds { return NULL; } %end
  10. Package: com.fuerza.noads4n3Name: NoAds4N3 Depends: mobilesubstrate Version: 1.0.0 Architecture: iphoneos-arm Description: Removes ads. Maintainer: Fuerza Author: Fuerza Section: Tweaks
  11. iPhone-7:/var/mobile/Projects/AntiN3Ads root# make package messages=yes Making all for tweak AntiN3Ads... /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' make -f Makefile --no-print-directory --no-keep-going \ internal-library-compile \ _THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=AntiN3Ads _THEOS_CURRENT_OPERATION=compile \ THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-DTARGET_IPHONE=1 -O2 -I/var/mobile/Projects/AntiN3Ads/theos/include -include /var/mobile/Projects/AntiN3Ads/theos/Prefix.pch -Wall -Werror -isysroot "/var/mobile/Projects/AntiN3Ads/theos/sdks/iPhoneOS9.3.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_9_3 -miphoneos-version-min=9.3 -I/usr/include -c warnings=error " | | cut -c1-8' /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' /var/mobile/Projects/AntiN3Ads/theos/bin/logos.pl -c warnings=error Tweak.xm > ./obj/iphone/Tweak.xm.mm Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. clang++ -x objective-c++ -c -I"/var/mobile/Projects/AntiN3Ads" -DTARGET_IPHONE=1 -O2 -I/var/mobile/Projects/AntiN3Ads/theos/include -include /var/mobile/Projects/AntiN3Ads/theos/Prefix.pch -Wall -Werror -isysroot "/var/mobile/Projects/AntiN3Ads/theos/sdks/iPhoneOS9.3.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_9_3 -miphoneos-version-min=9.3 -I/usr/include -include "logos/logos.h" ./obj/iphone/Tweak.xm.mm -o obj/iphone/Tweak.xm..o rm ./obj/iphone/Tweak.xm.mm clang++ -L/var/mobile/Projects/AntiN3Ads/theos/lib -lobjc -framework Foundation -framework CoreFoundation -ObjC++ -fobjc-exceptions -fobjc-call-cxx-cdtors -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/AntiN3Ads.dylib" -isysroot "/var/mobile/Projects/AntiN3Ads/theos/sdks/iPhoneOS9.3.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_9_3 -miphoneos-version-min=9.3 -multiply_defined suppress -L/usr/lib -o "obj/iphone/AntiN3Ads.dylib..unsigned" obj/iphone/Tweak.xm..o strip -x "obj/iphone/AntiN3Ads.dylib..unsigned" CODESIGN_ALLOCATE=codesign_allocate ldid -S "obj/iphone/AntiN3Ads.dylib..unsigned"; mv "obj/iphone/AntiN3Ads.dylib..unsigned" "obj/iphone/AntiN3Ads.dylib" rm -rf "/private/var/mobile/Projects/AntiN3Ads/_" /var/mobile/Projects/AntiN3Ads/theos/bin/fakeroot.sh -p "/private/var/mobile/Projects/AntiN3Ads/.theos/fakeroot" -c mkdir -p "/private/var/mobile/Projects/AntiN3Ads/_" [ -d layout ] && rsync -a "layout/" "/private/var/mobile/Projects/AntiN3Ads/_" --exclude "DEBIAN" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*" || true Making stage for tweak AntiN3Ads... /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' mkdir -p "/private/var/mobile/Projects/AntiN3Ads/_/Library/MobileSubstrate/DynamicLibraries/" cp ./obj/iphone/AntiN3Ads.dylib "/private/var/mobile/Projects/AntiN3Ads/_/Library/MobileSubstrate/DynamicLibraries/" if [ -f AntiN3Ads.plist ]; then cp AntiN3Ads.plist "/private/var/mobile/Projects/AntiN3Ads/_/Library/MobileSubstrate/DynamicLibraries/"; fi mkdir -p "/private/var/mobile/Projects/AntiN3Ads/_/DEBIAN" du: cannot access `DEBIAN': No such file or directory sed -e '/^[Vv]ersion:/d' "/private/var/mobile/Projects/AntiN3Ads/control" > "/private/var/mobile/Projects/AntiN3Ads/_/DEBIAN/control" echo "Version: 1.0.0-1" >> "/private/var/mobile/Projects/AntiN3Ads/_/DEBIAN/control" echo "Installed-Size: 200" >> "/private/var/mobile/Projects/AntiN3Ads/_/DEBIAN/control" COPYFILE_DISABLE=1 /var/mobile/Projects/AntiN3Ads/theos/bin/fakeroot.sh -p "/private/var/mobile/Projects/AntiN3Ads/.theos/fakeroot" -r dpkg-deb -b "/private/var/mobile/Projects/AntiN3Ads/_" "./com.fuerza.antin3ads_1.0.0-1_iphoneos-arm.deb" dpkg-deb: parse error, in file `/private/var/mobile/Projects/AntiN3Ads/_/DEBIAN/control' near line 10 package `com.fuerza.antin3ads': missing version make: *** [internal-package] Error 2 This is preventing me from finishing my tweak. Anyone know what the problem is? Thanks!
  12. I used this tutorial: https://iosgods.com/topic/34420-how-to-install-theos-in-ios-933/ I'm on iOS 9.3.3 but it looks like you are on 9.0.2.
  13. You need "MTerminal", "Flex 1,2 or 3", "Theos", and "SDKs". I believe you need something more but that's all I know.
  14. I believe I deleted the symbolic link but also deleted a line of text in sh. I didn't delete bash. i think I fixed it. I copied "bash" then created a link and renamed it to sh. Did that do the trick? Because MTerminal is working again.
  15. okay so I didn't delete it. I just deleted the very first line of text/code. I don't know how to fix it.
  16. i permanently deleted it with iFile.
  17. I accidentally deleted the top line of code in my /bin/sh file. Is there anyway I can get it back? MTerminal doesn't work anymore.
  18. %hook YTVideoAdsCoordinatorState -(bool) prerollSeen { return TRUE; } %end %hook YTIPlayabilityStatus -(bool) isPlayableInBackground { return TRUE; } %end This is the code in Tweak.xm.
  19. When I run Make package, this error appears: iPhone-7:/var/mobile/Projects/MyTube root# make package Making all for tweak MyTube... /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-DTARGET_IPHONE=1 -O2 -I/var/mobile/Projects/MyTube/theos/include -include /var/mobile/Projects/MyTube/theos/Prefix.pch -Wall -Werror -isysroot "/var/mobile/Projects/MyTube/theos/sdks/iPhoneOS9.3.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_9_3 -miphoneos-version-min=9.3 -I/usr/include -c warnings=error " | | cut -c1-8' /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' Preprocessing Tweak.xm... Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42. Compiling Tweak.xm... Linking tweak MyTube... Stripping MyTube... Signing MyTube... Making stage for tweak MyTube... /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `echo "-x CODESIGN_ALLOCATE=codesign_allocate ldid -S" | | cut -c1-8' du: cannot access `DEBIAN': No such file or directory make: *** [internal-package] Error 2 Please help, I am new to this and have little experience.
  20. When I try to attach a process with GDB, I get this error: Attaching to process 5131. Segmentation fault: 11 (Gameloft game) Please help!
×
  • 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