Include ".framework" file in cocoapods

I am trying to add "Custom.framework" to my container (cocoapods). And I'm a little stuck in setting the spec. I have done the following:


s.resources = ['Resources/Custom.framework']
s.preserve_paths = "Resources/Custom.framework"
s.frameworks  = "UIKit", "Custom"

But in the project where I use this module, I get an error

<Custom/Custom.h> not found

or something similar.

I’ve been stuck for several hours and I can’t find the answer to my question on google.

BR, Pavlo.

+3
source share
1 answer

What you want is an attribute vendored_frameworks. In your case, it looks like you want to use it like this:

s.vendored_frameworks = 'Resources/Custom.framework'

, .

+3

Source: https://habr.com/ru/post/1661929/


All Articles