Pod install GPUImage does not work

后端 未结 3 1914
温柔的废话
温柔的废话 2021-01-12 01:19

I am working on a Swift project with cocoapods. Here is Podfile:

pod \'GPUImage\', \'~> 0.1.4\'
  1. After i run pod

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 02:06

    I had the same issue with the following library versions:

    • Xcode 6.3
    • Cocoapods 0.37.2

    Finally I solved this issue by the following steps:

    First step:

    1. Open Xcode
    2. Click Window (Menu Bar)
    3. Click Projects
    4. Remove all projects (e.g. use backspace)
    5. Close Xcode

    Second Step:

    1. Open a terminal app
    2. cd ~/Library/Developer/Xcode/DerivedData
    3. rm -rf Build/* see below if you have a customized build location
    4. rm -rf ModuleCache/*
    5. Close a terminal app

    Third Step:

    1. Open Xcode
    2. Product > Clean
    3. Product > Run

    If you have defined a custom build location:

    1. Go with Finder or the Terminal to the location of the build files. The location for these files is defined in Xcode. To check where these files are:
      • Open Xcode
      • Go to Settings -> Locations -> Derived Data
    2. Go to that location and delete the Build folder

    Then everything work well.

    Hope this can help somebody in the future.

提交回复
热议问题