百度地圖的導入


Ld /Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Products/Debug-iphonesimulator/map.app/map normal x86_64
    cd /Users/zhangfan/1-workbase/5-網絡/map
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Products/Debug-iphonesimulator -F/Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Products/Debug-iphonesimulator -filelist /Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Intermediates/map.build/Debug-iphonesimulator/map.build/Objects-normal/x86_64/map.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -framework Security -framework CoreGraphics -framework SystemConfiguration -framework BaiduMapAPI -framework OpenGLES -framework QuartzCore -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Intermediates/map.build/Debug-iphonesimulator/map.build/Objects-normal/x86_64/map_dependency_info.dat -o /Users/zhangfan/Library/Developer/Xcode/DerivedData/map-bqgmxzzxstxpvvdqdkznajnpquhn/Build/Products/Debug-iphonesimulator/map.app/map

ld: framework not found BaiduMapAPI
clang: error: linker command failed with exit code 1 (use -v to see invocation)


按照百度的開發指南進行導入,還是出現這種錯誤,就是因爲這些資源導入的方式不正確,導致工程找不到對應的資源。解決辦法是把framework拉進工程文件夾中,再進行重新導入,問題就解決了。

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