FastDDSPrebuild

为 Apple 平台预构建的 Eprosima Fast-DDS(前身为 FastRTPS)库。

支持的平台和架构

平台 架构
macOS x86_64 arm64
iOS arm64
iOS 模拟器 x86_64 arm64
Mac Catalyst x86_64 arm64
xrOS arm64
xrOS 模拟器 arm64

用法

向你的 package.swift 依赖项中添加一行

.package(url: "https://github.com/DimaRU/FastDDSPrebuild.git", from: "2.0.0")

目前与 FastRTPSSwift 库一起使用:https://github.com/DimaRU/FastRTPSSwift

Xcode 12 错误提示!

Xcode 12 现在有一个错误,会导致静态库 .a 文件被复制到应用程序包中。 将 Run Script 添加到你的 Xcode 项目,并使用以下命令

# Remove static libs
ls -1 ${CODESIGNING_FOLDER_PATH}/Contents/Frameworks/*.a
rm -f ${CODESIGNING_FOLDER_PATH}/Contents/Frameworks/*.a

从源代码构建你自己的仓库

要求

构建步骤

  1. 安装 gh:brew install gh
  2. 安装 xczip:brew install DimaRU/formulae/xczip
  3. 授权 gh:gh auth
  4. 克隆此仓库
  5. 检出 script 分支 git switch script
  6. 创建你自己的仓库
  7. 运行 ./script/fastrtps_build_xctframework.sh repo_path v2.6.7 commit