xcodebuild couldn't read dependency graph from ... .... : Permission denied - file-permissions

Today I experienced the following error from xcodebuild:
xcodebuild couldn't read dependency graph from ... .... : Permission denied
And further down:
Details: unable to write dependency graph: You don’t have permission to save the file “my-app.build” in the folder “my-target-iphoneos”.
I am documenting this since the cause is really obscure, see my answer.

If you have the Xcode Organizer window open, while attempting to build the app from the command line, it locks the build directory, resulting in the file permissions error.
If you close the Organizer window you will be able to build from the command line again.

Related

Lack of permissions in Windows

I created C:/Users/homedir/Documents/Python. Windows automatically
puts that in OneDrive's path. Is this causing the permission errors?
d#LAPTOP-M0R87BQ6 MINGW64 ~/OneDrive/Documents/Python/twilio-python-main (main)
$ python3 setup.py install
running install
error: can't create or remove files in install directory
# The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-9920.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\site-packages\
Is the only problem I need to create the directory (or modify setup.py to install in Python's path elsewhere)?
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.
I am the Admin for this machine, I'm in the Group Administrators. There is no higher root on my machine. I opened a PowerShell as an Admin and ran the python interpreter. Still insufficient permissions. Looking at Windows Explorer I am Owner of all the files.
The error says: "If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHON PATH environment variable."
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
in cmd windows try taking ownership of WindowsApps folder and ensure the properties are inherited by its subfolders
takeown /f \"C:\Program Files\WindowsApps" && icacls \"C:\Program Files\WindowsApps" /grant administrators:F

Poedit - updated source code failed - denied permission

I´m using regularly Poedit to translate my Wordpress plugins.
For some reasons, now, when I click on 'Update from code', I got this error :
Updating failed
Permission denied
You don´t have permission to read source code files from the location specified in the catalogue's Properties
I tried to change rights on folders and files on my OS (Windows 10) without success.
It seems to be after updated the software but I´m not sure.
I started having the same issue recently. After some experimentation, I figured out that the issue was that I started having some code for custom blocks in my plugin and Poedit did not like these. After adding exclusions for the build, src and node_modules directories, I was able to properly use the Update from code functionality.

Android x86 Repo Init - Permission Denied

I'm trying to init a repo to download the android-x86 source. I've done it before and had no problems.
Today it keeps saying permission denied, i've reset the permissions and owner with chmod and chown, no dice.
[Errno 13] Permission denied
I've tried with and without sudo. I am the only user of the PC but it keeps refusing to init the repo. Is there a way round this without a full reinstall of ubuntu? The permissions system makes no sense to me. I am the only user, I own the folders, I own the files, permissions are set to allow read, write, execute and still I get permission denied errors.
Please help.

Changing file permission of a linux directory in install4j

I am new to install4j and am trying to change the file permission of a directory to 0750 on a project that I inherited. I am in the Define Distribution Tree screen, right click on the directory, select Edit Entry, and change the Unix mode to 750. I save the project. After running the new install (running as root), the file permission is set to 755 (default). Are there additional steps required? I looked for other spots where the file permission may have been explicitly set, but did not find any. Any ideas on what I did wrong and how to debug this? Thanks.

CVS Error: failed to create lock directory... Permission denied

I'm using using TortoiseCVS to access the CVS server. I get the following error:
In D:\source\foo: "C:\Program Files\CVSNT\cvs.exe" -q update -P -d
CVSROOT=:ssh:annan#foo-bar.co.uk:/home/cvsroot
cvs update: failed to create lock directory for `/home/cvsroot/foo' (/var/lock/cvs/foo/#cvs.lock): Permission denied
cvs update: failed to obtain dir lock in repository `/home/cvsroot/foo'
cvs [update aborted]: read lock failed - giving up
Error, CVS operation failed
I had this problem before and managed to fix it, however this time I've not been able to figure it out. I believe it's related to different people committing files with their own ownership.
After reading a few articles online I've tried changing /home/cvsroot and /home/cvsroot/foo to 777 permissions, and recursively changing the ownership of /home/cvsroot/ to cvs:cvs (of which I am a member).
The lock file is being created in /var/lock/cvs/foo/ you should check the permissions of that directory.
Make sure the checkout repository has the permission to checkin the files.
I have checkout the directory
cvs -d #cvs:/files/cvs co vcommon
But this rep doesnt have permission to checkin the files in the package folder.
Problem solved by checking out below:
cvs -d #cvs:/files/cvs/vcommon co package
I had an issue where my account had not been added to the "users" group. So even though permissions looked good, I still wasn't able to checkout any repositories. Once I was added to the users group, it fixed everything.

Resources