MacOS Sierra 10.12 Cocoapods Private Library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.