alibaba / alibaba/flutter_boost

关于v3.0-preview.9 iOS集成 pod中遇到的问题

Open
#1,338 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

按照https://github.com/alibaba/flutter_boost/blob/master/docs/install.md文档操作, flutter_module引入
```
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: 'v3.0-preview.9'
```
原生iOS项目Podfile 加入代码

```
platform :ios, '10.0'

flutter_application_path = '../flutter_module'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

def shared_pod
pod 'AFNetworking'
pod 'MJExtension'
pod 'SDWebImage'
pod 'MJRefresh'
...

end

target 'new_studentApp' do

use_frameworks!
install_all_flutter_pods(flutter_application_path)

shared_pod
end
```

执行pod install
![图片](https://user-images.githubusercontent.com/17728229/131432470-b8fb778f-fdce-4082-a0e9-479c71cfe66a.png)

之后build iOS原生项目包多处原本正常的头文件未找到错误
![图片](https://user-images.githubusercontent.com/17728229/131432780-94768b6a-5543-437a-ad00-d86fc5472d9d.png)
原生iOS项目是OC混合Swift,在集成flutter_boost3.0之前,pod依赖的库是正常,不存在头文件未找到的情况,项目运行正常,故求助是否flutter_boost3.0 pod install 新增的依赖,如FMDB,FlutterPluginRegistrant..这些导致某种异常。

Contributor guide

No contributing guide indexed for this repository

Research direction

Read docs/install.md and the native iOS Podfile, focusing on the flutter_boost v3.0-preview.9 integration and the added pod dependencies. Reproduce with pod install and an iOS build, recording the exact missing-header errors shown in the screenshots; done means the cause is isolated and the previously working Objective-C/Swift dependencies build successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.