When my project in debug mode ,everything work fine. But when I change to release mode, my app crash at
[_menuButton setTitleTextAttributes:@{NSFontAttributeName:[UIFont fontWithName:kFontAwesomeFamilyName size:30.0],
NSForegroundColorAttributeName:[UIColor whiteColor]
} forState:UIControlStateNormal];
the error message is
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
If I commented the code , it can run fine but all FontAwesome icon became question mark.
Any idea to fix it ? Please help , thanks a lot !