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

前端 未结 6 2236
后悔当初
后悔当初 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:50

    I too was facing the same problem. All you need to do is set the third party frameworks you are using for e.g:- PodA as Optional instead of Required under Link binary with Libraries in build Phases section. That's all. try it again and it will run as expected.

    Note:- You need to add the PodA in the app in which you are using your framework. There is no other way except create a static framework consisting your PodA and use this newly created static framework inside your dynamic framework.

提交回复
热议问题