在 iOS 应用程序中实施 OsmAnd

Implement OsmAnd in iOS application

如何在我的 iOS 应用程序中实施 OsmAnd?我已经从 github 下载示例项目,但在 运行 代码时出现错误。

我已经对其进行了研发,并且了解我必须从 here 实施所有必要的存储库,但问题是如何做到这一点?完全不知道该怎么办?

参考:Google Groups

我已经解决了这个问题。

请按照以下步骤进行操作,

  1. 在 Mac 终端中设置 MacPorts
  2. 在终端中执行以下命令

    sudo port install bash, bzip2, curl, git, ImageMagick +rsvg, librsvg, p7zip, python3*, wget
    
  3. 安装Google Repo

  4. mkdir OsmAnd && cd OsmAnd
  5. repo init -u https://github.com/osmandapp/OsmAnd-manifest -m readonly.xml
  6. ./ios/prepare.sh
  7. ./ios/prebuild-core.sh

    打开 Xcode 并再次构建你得到一个错误

Implicitly declaring library function 'malloc' with type 'void *(unsigned long)'

要解决此错误,请在 gif_hash.h 文件中添加 #include <stdlib.h>

现在,构建 运行 它的工作。

参考:Github