2017-09-25 13:55:28.722978+0800 Test[422:45563] +[UIColor flatBlueColor]: unrecognized selector sent to class 0x1a95f6ce0
2017-09-25 13:55:28.723143+0800 Test[422:45563] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIColor flatBlueColor]: unrecognized selector sent to class 0x1a95f6ce0'
*** First throw call stack:
(0x18343afe0 0x181e9c538 0x183441e34 0x18343ef54 0x18333ad4c 0x10005608c 0x18956bec0 0x18956ba9c 0x18957231c 0x18956f7b8 0x1895e1224 0x1897e97ec 0x1897ef1e0 0x189803d18 0x1897ec474 0x184fe3884 0x184fe36f0 0x184fe3aa0 0x1833e942c 0x1833e8d9c 0x1833e69a8 0x183316da4 0x1895d6384 0x1895d1058 0x100057314 0x18232559c)
libc++abi.dylib: terminating with uncaught exception of type NSException
解决办法:
工程文件中选择Build Setting,在"Other Linker Flags"中加入"-Objc -all_load" ,问题就解决了。