我在 SpringBoard 或 imagent 中使用 CLLocationManager,但是当我分配 CLLocationManager 时,出现错误with:depending on legacy on-demand authorization, which is not supported for new apps
。即使在定位过程中,我也遇到了同样的情况......
%hook SpringBoard
-(void)applicationDidFinishLaunching: (id)application {
CLLocationManager *locationMgr = [[CLLocationManager alloc] init];
%orig;
}
%end
问题是如何在这个过程中获取位置信息?或者如果我可以更改应用程序的权利?