Jump to content

Theos/Terminal getting error code


Go to solution Solved by Patricktph,

7 posts in this topic

Recommended Posts

Posted

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#

  • Solution
Posted

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

Posted (edited)

%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_
Posted

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

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