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

Podfile如何加载插件 #8

Open
Jiar opened this issue Apr 3, 2019 · 5 comments
Open

Podfile如何加载插件 #8

Jiar opened this issue Apr 3, 2019 · 5 comments

Comments

@Jiar
Copy link

Jiar commented Apr 3, 2019

作者你好,

我在build_ios.sh脚本下发现了如下一行

PRODUCT_APP_PATH="${PRODUCT_PATH}/Flutter"

导致只会上传Flutter的引擎和主体代码到仓库上,因此在Podfile指定release时,也只是下载了Flutter的引擎和主体的pod库。

Flutter插件的库应该如何加入到Podfile中才好呢?

由于插件部分的相对稳定性,是不是应该手动在Podfile中进行添加?

@Jiar Jiar closed this as completed Apr 3, 2019
@Jiar Jiar reopened this Apr 3, 2019
@CaffreySun
Copy link
Owner

Flutter插件脚本也会自动安装的。
build_ios.sh脚本将插件也拷贝到PRODUCT_PATH目录下

@Jiar
Copy link
Author

Jiar commented Apr 24, 2019

我发现在build_ios.sh的脚本中
upload_product()方法中
有这么一行脚本
cp -r -f -- "${PRODUCT_APP_PATH}" "${PRODUCT_GIT_DIR}"
这行脚本导致了只是拷贝了Flutter引擎和主业务代码的产物,没有将package部分拷贝到产物git根目录下进行上传。
应该改为
cp -r -f -- "${PRODUCT_PATH}"/. "${PRODUCT_GIT_DIR}"

@mayqiyue
Copy link

对的。脚本这里写错了,,

@hllGitHub
Copy link

请问脚本什么时候更新呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@mayqiyue @Jiar @hllGitHub @CaffreySun and others