I\'m trying to get my app working in Xcode 7 beta but I\'m hitting this exception:
NSInternalInconsistencyException: \'Invalid parameter not satisfying: !sta
We have iOS App & Notification Widget + Watch App. Following code does not reside in Watchkit Extension just anywhere else:
#if !EXTENSION
self.startUpdatingLocationAllowingBackground()
#endif
We don't need to to query location or other business requirements, that are base for this app's overall setup in all domains (not just ADP/iTC).
Other option: If you have selected background modes in targets -> Capabilities, make sure you have any of the backgound options selected. You tell Xcode that you're going to use something in the background, but then you do not tell it what you're going to use
I've managed to solve this by doing these two things:
UIBackgroundModes
'location' to Info.plistNSLocationAlwaysUsageDescription
to Info.plistAs of iOS 11, keys are named:
NSLocationAlwaysAndWhenInUseUsageDescription
and NSLocationWhenInUseUsageDescription