xcode 您无权将“project.xcworkspace”文件保存在“jDiet.xcodeproj”文件夹中。?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16613716/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:49:21  来源:igfitidea点击:

You don’t have permission to save the file “project.xcworkspace” in the folder “jDiet.xcodeproj”.?

xcodecordovapermissionsterminal

提问by F Z

I'm still new with this PhoneGap and Xcode and I can't find the solution via Google.

我还是这个 PhoneGap 和 Xcode 的新手,我无法通过 Google 找到解决方案。

After creating the file in the terminal, and try to open the Xcode project I get the following error:

在终端中创建文件并尝试打开 Xcode 项目后,我收到以下错误:

You don't have permission to save the file “project.xcworkspace” in the folder “jDiet.xcodeproj”.?

您无权将“project.xcworkspace”文件保存在“jDiet.xcodeproj”文件夹中。?

When I click OK, in the Xcode, I CAN'T modified the contents in the files, for example, the coding in index.html file.

当我点击确定时,在 Xcode 中,我无法修改文件中的内容,例如 index.html 文件中的编码。

Can you help me solve this?

你能帮我解决这个问题吗?

I'm a new user here, so I cant post an image (snapshot) as I need a reputation of 10. Sorry.

我是这里的新用户,因此我无法发布图像(快照),因为我需要 10 的声誉。抱歉。

回答by F Z

I just solved my problem by myself.

我只是自己解决了我的问题。

Right click on the file that terminal created, click get info and see the "sharing & permission".

右键单击终端创建的文件,单击获取信息并查看“共享和权限”。

I compare my xcode folderand "this terminal created folder" sharing & permission.

我比较了我的xcode 文件夹和“此终端创建的文件夹”共享和权限。

The name for "write and read" permission for this "terminal created folder" is under "system" name insteadof my username, fakhrulzakry. So i click on +and addmy username and set the Privilege to Read&Write.

此“终端创建的文件夹”的“写入和读取”权限名称位于“系统”名称下,而不是我的用户名fakhrulzakry 下。所以我点击+添加我的用户名并将权限设置为Read&Write

:))

:))

Actually I did this before i post this question, but i was wrongly choose the upper folder instead of the main folder for phonegap. So you need carefully check the exact folder .

实际上我在发布这个问题之前就这样做了,但是我错误地选择了上层文件夹而不是phonegap的主文件夹。所以你需要仔细检查确切的文件夹。

回答by S.Yadav

There was same issue for me but I am using ionic3 and here is info of the same-

我也有同样的问题,但我使用的是 ionic3,这里是相同的信息-

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.10.1
    ionic (Ionic CLI) : 3.10.1

local packages:

    @ionic/app-scripts : 2.1.4
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v8.4.0
    npm  : 5.4.0 
    OS   : OS X Yosemite

And running code in xcode --

并在 xcode 中运行代码——

  1. I open that dir app/platform/ios
  2. Right click on ios.
  3. changed permission as write & read. My issue resolved !
  1. 我打开那个目录 app/platform/ios
  2. 右键点击ios。
  3. 将权限更改为写入和读取。我的问题解决了!