报错:NSInternalInconsistencyException’, reason: ‘Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)’
在info.plist 中添加
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>
即可解决