Location Services not working in iOS 8

前端 未结 26 1980
滥情空心
滥情空心 2020-11-21 10:23

My app that worked fine on iOS 7 doesn\'t work with the iOS 8 SDK.

CLLocationManager doesn\'t return a location, and I don\'t see my app under

26条回答
  •  情深已故
    2020-11-21 10:34

    A little helper for all of you that have more than one Info.plist file...

    find . -name Info.plist | xargs -I {} /usr/libexec/PlistBuddy -c 'Add NSLocationWhenInUseUsageDescription string' {} 
    

    It will add the needed tag to all of the Info.plist files in the current directory (and subfolders).

    Another is:

    find . -name Info.plist | xargs -I {} /usr/libexec/PlistBuddy -c 'Set NSLocationWhenInUseUsageDescription $YOURDESCRIPTION' {} 
    

    It will add your description to all files.

提交回复
热议问题