Friday, 29 November 2019

Why is it error when my framework contains .framework file

My project uses cocoapods to manager frameworks. The podfile contains the command line

 use_frameworks!

One of my framework core depends on another framework UMCCommon. So core framework's podspec file has command line

 s.dependency 'UMCCommon'

But the UMCCommon have a UMCCommen.framework file. Then I get an error likes below: enter image description here

If I add the line

s.static_framework = true

in core framework another error will appear:

enter image description here

If import the UMCCommon in podfile:

pod 'UMCCommon'

it will be successful. And the UMCCommon catalogue likes below: enter image description here

But I need import UMCCommon in core rather than import it in project podfile. How can I solve this problem.



from Why is it error when my framework contains .framework file

No comments:

Post a Comment