Introduction of Chinese source files in the dependent library, resource files

Source: Internet
Author: User

Introduction of Chinese source files in the dependent library, resource files

There are two methods to introduce resource files:

1. s. resource = "DDKit/**/*. {png, bundle, xib, nib }"

2. s. resource_bundles = {

'Ddkit '=> ['ddkit /**/*. the differences between {png, bundle, xib, nib} ']} in the project are as follows: first, only the Resources directory is generated: Second: when the first method directory is generated, A DDKit is also generated. bundle file: DDKit. the content of the bundle display package is as follows:

The DDPromptView file contains the following three files:

The DDKit. podspec file can be written in either of the following ways:

If the folder contains resource files, you must specify the file type h and m as follows.

If the file type of source_files is not specified as h or m, the following method is used. At this time, an error is reported during project compilation.

The following error is reported:

If you do not specify a specific file type, you can only store the resource file separately to solve the preceding error.

Related Article

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.