Jump to content

Need help with Theos!


Go to solution Solved by Pro,

13 posts in this topic

Recommended Posts

Posted

You're supposed to put %hook, then the class name. Example: %hook ReachabilityGLAds

Alright, I put in the "%hook" but I still get this message:

 

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

Posted

You're supposed to put %hook, then the class name. Example: %hook ReachabilityGLAds

  

Hi,

 

Try this makefile:

 

ARCHS = armv7 arm64

 

include theos/makefiles/common.mk

 

TWEAK_NAME = NoAdsForN3

NoAdsForN3_FILES = Tweak.xm

NoAdsForN3_FRAMEWORKS = UIKit

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

I have also modified my Makefile and fixed any errors in Tweak.xm:

 

My new Makefile:

export ARCHS = armv7 armv7s arm64

export TARGET = iphone:clang:8.1:8.1

export SDKVERSION=8.1

 

include theos/makefiles/common.mk

 

TWEAK_NAME = NoAdsForN3

 

NoAdsForN3_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

 

install.exec "killall -9 SpringBoard"

 

 

I now get this error when I run "make package":

 

iPhone-7:/var/mobile/Projects/NoAdsForN3 root# make p

ackage

Making all for tweak NoAdsForN3...

/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/NoAdsForN3/theos/include -include /var/mobile/Projects/NoAdsForN3/theos/Prefix.pch -Wall -Werror -isysroot "/var/mobile/Projects/NoAdsForN3/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -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'

make[2]: Nothing to be done for `internal-library-compile'.

Making stage for tweak NoAdsForN3...

/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 133

Posted

  

I have also modified my Makefile and fixed any errors in Tweak.xm:

 

My new Makefile:

export ARCHS = armv7 armv7s arm64

export TARGET = iphone:clang:8.1:8.1

export SDKVERSION=8.1

 

include theos/makefiles/common.mk

 

TWEAK_NAME = NoAdsForN3

 

NoAdsForN3_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

 

install.exec "killall -9 SpringBoard"

 

 

I now get this error when I run "make package":

 

iPhone-7:/var/mobile/Projects/NoAdsForN3 root# make p

ackage

Making all for tweak NoAdsForN3...

/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/NoAdsForN3/theos/include -include /var/mobile/Projects/NoAdsForN3/theos/Prefix.pch -Wall -Werror -isysroot "/var/mobile/Projects/NoAdsForN3/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -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'

make[2]: Nothing to be done for `internal-library-compile'.

Making stage for tweak NoAdsForN3...

/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 133

That's an error I've never seen before, but it seems like some thing(s) may not have been updated to iOS 9 yet? I'm on 8.4, so I have no clue about it

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