Cordova 3.3 getting after fresh clone from git - xcode

i have cloned my project from the git.before that it was working fine now when i am running the project in Xcode then getting error:
Script-304B58A110DAC018002A0835.sh: line 2: cordova/lib/copy-www-build-step.sh: Permission denied, how to solve that issue .i am using mac

Give full permission to that folder
open terminal
go to the parent folder
then type
sudo chmnod -R 777 folder_name
OR
try
cd platforms/ios/cordova/lib
sudo chmod +x copy-www-build-step.sh
OR
cd platforms/ios/cordova/lib
sudo chmod 777 copy-www-build-step.sh

Related

git clone from windows to wsl fails with: "fatal: could not create work tree dir '<path to repo in wsl>': Permission denied"

im using github desktop, for that reason my git project in wsl are managed by the git for windows, lately I was prompt to update git and now I get "fatal: could not create work tree dir '< path to repo in wsl >': Permission denied" when I try to clone a repo.
it does not seems to be an actual linux permission problem as even chmod 777 -R did not help.
what is the problem and how can I fix it?

Xcode Build Issue - permission denied

I am using Xcode 10.1. Everytime I build my project I get this error:
/Users/{username}/Library/Developer/Xcode/DerivedData/{random_name}/Build/Intermediates.noindex/....
line 2: /Users/{username}/path_to_app/Pods/Target Support
Files/pod_name/... Permission denied
I already tried the accepted answer here. I also tried doing the sudo chown but those did not fix the error. These are the actual steps I did, multiple times:
Remove all files in the DerivedData
Do the sudo chown in both paths: DerivedData and path_to_app
Clean
Build
What am I missing?
What worked for me is using chmod. Here's the command chmod -R 755 {my_working_folder}. For an explanation of what the numbers represent, you may read this article.
Here's what worked for me.Navigate to the directory which contains the file (for which you receive "Permission Denied" error) ,Then in terminal type chmod 777 (your_file_name). What basically you are doing is giving read/write/execute permission to your file . For more info check this article - https://www.maketecheasier.com/file-permissions-what-does-chmod-777-means/

Installation error message with TestLink for Mac

I am trying to install Testlink on OS X for Mac. However, I am getting the following message which will not let me continue with installation. I have seen solutions for other operating systems but not for Mac. I am inexperienced with Mac. Any help appreciated. Thanks!
I resolved it..
chmod 777 /Applications/XAMPP/xamppfiles/htdocs/testlink-1.9.16/gui/templates_c
sudo mkdir /var/testlink/logs/
sudo mkdir /var/testlink/upload_area/
Then give the last two directories writeable permissions:
sudo chmod 777 /var/testlink/logs/
sudo chmod 777 /var/testlink/upload_area/
Check whether the /var/www/html/testlink/gui/templates_c directory is writable (logged with the user used to run the webserver process).
To resolve this issue try to follow steps:
ssh into the machine you are installing
move to the testlink main directory, in my case: cd /var/www/html/testlink/gui
change the permision of templates_c: sudo chmod a+w templates_c
Now try to install testlink again.

Workspace created by cocoapods is locked

I'm using CocoaPods with a project. I ran pod install and it installed correctly. Then when I try to open the created xcworkspace Xcode displaying the error 'workspace file is locked'. I tried to unlock it but it's not working. It also didn't include some frameworks (Security.framework, MobileCoreServices.framework etc.) in workspace.
I had this problem recently. I don't know about the missing frameworks, but if you go to your project folder within terminal and modify the permissions on the project files, you should be able to open the project. I personally had to modify multiple files and folders to be able to get it to stop asking me if I want to unlock my files.
Steps that Worked for Me:
Use the terminal to go to the folder that contains the xcworkspace file. Type
sudo chmod 777 NameOfYourWorkspaceFile.xcworkspace
(Please don't literally use that file name unless that's what your xcworkspace file is called). This should change the permissions for your entire workspace, but you will still have the unlock problem with your Pods project.
From within the same directory, you can do another chmod on the Pods folder like so:
sudo chmod 777 Pods
After that, go into your Pods folder by typing "cd Pods" and then modify the permissions on your Pods.xcodeproj file as so:
sudo chmod 777 Pods.xcodeproj
Like I said previously, these permission changes were enough to get xCode to stop asking me if I want to unlock my projects. I don't know if it will be enough for you though. Hopefully it helps!
I had the same 'locked workspace' problem.
The root of my problem was that I was running sudo pod install instead of pod install.
If I ran pod install I got:
[!] Pod::Executable pull
error: cannot open .git/FETCH_HEAD: Permission denied
The problem is that running sudo pod install, the root is creating the .xcworkspace and when you open it with your user, it says that the project is locked.
What I did was change the permissions to be able to run pod install by doing:
sudo chown -R $USER ~/Library/Caches/CocoaPods
sudo chown -R $USER ~/.cocoapods
Changing these permissions, the command pod install should work and the generated .xcworkspace should not be locked.
I hope this helps someone!

" Existing configuration file (./config.inc.php) is not readable. "?

just installed XAMPP on my Mac. When I was trying to modify the upload dir in config.inc.php it says that the file was locked, and can't be unlocked due to the fact that I don't have permission to modify the folder. So I changed the my permission to the folder, and file was not locked anymore but I can't access 'phpmyadmin' anymore in my browser via http://localhost/phpmyadmin/, everytime I try, it says "Existing configuration file (./config.inc.php) is not readable."
I googled the solution, from this page, it says to use chown root:cpanelphpmyadmin config.inc.php to change the permission of the file. I did, but it says chown: cpanelphpmyadmin: Invalid argumentin my terminal window. I am get desperate here, anyone help me, please!
by the way, I tried deleting everything in the XAMPP folder in App folder, and create a new one, it doesn't work
rasel#rasel-Dell:~$ sudo -s
rasel#rasel-Dell:~$ type your password
root#rasel-Dell:/# cd /opt/lampp/phpmyadmin
root#rasel-Dell:/opt/lampp/phpmyadmin# chmod 644 config.inc.php
root#rasel-Dell:/opt/lampp/phpmyadmin# cd /
root#rasel-Dell: /opt/lampp/lampp restart
That's all, it works for me.
For OSX Mavericks and XAMPP 1.8.2-5 and 1.8.3-4 versions, you need to use the same chmod 644 mentioned above, but the directory is different.
cd /Applications/XAMPP/xamppfiles/phpmyadmin/
sudo chmod 644 config.inc.php
[enter your password]
I have solved the problem by creating a new config.inc.php file, copying all of the original locked config.inc.php content there and modifying the line
$cfg['Servers'][$i]['password'] = 'myserverpassword';
and deleting the original locked file. This is in case you are looking for changing the XAMPP configuration file so that you can access the servers where you have put a new password.
cd /Applications/XAMPP/xamppfiles/phpmyadmin/
sudo chmod 777 config.inc.php
[enter your password]
After you change your config.inc.php, you need to type:
sudo chmod 644 config.inc.php
Only sudo chmod 644 didnt work for me.
If you are using ubuntu 14.04 what you actually need to do is:
Go to terminal
type --> sudo nautilus
a file dialogue will be opened.
navigate the folder to computer/opt/lampp/phpmyadmin/config.inc.php
open the file
check for $cfg['Servers'][$i]['password'] = '';
change the above LOC to $cfg['Servers'][$i]['password'] = 'root';
and try opening the phpmy admin. Your problem will be successfully solved.

Resources