Skip to content
Guest Big Announcement

Theos/Terminal getting error code

Featured Replies

I'm getting this error when I tried to make a package, I'm on iOS 8.4 and running the iOS 8.1 sdk.

 

Last login: Sat Aug 13 21:46:00 on ttys000

RootAcGranted:~ mobile$ su

Password:

RootAcGranted:/var/mobile root# cd /var/mobile/bin/ni

c.pl

sh: cd: /var/mobile/bin/nic.pl: No such file or directory

RootAcGranted:/var/mobile root# cd /var/protest

sh: cd: /var/protest: No such file or directory

RootAcGranted:/var/mobile root# cd /var/mobile/protes

t

RootAcGranted:/var/mobile/protest root# make package

/var/mobile/protest/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

/var/mobile/protest/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

Making all for tweak protest...

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.

Tweak.xm:19: error: fell off the face of the planet when we found a '}'

make[2]: *** [obj/Tweak.xm.ed42f136.o] Error 255

make[1]: *** [internal-library-all_] Error 2

make: *** [protest.all.tweak.variables] Error 2

RootAcGranted:/var/mobile/protest root#

Solved by Patricktph

  • Author
  • Solution

This is my Tweak.XM

 

%hook SkipLimitState

-(bool) unlimitedStationSkips {

return false;

}

%end

 

%hook PMRadioConfig

-(bool) enabledBannerAds {

return false;

}

-(bool) enabledSkipLimit {

return false;

}

%end

 

%hook PMBaseSettings

-(bool) discardAudioAds

return true;

}

-(bool) ignoreDailySkipLimitForPartners {

return false;

}

-(bool) ignoreSkipLimit {

return false;

}

%end

 

%hook PmRadio

-(bool) userReceivesVisualAds {

return false;

}

%end

 

%hook PMListeningPersistence

-(int) dailySkipLimit {

return 999999999;

}

%end

%hook PMBaseSettings

-(bool) discardAudioAds

return true;

}

 

Needs to be 

 

%hook PMBaseSettings

 

-(bool) discardAudioAds {

 

return true;

 

}

 

You just forgot the "{" after discardAudioAds

 

@Amuyea beat me to it  :turned: 

Updated by Amaz1ng_

I could've done this, I don't think it does make any differences.

%hook SkipLimitState
-(BOOL)unlimitedStationSkips{
return FALSE;
}
%end

%hook PMRadioConfig
-(BOOL)enabledBannerAds{
return FALSE;
}
-(BOOL)enabledSkipLimit{
return FALSE;
}
%end

%hook PMBaseSettings
-(BOOL)discardAudioAds{
return true;
}
-(BOOL)ignoreDailySkipLimitForPartners{
return FALSE;
}
-(BOOL)ignoreSkipLimit{
return FALSE;
}
%end

%hook PmRadio
-(BOOL)userReceivesVisualAds{
return FALSE;
}
%end

%hook PMListeningPersistence
-(int)dailySkipLimit{
return 999999999;
}
%end

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.