承接上面一遍的(后续步骤)

localhost:localLib zmit$ cd /Users/zmit/Desktop/cocoapods本地私有库的使用/本地私有库优化方案2/localLib 

localhost:localLib zmit$ pod lib create XMGFMBase1

Cloning `https://github.com/CocoaPods/pod-template.git` into `XMGFMBase1`.

Configuring XMGFMBase1 template.

------------------------------

To get you started we need to ask a few questions, this should only take a minute.

2017-11-03 15:21:47.220 defaults[3599:118253] 

The domain/default pair of (org.cocoapods.pod-template, HasRunbefore) does not exist

If this is your first time we recommend running through with the guide: 

 - http://guides.cocoapods.org/making/using-pod-lib-create.html

 ( hold cmd and double click links to open in a browser. )

 Press return to continue.

What language do you want to use?? [ Swift / ObjC ]

 > ObjC

Would you like to include a demo application with your library? [ Yes / No ]

 > Yes

Which testing frameworks will you use? [ Specta / Kiwi / None ]

 > None

Would you like to do view based testing? [ Yes / No ]

 > No

What is your class prefix?

 > XMG

Running pod install on your new library.

Analyzing dependencies

Fetching podspec for `XMGFMBase1` from `../`

Downloading dependencies

Installing XMGFMBase1 (0.1.0)

Generating Pods project

Integrating client project

[!] Please close any current Xcode sessions and use `XMGFMBase1.xcworkspace` for this project from now on.

Sending stats

Pod installation complete! There is 1 dependency from the Podfile and 1 total

pod installed.

 Ace! you're ready to go!

 We will start you off by opening your project in Xcode

  open 'XMGFMBase1/Example/XMGFMBase1.xcworkspace'

To learn more about the template see `https://github.com/CocoaPods/pod-template.git`.

To learn more about creating a new pod, see `http://guides.cocoapods.org/making/making-a-cocoapod`.

localhost:localLib zmit$ cd /Users/zmit/Desktop/cocoapods本地私有库的使用/本地私有库优化方案2/localLib/XMGFMBase1 

localhost:XMGFMBase1 zmit$ pod install

[!] No `Podfile' found in the project directory.

localhost:XMGFMBase1 zmit$ cd /Users/zmit/Desktop/cocoapods本地私有库的使用/本地私有库优化方案2/localLib/XMGFMBase1/Example 

localhost:Example zmit$ pod install

Analyzing dependencies

Fetching podspec for `XMGFMBase1` from `../`

Downloading dependencies

Using XMGFMBase1 (0.1.0)

Generating Pods project

Integrating client project

Sending stats

Pod installation complete! There is 1 dependency from the Podfile and 1 total

pod installed.

原文地址:https://www.cnblogs.com/huiyi-520/p/7778653.html