0

I have create new cocoa-pod with an example project which in original project used a framework (X.framework). So it was like: Original_Proj |- four Classes (A,B,C,D{.h,.m}) |-Main.m |- etc by default xcode project files |-X.framework

Now those four classes imported the X.framework and used its functionality. (Purpose being only few classes of framework exposed project).

======================================================================== Now in a xcworkspace created by cocoapod, i have added all the Four classes and other necc. files in EXAMPLE folder but now i want the X.framework to be as Development pod so i can import it in those Classes in cocoapod embed project. Following is my Cocopod project structureCocopod project structure

Now i wanted to ask whether i have to put the complete framework it self in Dev. pods folder OR all X.framework's source files in Dev. pods folder. Will it expose those files to others if they install the pod in their project? Please guide with proper way if I am doing something wrong? Detail explanation would be really appreciated.

djay
  • 375
  • 2
  • 18

1 Answers1

0

Remove that pod. follow the below steps

1) Open terminal

2) sudo gem install cocoapods (gem will get installed in Ruby inside System library)

3) pod setup

4) create a xcode project

5) cd "path to your project root directory"

6) pod init

7) open -a Xcode Podfile (podfile will get open in text mode. Initially it will be empty put the following line of code.)

8) pod frame_name veraion (It’s finally time to add your first dependency using CocoaPods! Copy and paste the following into your pod file, right after target "Project" do:)

parthiban
  • 95
  • 9