ios xcode cannot run using the selected device

xcode4.2 在運行是系統提示:ios xcode cannot run using the selected device

map程序,在viewDidLoad方法中直接賦值經緯度:

BMKCoordinateRegion region;
region.center.latitude = 45.58008;
region.center.longtude = xxxxx;
region.span.latitudeDelta = 0.2;
region.span.longitudeDelta = 0.2;
if(_mapView){
    _mapView.region = region;
    //NSLog(@"%f,%f",);
}



選中工程修改:summary->Deployment Target->4.3(默認爲5.0)

修改後運行不再出現上面的提示。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章