NSInternalInconsistencyException: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'

前端 未结 9 866
终归单人心
终归单人心 2020-12-15 02:42

I\'m trying to get my app working in Xcode 7 beta but I\'m hitting this exception:

NSInternalInconsistencyException: \'Invalid parameter not satisfying: !sta         


        
9条回答
  •  醉酒成梦
    2020-12-15 03:48

    I've managed to solve this by doing these two things:

    • added UIBackgroundModes 'location' to Info.plist
    • added NSLocationAlwaysUsageDescription to Info.plist

    As of iOS 11, keys are named:

    • NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription

提交回复
热议问题