flutter bug记录

Runner.app/Frameworks/Flutter.framework/Flutter: Permission denied

image.png

image.png

经过调查,我认为根本原因是xcode_backend.sh将下面的文件标记为Flutter.framework只读。

对于遇到此问题的人,请尝试修改$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.shfor解决方法:

--- 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找到“$ {} derived_dir /engine/Flutter.framework”型的F -exec CHMOD AW “{}” \; 
+     RunCommand查找“ $ {derived_dir} /engine/Flutter.framework” -type f -iname'.h'-exec chmod aw“ {}” \;

其他
RunCommand rm -rf-“ {flutter_framework}”“ $ {derived_dir}”

git issues
混合开发注意

你可能感兴趣的:(flutter bug记录)