Jump to content

Theos error compiling tweak


Go to solution Solved by Rook,

6 posts in this topic

Recommended Posts

Posted (edited)
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!

Updated by Fuerza
Posted

What does your control file look like?


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!

 

What does your control file look like?

  • Solution
Posted

You have an empty space inside your control file which needs removing. I'm talking about newlines also.

 

I think only one newline is needed at the very end or none at all. :)

Posted (edited)

You have an empty space inside your control file which needs removing. I'm talking about newlines also.

I think only one newline is needed at the very end or none at all. :)

What does your control file look like?

 

What does your control file look like?

Package: com.fuerza.noads4n3

Name: NoAds4N3

Depends: mobilesubstrate

Version: 1.0.0

Architecture: iphoneos-arm

Description: Removes ads.

Maintainer: Fuerza

Author: Fuerza

Section: Tweaks

Updated by Fuerza
Posted

You have an empty space inside your control file which needs removing. I'm talking about newlines also.

I think only one newline is needed at the very end or none at all. :)

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

Posted

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

Is it the same as in Flex? Everything is case sensitive.

 

Also, make sure your bundle id is correct.

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
  • Our picks

    • Pal Go: Tower Defense TD v0.3.73 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 46 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 71 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Jailed Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4



      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
        • Agree
        • Winner
        • Like
      • 8 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4

       

      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
        • Haha
        • Like
      • 7 replies
    • Life in Adventure v1.2.30 [+3 Jailed Cheats]
      Modded/Hacked App: Life in Adventure By sangil kim
      Bundle ID: com.StudioWheel.Bard
      iTunes Store Link: https://apps.apple.com/us/app/life-in-adventure/id1551617649?uo=4



      🚀 Hack Features

      - Add Gems (Do not Add More Than 900. If your Gem > 1000 You'll get ban)
      - Guild Subscription Activeted
      - Never Die
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Life in Adventure v1.2.30 [+3 Cheats]
      Modded/Hacked App: Life in Adventure By sangil kim
      Bundle ID: com.StudioWheel.Bard
      App Store Link: https://apps.apple.com/us/app/life-in-adventure/id1551617649?uo=4



      🤩 Hack Features

      - Add Gems (Do not Add More Than 900. If your Gem > 1000 You'll get ban)
      - Guild Subscription Activeted
      - Never Die
        • Thanks
        • Like
      • 6 replies
    • Bounce Defense v1.3.5 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
        • Like
      • 11 replies
    • Bounce Defense v1.3.5 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
        • Like
      • 8 replies
    • Galaxy Defense: Fortress TD v0.8.9 [+2 Cheats]
      Modded/Hacked App: Galaxy Defense: Fortress TD By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.galaxydefense
      App Store Link: https://apps.apple.com/us/app/galaxy-defense-fortress-td/id6740189002?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Activate SVIP
       
        • Agree
        • Winner
        • Like
      • 25 replies
    • Galaxy Defense: Fortress TD v0.8.9 [+2 Jailed Cheats]
      Modded/Hacked App: Galaxy Defense: Fortress TD By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.galaxydefense
      App Store Link: https://apps.apple.com/us/app/galaxy-defense-fortress-td/id6740189002?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Activate SVIP
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Run! Goddess v1.0.17 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 76 replies
    • Run! Goddess v1.0.17 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 68 replies
×
  • 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