> For the complete documentation index, see [llms.txt](https://ryukiedev.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryukiedev.gitbook.io/wiki/flutter/25.ios-yuan-sheng-qian-ru-fluttermodule.md).

# 25.iOS原生嵌入FlutterModule

### Flutter Module

为了将 Flutter 嵌入原生项目，我们需要创建一个 Flutter Module

#### 方式一：通过AS创建 Module

![1](/files/U2NdWuFfnhFG8SqUl7y7)

#### 方式二：通过命令行创建

```
flutter create -t module 你的module名字比如my_module命名要符合规范
```

![2](/files/CtvZ4RaQluAgfxDnU0Aw)

### 配置Podfile

```
flutter_application_path = 'flutter Module 路径'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

target 'FlutterDemo' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

end
```

配置完成后 pod install
