如何找出设备坐标

时间:2011-08-09 15:04:47

标签: ios4 core-location

嗨朋友我是新的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)。

1 个答案:

答案 0 :(得分:1)

只有在您没有iPhone Developer证书的情况下才能在模拟器上调试它。检查xcode中的左角,选择模拟器而不是设备。