简体   繁体   English

如果使用Cordova(Phonegap),Xcode项目将被锁定

[英]Xcode project is locked if using Cordova (Phonegap)

I'm building an app with Cordova (Phonegap) and installed the Framework and build my project (for iOS and Android) with the command line tool . 我正在使用Cordova(Phonegap)构建应用程序,并使用command line tool安装Framework并构建我的项目(适用于iOS和Android)。

When I want to open the newly created project with Xcode, I get plenty (like 9-10) of notifications that my project is locked and can't be changed. 当我想用Xcode打开新创建的项目时,我得到了很多(如9-10)通知我的项目被锁定且无法更改。 How (and why should I) can I change the rights for the project with the command line tool or something similar, because I'm also unable to archive my project because of that problem. 如何(以及为什么我)可以使用命令行工具或类似的东西更改项目的权限,因为我也无法归档我的项目,因为这个问题。

You need to change the owner of the project path to your user. 您需要将项目路径的所有者更改为您的用户。

Example: 例:

My user: dawson 我的用户:dawson

My project path: /work/some_project 我的项目路径:/ work / some_project

Run this: 运行这个:

sudo chown -R dawson /work/some_project

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM