Pods-resources.sh Permission denied in iOS Project

后端 未结 11 1200
有刺的猬
有刺的猬 2020-12-02 06:33

I have got an existing project from a client and I tried to run this in my MAC using XCode 5.0

But I am facing this following error. I installed Cocoa Pods but still

相关标签:
11条回答
  • 2020-12-02 07:05

    I have also faced this issue. What I've done is:

    1. Create a brand new project with same name and same package name
    2. In the terminal of the project directory Pod init
    3. Open the pod file in a editor
    4. Copy and paste the old project pod files into the new one
    5. Copy all files and resources to the new project
    6. Simply do pod install
    0 讨论(0)
  • 2020-12-02 07:08

    Try this, Works like a charm!

    rm -rf Pods/ Podfile.lock
    pod install
    
    0 讨论(0)
  • 2020-12-02 07:10

    for me deintegrating all pods then reinstalling them did the trick:

    pod deintegrate
    pod install
    
    0 讨论(0)
  • 2020-12-02 07:10

    Just remove the folder Pods-[Your_Project_Name] completely and do fresh pod install

    0 讨论(0)
  • I posted this as a comment to Kevins answer https://stackoverflow.com/a/19687227/3114383. But I thought I might as well put it as an answer because people will find it easier like this and it solved my problem. It might work for others aswell :D

    I tried running the chmod command from kevins answer and it didnt work. Then i tried the command with sudo which also didnt work. Then i added a User-defined-setting to the build settings in xcode "PODS_ROOT = ${PROJECT_DIR}/Pods/". This is what fixed it for me. It seems the Permission denied error was quite misleading because the script was actually not able to find the file.

    0 讨论(0)
  • 2020-12-02 07:13

    You need to make the script executable. Open terminal and execute this command:

    chmod a+x "your_path(where show permission denied)"
    

    Please check if there no any space in folder name then add '\' before

    0 讨论(0)
提交回复
热议问题