Pod install GPUImage does not work

后端 未结 3 1915
温柔的废话
温柔的废话 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 01:52

    it's my bad, i got the solution:

    You then need to add a new Copy Files build phase, set the Destination to Frameworks, and add the GPUImage.framework build product to that. This will allow the framework to be bundled with your application (otherwise, you'll see cryptic "dyld: Library not loaded: @rpath/GPUImage.framework/GPUImage" errors on execution).

    0 讨论(0)
  • 2021-01-12 01:59

    In my case, just change Develop account in Signing & Capabilities then build app again. It works

    0 讨论(0)
  • 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.

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