Ios4 如何找到设备坐标

Ios4 如何找到设备坐标,ios4,core-location,Ios4,Core Location,嗨,朋友们,我是新的iPhone开发者。如何使用GPS地图查找设备坐标。我尝试了这种委托方法 - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation; - (void)locationUpdate:(CLLocation *)location { locati

嗨,朋友们,我是新的iPhone开发者。如何使用GPS地图查找设备坐标。我尝试了这种委托方法

- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
       fromLocation:(CLLocation *)oldLocation;


- (void)locationUpdate:(CLLocation *)location 
{
locationLabel.text = [location description];

NSLog(@"the locationLabel.text %@",locationLabel.text);
}
但错误是设备坐标与模拟器成功配合,但设备不工作这种错误即将发生,原因是什么请帮助我

用于对可执行文件进行签名的标识不再有效

请验证设备的时钟设置是否正确,以及签名证书是否未过期。(0XE8008018)


只有在您没有iPhone开发者证书的情况下,才可以在模拟器上调试它。选中xcode中的左角,选择模拟器而不是设备