Why to fix “Frameworks/Flutter.framework: Permission denied” while building iOS native app with flutter module?

前端 未结 3 715
执笔经年
执笔经年 2021-01-21 04:44

I created an iOS single view app (hostapp) and converted it to pod workspace. Runs well. Then created flutter module (clientapp), provided iOS team. Runs well, independently. Tu

3条回答
  •  爱一瞬间的悲伤
    2021-01-21 05:21

    See this issues:https://github.com/flutter/flutter/issues/40146

    --- a/packages/flutter_tools/bin/xcode_backend.sh
    +++ b/packages/flutter_tools/bin/xcode_backend.sh
    @@ -141,7 +141,7 @@ BuildApp() {
         mkdir "${derived_dir}/engine"
         RunCommand cp -r -- "${flutter_podspec}" "${derived_dir}/engine"
         RunCommand cp -r -- "${flutter_framework}" "${derived_dir}/engine"
    -    RunCommand find "${derived_dir}/engine/Flutter.framework" -type f -exec chmod a-w "{}" \;
    +    RunCommand find "${derived_dir}/engine/Flutter.framework" -type f -iname '.h' -exec chmod a-w "{}" \;
       else
         RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
         RunCommand cp -r -- "${flutter_framework}" "${derived_dir}"
    

提交回复
热议问题