刚下载下来的项目运行到Android手机和IOS手机分别报如下错误:
Gradle does not have execution permission.
You should change the ownership of the project directory to your user, or move the project to a directory with execute permissions.
Gradle task assembleDebug failed with exit code 1 Exited (sigterm)
解决方案:
terminal 执行如下命令:
chmod a+rx android/gradlew
运行到IOS模拟器报如下错误:
ios/Pods/Target Support Files/Pods-Runner/
Pods-Runner-frameworks.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
解决方案:
chmod a+x "xxx/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"
xxx-是Pods的路径
我的
chmod a+x "/Users/springtom/Documents/flutter/meiktv_manager/trunk/meiktv_manager/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"