Create a private podspec using cocoapods see article: http://www.cocoachina.com/ios/20150228/11206.html or http://blog.wtlucky.com/blog/2015/ 02/26/create-private-podspec/
Note the point:
1 Follow the step by step, look carefully.
2 podfile source is filled with specs.git, is Spec Repo,
an index of all Pods
(for example: ' https://git.coding.net/wtlucky/ Wtspecs.git '), not the address of the private library, otherwise it will error:[!] Unable to find a specification for ....
3 perform pod lib lint xxx verification podspec when error, remember to add--verbose (pod lib lint XXX--verbose) to see the specific reasons for the error.
(sometimes network reasons, can be executed more than two times)
4 Execute Pod lib lint if error xcodebuild:error: ' app.xcworkspace ' does not exist, cocoapods need to upgrade to the latest 1.1.0.rc.1
gem list(或pod --version)可以查看CocoaPods的版本号, 具体参见:
http://www.jianshu.com/p/6cd57c75090f, need fq, very slow, I upgraded spent an afternoon.
5 upgrade after performing pod Lib lint XXX verification Podspec if error
XXX did not pass validation, due to 1 error.
[!] The validator for swift projects uses Swift 2.3 By default, if your is using a different version of Swift you can use a '. Swift-version ' file to set the version for your Pod. For example to use Swift 3.0, run:
Perform pod Lib lint XXX--verbose for specific reasons, if there is * * Build FAILED * * Word, it is the current private library file compile with a syntax error or need a third-party class library, executable
The pod Lib Lint--quick command does not let you compile the source file.
Resources:
1, Cocoapods reduced version and uninstall:http://www.meetrue.com/archives/133
2, upgrade CocoaPods resolve installation Xcode 8 after CocoaPods pod trunk push error Xcodebuild:error: ' App.xcworkspace ' does not Exist:http://www.jian shu.com/p/6cd57c75090f
3. Use Cocoapods to develop and package a static library: http://www.cnblogs.com/brycezhang/p/4117180.html
4. Create a private podspec:http://blog.wtlucky.com/blog/2015/02/26/create-private-podspec/using Cocoapods
MacOS Sierra 10.12 Cocoapods Private Library