3

Is it somehow possible to embed a framework/binary in cocoapod? Didn't find any find on the internet.

The source code of this binary/framework shouldn't be visible, for the users of the pod

The option of embedding a binary is just lacking in cocoapod build.

denis631
  • 1,765
  • 3
  • 17
  • 38
  • 1
    If you deliver your pod with sources, use_frameworks! option create dynamic framework target in Pods project and automatically embed it in linked app targets. – vojer Apr 24 '17 at 22:32
  • 1
    Unfortunately the source code shouldn't be visible. It's like a pod with a framework, which is a blackbox – denis631 Apr 25 '17 at 09:05

1 Answers1

3

add s.vendored_frameworks ='XXXX.framework'(your framework) in your podspec file,

It worked to me!

VisionBao
  • 79
  • 7
  • I didn't work for me, so I wanted to do it manually, but there is no filed "embedded binaries" in cocoapod build settings section – denis631 Apr 25 '17 at 09:07
  • CocoaPods embed frameworks using shell script inside Pods/Target Support files directory. – vojer Apr 25 '17 at 22:31