在運行程序的時候報出的錯誤信息:
Undefined symbols for architecture armv7s: "_CLLocationCoordinate2DMake", referenced from: -[DodgeDirectionsViewController viewDidLoad] in DodgeDirectionsViewController.o ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
這錯誤怎麼來的?請高人幫忙解決一下,謝謝。
在你的工程中加CoreLocation.framework
步驟:
project Targets -> Build Phases -> 點擊 '+'按鈕,然後添加CoreLocation' framework :)
這樣就可以啦