Flutter:目标支持文件/Pods-Runner/Pods-Runner-frameworks.sh:权限被拒绝 [英] Flutter: Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: Permission denied

查看:234
本文介绍了Flutter:目标支持文件/Pods-Runner/Pods-Runner-frameworks.sh:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自客户端的现有项目,我试图在Mac上运行它,但是当我尝试运行该项目时,我遇到了以下错误

I have got an existing project from a client and I tried to run this on my Mac but when I'm trying to run the project I facing the following error

有关该错误的更多详细信息:

Further details on the error:

Xcode build done.                                           20.5s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-12-28 09:53:09.348 xcodebuild[5722:80049]  DTDeviceKit: deviceType from 49f62dac6f1da634e5d71981db4d591dc9126e4b was NULL
    2020-12-28 09:53:09.449 xcodebuild[5722:80049]  DTDeviceKit: deviceType from 49f62dac6f1da634e5d71981db4d591dc9126e4b was NULL
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/pkimac/Library/Developer/Xcode/DerivedData/Runner-dyvnmbcstcyeklavxcvptjfbuuka/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-9FEDFCA313C1B9E0CFFDF6D8.sh: line 2: /Users/pkimac/Desktop/rto_exam_gujarati 2/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: Permission denied
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning build
    note: Constructing build description

Could not build the precompiled application for the device.

Error launching application on Paresh’s iPhone.

以下是Flutter Doctor输出:

The following is flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.3 19D76, locale en-GB)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (2 available)

! Doctor found issues in 1 category.

我该如何解决?

推荐答案

实际上,这是由分解引起的.因此将所有Pod拆解然后重新安装将解决此问题

Actually, this is caused by deintegrating. so deintegrating all pods then reinstalling them will resolve this issue

我通过运行以下命令解决了权限问题.

I fixed the permission problem by running the following command.

这是我要解决的步骤:

  1. 打开终端并转到项目内的/ ios 文件夹.
  2. 执行 pod取消集成命令
  3. 然后 pod安装
  4. 运行项目 flutter run
  1. Open Terminal and Go to /ios folder inside your Project.
  2. Executes pod deintegrate command
  3. Then after pod install
  4. Run your project flutter run

这篇关于Flutter:目标支持文件/Pods-Runner/Pods-Runner-frameworks.sh:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆