CocoaPods local private database creation and use tutorial, cocoapods use tutorial

Source: Internet
Author: User

CocoaPods local private database creation and use tutorial, cocoapods use tutorial

For continuous integration of modules Split the project to reduce coupling and use privatePODIntegration

CdFile Path

Step 1 Create a library space File

Pod spec create library name

Mkdir Classes

Step 2 modify xxx. podspec to modify the following key points:

1. "example" or "EXAMPLE"

2. s. platform running platform

3 S. description

4. s. source_files source code path

5. s. dependency "the dependent library you need"

Verify whether the library file configuration is successful: (warning allowed)

Pod lib lint -- allow-warnings

After successful verification: xxx. podspec passed validation.

PodrepopushWTSpecsPodTestLibrary. podspec

Pod repo push local repo name podspec name -- sources = 'private repository repo address, https://github.com/CocoaPods/Specs'

Reference

Local

Pod 'xxx',: path => '/Users/apple/.../XXX'

SVN

Pod 'xxx',: svn => 'https: // 192.168.2.88: 8443/SVN /... /XXX'

Package resource files into Bundle

Command + N (or right-click NewFile) --> iOS --> Resource --> Settings Bundle --> Next --> Create name

Solution to Xib loading failure in Bundle

(Not yet loaded) 'with name 'xxx' at this time, we need to convert xib to nib, and the conversion method is

Ibtool -- errors -- warnings -- output-format human-readable-text -- compile xxxx. nib xxxx. xib

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.