alt tag

开发者实施指南

iOS

上次更新 : 03/10/2024
发布版本 : 5

简介

移动端的 TagCommander 是一系列小型 SDK 的集合,每个 SDK 都旨在服务于特定的目的。模块包括以下几种:

核心模块 (Core) : 用作其他模块的基础。

服务器端 (ServerSide) : 标签管理系统,通过服务器端方法收集数据。

同意 (Consent) : 将同意设置传递到我们的标签系统

对于每个模块,请查阅它们各自的文档以获取更多信息。

最新可用版本

核心模块 (Core) : 5.4.1

服务器端 (ServerSide) : 5.4.4

同意 (Consent) : 5.3.4

IAB : 5.1.1

合作伙伴 (Partners) : 5.0.3

向您的项目添加模块

如果您想向您的 iOS 项目添加模块,您有几种方式。

- Using cocoapods to manage the dependency.
- Using directly the framework files in your project.
- Using SPM

Cocoapods

我们重命名了所有的 pod!pod 的名称已更改,以便能够反映 podspec 的确切内容(从而防止名称警告)。

所有最新版本现在都指向 Xcode 12 编译的版本。如果您仍然需要 Xcode 11,请查看更新日志并指向最新的 Xcode 11 可用版本中的 pod。Xcode 11 已不再支持,并且不会再为其发布新版本。

pod 'latest_TCCore', :podspec => 'https://raw.githubusercontent.com/TagCommander/iOSV5/master/TCCore/latest_TCCore.podspec'
pod 'latest_TCServerSide', :podspec => 'https://raw.githubusercontent.com/TagCommander/iOSV5/master/TCServerSide/latest_TCServerSide.podspec'

您也可以指向特定版本(仅适用于最新构建)。

pod 'TCCore', :podspec => 'https://raw.githubusercontent.com/TagCommander/iOSV5/master/TCCore/5/0/0/TCCore.podspec'
pod 'TCServerSide', :podspec => 'https://raw.githubusercontent.com/TagCommander/iOSV5/master/TCServerSide/5/0/0/TCServerSide.podspec'

构建变体

从 Xcode 14 开始,Apple 将不再接受包含 Bitcode 的版本,因此我们移除了相应的变体。

我们曾经有几种变体,具体取决于您的需求,但是当 Bitcode 被移除后,我们尽力尽可能地减少变体数量。

目前,除了以下情况,所有模块只有一个版本

- [for TCCore] : one regular version
- [for TCServerSide] : one version without the code to get the IDFA
- [for TCConsent] : one regular version
- [for TCConsent] : one version made to work with IAB

非 IDFA 变体不会编译任何与 ASIdentifierManager 链接的内容。

XCFramework

我们模块的最新版本始终在我们的 github 帐户上提供:https://github.com/TagCommander/iosv5

您始终至少需要将核心模块 (Core) 添加到您的项目中。

将您需要的模块添加到您的项目,并确认 Xcode 确实在以下位置为您的 Target 添加了它们

- In the "general" tab under "Linked Frameworks and Libraries"
- In the "Build Phases" tab under "Link Binary With Libraries"
- That the FRAMEWORK_SEARCH_PATHS do include the places where the frameworks are.

SPM 支持

Swift Package Manager 是一种简单易用的安装 Commanders Act iOS 库的方式

  1.在 Xcode 中,选择 “File” → “Swift Packages” → “Add Package Dependency”

  2.输入 https://github.com/CommandersAct/iOSV5/

  3.为您的项目选择正确的产品

/!\ 警告

如果您需要将您的使用方式从 SPM 切换到 cocoapods 或本地 XCFramework,请务必清理您的构建文件夹。

如果您想更改产品变体或添加新的变体,您需要重新添加 iOSV5 包依赖项,并清空您的构建文件夹。

演示应用程序

您可以在以下仓库中找到一个集成我们库的有效应用程序的完整示例

https://github.com/CommandersAct/tcmobiledemo-v5

支持与联系方式

alt tag


支持 support@commandersact.com

http://www.commandersact.com

Commanders Act | 7b rue taylor - 75010 PARIS - 法国


本文档生成于 03/10/2024 11:37:22