Pods-resources.sh Permission denied in iOS Project

后端 未结 11 1202
有刺的猬
有刺的猬 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:14

    Running pod install in the main project directory where your podfile is located should solve the problem

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

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

    chmod a+x "/Users/shovon0203/Desktop/My Work/oDesk/momenTOGO/MomenTOGO_iPhone/Pods/Pods-resources.sh"
    
    0 讨论(0)
  • 2020-12-02 07:24

    This steps worked for me after failing many times.

    STEP 1: Navigate to the location of the folder containing Pods-resources.sh

    STEP 2: Open the terminal type cd and then drag the folder containing Pods-resources.sh to terminal and hit enter.

    STEP 3: the run this command>> chmod a+x Pods-resources.sh

    STEP 4: restart xcode and open your xxx.xworkspace

    STEP 5: enjoy

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

    The above answer works. However, I had the same issue, but it was recurring. It dealt with having the same branch checked-out on multiple machines. It would work on one machine, and not the others. We use TFS as our source control (it's ok, you can judge), which does not play nicely with .sh, .py, etc. files. We had to add a .tpattributes file to every directory with a .sh or .py file in it so we could run .sh and .py files as executables.

    Entries in the .tpattributes file looks like this:

    Pods-MyTarget-frameworks.sh:x
    Pods-MyTarget-resources.sh:x
    

    This translates to chmod +x "Pods-MyTarget-frameworks.sh"

    Works like a charm!

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

    I've faced same problem with Pods-project-frameworks.sh, resolved by removing first line #!/bin/sh from Pods-project-frameworks.sh file.

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