相关疑难解决方法(0)

Xcode 10中的权限被拒绝错误阻止了Build ... Command PhaseScriptExecution失败,退出代码非零

由于出现错误,我无法构建/存档我的项目:

权限被拒绝,
命令PhaseScriptExecution失败,退出代码非零

我已尝试按照其他答案的建议纠正钥匙串登录,但是没有用。请有人帮忙吗?最有可能是菜鸟错误,但是这意味着我什至无法模拟我的应用程序。

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

PhaseScriptExecution Copy\ Pods\ Resources 

/Users/james/Library/Developer/Xcode/DerivedData/trials-fseuxkwjlleukxdxyfgdrujhdwuy/Build/Intermediates.noindex/trials.build/Debug-iphonesimulator/trials.build/Script-8DEE2FC97BFA0D6E636019C4.sh (in target: trials)
    cd /Users/james/pCloud\ Drive/3.\ NeuroRecovery\ Ltd/4.\ Products/3.\ NIHR\ Trial\ NHS/v1.0\ -\ Initial\ App/1.\ App\ Delivery/3.\ Source\ Code/1.\ iOS/trials
    /bin/sh -c /Users/james/Library/Developer/Xcode/DerivedData/trials-fseuxkwjlleukxdxyfgdrujhdwuy/Build/Intermediates.noindex/trials.build/Debug-iphonesimulator/trials.build/Script-8DEE2FC97BFA0D6E636019C4.sh

/Users/james/Library/Developer/Xcode/DerivedData/trials-fseuxkwjlleukxdxyfgdrujhdwuy/Build/Intermediates.noindex/trials.build/Debug-iphonesimulator/trials.build/Script-8DEE2FC97BFA0D6E636019C4.sh: line 2: /Users/james/pCloud Drive/3. NeuroRecovery Ltd/4. Products/3. NIHR Trial NHS/v1.0 - Initial App/1. App Delivery/3. Source Code/1. iOS/trials/Pods/Target Support Files/Pods-trials/Pods-trials-resources.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
Run Code Online (Sandbox Code Playgroud)

编辑12月17日:谢谢@ geno-chen和@fantini我已经检查过并可以报告以下内容:

  1. 您是否使用sudo安装了Cocoapods:是的。

  2. 我使用ls -lh检查了文件的权限,并具有以下内容:-rw-r--r-- 1 james staff 159B 2015年3月25日Podfile -rw-r--r-- 1 james staff 1.2K 2015年3月25日Podfile.lock …

xcode xcode10

6
推荐指数
3
解决办法
3931
查看次数

Flutter:目标支持文件/Pods-Runner/Pods-Runner-frameworks.sh:权限被拒绝

我有一个来自客户的现有项目,我尝试在我的 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 …
Run Code Online (Sandbox Code Playgroud)

permission-denied ios flutter podfile flutter-ios

6
推荐指数
1
解决办法
2021
查看次数

标签 统计

flutter ×1

flutter-ios ×1

ios ×1

permission-denied ×1

podfile ×1

xcode ×1

xcode10 ×1