if I start my app (ios 9 with Swift 2) in xcode 7, I get this warnings at beginning:
Oct 9 10:45:11 AppName[2866] : CGContextSaveGState: invalid context
It seems like that you are setting the corner radius(working with layers) of a view.
Solution 1:
Set environmental variable via menu: Product-> Scheme->Edit Scheme. In "Run" item, locate "Arguments" tab, you'll see "Environmental Variables" in the tab, Add CG_CONTEXT_SHOW_BACKTRACE
and set its value to YES.
Solution 2:- If above solutions does not work for you, then remove the UIViewControllerBasedStatusBarAppearance from Info.plist.