Xcode10 - dyld: Library not loaded for pod installed in framework

前端 未结 6 2347
后悔当初
后悔当初 2021-02-12 12:26

I have a project with target frameworks.

  • MainAppTarget
  • FrameworkA

FrameworkA is the only one to use a certain pod, hence in my pod file I h

6条回答
  •  离开以前
    2021-02-12 12:39

    At first, check whether your CocoaPod is compatible (supported) or not.

    Make sure you dragged FrameworkA to the Embedded Binaries section in your project's General settings tab. Also make sure you have Embed Frameworks (1 item) in Build Phases tab and FrameworkA is included there.

    Here's a solution:

    Step One: Drag and drop FrameworkA.framework in your project navigation. Link framework and Library added this library.

    Step Two: In Xcode go to Project > General > Embedded Binary > Add FrameworkA.framework.

    Step Three: Make sure that in Build Phases tab Link Binary with Libraries (1 item) and Embed Frameworks (1 item) do exist.

    P.S. I did it in Xcode 10.2.1 but in Xcode 10.1 it works the same way.

提交回复
热议问题