百度地图的导入


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拉进工程文件夹中,再进行重新导入,问题就解决了。

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