anthonya1999 / GoodNight

The first non-jailbroken iOS (and macOS) application to adjust the screen temperature, brightness, and color!
554 stars 63 forks source link

Problem with turning on Automatic Color Changing #66

Closed liangyangkoh closed 8 years ago

liangyangkoh commented 8 years ago

Hi, I have no problems enabling Temperature Changing - but when I press Automatic Color Changing, it just freezes, and I have to reinstall the app to get it working again.

Xcode gives the following: 2015-12-27 18:02:45.561 GoodNight[357:34548] -[MainViewController colorChangingEnabledSwitchChanged]: unrecognized selector sent to instance 0x13d634940 2015-12-27 18:02:45.565 GoodNight[357:34548] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MainViewController colorChangingEnabledSwitchChanged]: unrecognized selector sent to instance 0x13d634940' * First throw call stack: (0x182d69900 0x1823d7f80 0x182d7061c 0x182d6d5b8 0x182c7168c 0x187a93e50 0x187a93dcc 0x187a7ba88 0x187ceb92c 0x187ceb14c 0x187ceb460 0x187fdcdbc 0x187c005b8 0x187a8e9b0 0x187fde3bc 0x187a4db58 0x187a4a8dc 0x187a8c820 0x187a8be1c 0x187a5c4cc 0x187a5a794 0x182d20efc 0x182d20990 0x182d1e690 0x182c4d680 0x18415c088 0x187ac4d90 0x10009569c 0x1827ee8b8) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Also, when I press Brightness, the app just crashes. Xcode gives the following: 2015-12-27 18:03:37.896 GoodNight[361:35010] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x134508ff0>) doesn't contain a view controller with identifier 'whitepointController'' * First throw call stack: (0x182d69900 0x1823d7f80 0x188182224 0x10011a34c 0x100107658 0x187b91f38 0x187c50018 0x187d0cb70 0x187d1a030 0x187a4dc24 0x182d20588 0x182d1e32c 0x182d1e75c 0x182c4d680 0x18415c088 0x187ac4d90 0x10011d69c 0x1827ee8b8) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Again, I've to reinstall the app to get basic Temperature working again. Is this indicative of wrong group ID and app group problems? I've uploaded my project here. I apologise if this is a rookie mistake.

GoodNight-masterkly.zip

mariokorte commented 8 years ago

There is something really fishy with your working copy. Delete it and checkout a fresh copy.

liangyangkoh commented 8 years ago

Turns out in PrefixHeader.pch Xcode was not reading my groupID correctly - deleting that line and rewriting it solved all the problems, and the app works perfectly now. Thanks! Sorry for the trouble