Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ios): update integration guide #3926

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions docs/development/ios-3.0-integration-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,7 @@
end
```

> 请注意,由于hippy3.x中使用了 #include "path/to/file.h" 的方式引用C++头文件,因此如果开启了 CocoaPods 的 framework 格式集成选项(即Podfile中 `use_frameworks!` 配置为开启状态),则必须在 Podfile 文件中加入如下配置:

```text
# 工程开启 use_frameworks! 后需添加此环境变量,用于hippy使用正确设置项
ENV["use_frameworks"] = "true"
```

> 同时,Podfile中必须采用指定hippy地址的集成方式,以使环境变量生效,更新后的Podfile如下所示:

```text
use_frameworks!
platform :ios, '11.0'
ENV["use_frameworks"] = "true" # for hippy3

# TargetName大概率是您的项目名称
target TargetName do

# 在此指定步骤1中记录的hippy版本号,可访问 https://github.com/Tencent/Hippy/releases 查询更多版本信息
pod 'hippy', :git => 'https://github.com/Tencent/Hippy.git', :tag => '3.3.0'

end
```
> 请注意,动态库方式接入 `"3.0.0-beta" ~ "3.2.0-beta"` 版本的 `beta版` Hippy iOS SDK 时需在 `Podfile` 添加 `ENV["use_frameworks"]` 环境变量,`"3.3.0"` 版本起已无需添加,如已添加可直接移除。

> 默认配置下,Hippy SDK使用布局引擎是[Taitank](https://github.com/Tencent/Taitank),JS引擎是系统的`JavaScriptCore`,如需切换使用其他引擎,请参照下文[《引擎切换(可选)》](#四引擎切换可选)一节调整配置。

Expand Down
Loading