Jump to content

4 posts in this topic

Recommended Posts

Posted

I get an error while compiling. I tried to fix it but instead I'm asking for help.

 Compiling /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m...
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:27: error: 
      no known class method for selector
      'appearanceWhenContainedInInstancesOfClasses:'
                [UISwitch appearanceWhenContainedInInstancesOfClasses:@[...
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:86: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:31: error: 
      no known class method for selector
      'appearanceWhenContainedInInstancesOfClasses:'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:31: error: 
      no known class method for selector
      'appearanceWhenContainedInInstancesOfClasses:'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:31: error: 
      no known class method for selector
      'appearanceWhenContainedInInstancesOfClasses:'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
8 errors generated.
make[3]: *** [obj//var/mobile/west/theos/include/SettingsKit/SKTintedListController.m.9f1b1269.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [east.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

I am using iOS 8.1 SDK if that matters.

Posted (edited)

I need iOS 9.2 SDK according to another post but then it says the headers are wrong. Don't know which is the fix.

So  I added this:

west_CFLAGS += -w

TWEAKNAME_CFLAGS += -w

i did change the name to my tweak and the preference bundle name.

 

Now I only get 4 errors.

/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:86: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
                                                                          ^
/var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:90: error: 
      property 'onTintColor' not found on object of type 'id'
  ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...

 

Updated by Astronaut

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