Commit f1fa28f0 王帅

readME

1 个父辈 1dc596a8
...@@ -80,6 +80,24 @@ You might get the following error: ...@@ -80,6 +80,24 @@ You might get the following error:
It might have something to do with Certificates, Identifiers & Profiles,You can contact the PM to try to resolve the problem. It might have something to do with Certificates, Identifiers & Profiles,You can contact the PM to try to resolve the problem.
##### Add AppTrackingTransparency.framework
If your device only supports `iOS14` or later, you can ignore this rule.
1. Target > General > Frameworks, Libraries, and Embedded Content and add AppTrackingTransparency.framework.
2. Target > Build Phases > Link Binary With Libraries and make AppTrackingTransparency.framework status as Optional.
<img src='resources/trackingFramework.jpg'>
This is how to do that from inside your build script:
project.AddFrameworkToProject(targetGUID, "AppTrackingTransparency.framework", true);
The last parameter "true" means "Optional" in the "Link Binary With Libraries" section, "false" means "Required".
# How to use # How to use
##### AntiAddictionSDK ##### AntiAddictionSDK
......
...@@ -78,6 +78,25 @@ Import ...@@ -78,6 +78,25 @@ Import
这可能是因为你使用的 Provisioning Profile 文件没有开启Apple登录权限,请联系掌游产品获取正确的配置文件。 这可能是因为你使用的 Provisioning Profile 文件没有开启Apple登录权限,请联系掌游产品获取正确的配置文件。
##### 添加AppTrackingTransparency库
如果您的设备仅支持`iOS14`以上,可以忽略此条。
由于SDK会获取IDFA,所以需要添加`AppTrackingTransparency`库,并将状态选为`Optional`,否则在`iOS14`以下的设备将发生崩溃。
1. Target > General > Build Phases > Frameworks, Libraries, and Embedded Content > 添加 AppTrackingTransparency.framework
2. 将 status 更改为 Optional
<img src='resources/trackingFramework.jpg'>
如果您使用 OnPostProcessBuild ,也可以在脚本中添加:
project.AddFrameworkToProject(targetGUID, "AppTrackingTransparency.framework", true);
最后一个参数"true" 表示 "Optional","false" 表示 "Required".
# 基本使用 # 基本使用
##### 创建 AntiAddictionSDK ##### 创建 AntiAddictionSDK
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!