简体   繁体   中英

How to build a Cocoa touch framework in iOS?

I want to build a Cocoa touch framework in iOS. My framework named as 'MyFramework' which depends on third party frameworks like 'GoogleWebRTC'.

I tried adding this through cocoa pods and also with drag into MyFramework project. But the issue is when I import MyFramework into any other Project, it gives error:

Module 'WebRTC' not found

I have also seen that Apple discourage umbrella frameworks:

Why are umbrella frameworks discouraged?

Then:

I want to understand how I can include this GoogleWebRTC.framework or any other third party lib. in MyFramework project and distribute to others.

Help is Appreciated!

Solution for me was that I have to explicitly add GoogleWebRTC in the app with my framework.

And if your framework can install by pods then you can mention your dependent third parties lib. in podspec file as below:

s.ios.dependency 'dependent framework pod'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM