坑爹的高德地圖API
癥狀
ld: '-[MASearch poiSearchWithOption:]' in *****/Release-iphonesimulator/libMASearchKit.a(MASearch.o) contains undefined reference for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
同樣的錯誤已經有人反映到了高德官方論壇和cocoa論壇,但是無人回應。
解決方案
參見:http://bbs.amap.com/thread-5733-1-1.html
這是高德自身教程的一個bug。
高德地圖的庫是使用Objective-C++編譯的,因此,在依賴庫中,要鏈接上libstdc++.dylib。
浙公網安備 33010602011771號