【问题标题】:Flutter: Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: Permission deniedFlutter:目标支持文件/Pods-Runner/Pods-Runner-frameworks.sh:权限被拒绝
【发布时间】:2023-03-13 05:16:01
【问题描述】:

我从客户那里得到了一个现有项目,我尝试在我的 Mac 上运行它,但是当我尝试运行该项目时,我遇到了以下错误

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

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.

以下是颤振医生输出:

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.

我该如何解决这个问题?

【问题讨论】:

    标签: ios flutter permission-denied podfile flutter-ios


    【解决方案1】:

    其实这是deintegrating造成的。因此,解构所有 pod 然后重新安装它们将解决此问题

    我通过运行以下命令修复了权限问题。

    这是我解决的步骤:

    1. 打开终端并转到项目中的 /ios 文件夹。
    2. 执行pod deintegrate 命令
    3. 然后在pod install之后
    4. 运行您的项目flutter run

    【讨论】:

      【解决方案2】:
      1. 首先删除 Pod 锁定文件 2- 复制 podfile
        3- 运行这些命令

        rm -rf Pods/ Podfile.lock

        pod 安装

      【讨论】:

        猜你喜欢
        • 2021-02-24
        • 2020-02-20
        • 1970-01-01
        • 2013-11-10
        • 1970-01-01
        • 2020-01-14
        • 2019-11-13
        • 2019-01-30
        • 2017-12-30
        相关资源
        最近更新 更多