当前位置: 代码迷 >> .NET Framework >> 对百度mapSDK中的真机framework和模拟器framework合并时遇到的有关问题
  详细解决方案

对百度mapSDK中的真机framework和模拟器framework合并时遇到的有关问题

热度:161   发布时间:2016-05-01 23:22:55.0
对百度地图SDK中的真机framework和模拟器framework合并时遇到的问题

在终端中输入的命令:

lipo -create
Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI
Release-iphonesimulator/BaiduMapAPI.framework/BaiduMapAPI
-output
Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI

注意:
Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI 为真机 framework 的路径 ;
Release-iphonesimulator/BaiduMapAPI.framework/BaiduMapAPI 为模拟器 framework 的路径 ;
-output 后面的 Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI 为合并之后的路径。

在终端中输入上述命令行后会遇到如下错误:

xcrun: error: active developer path (“/Applications/Xcode 2.app/Contents/Developer”) does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select)

解决方案:

在终端里执行如下命令即可解决:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

版权声明:本文为博主原创文章,未经博主允许不得转载。

  相关解决方案