Skip to content
Guest Big Announcement

SettingsKit Error While Compiling

Featured Replies

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.

  • Author

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

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.