XCode 6 Making the framework

Source: Internet
Author: User

Before Xcode 6 was released, it was necessary to build a dynamic framework that needed to be implemented on a static library before
or on github to download the plugin for development, but after Xcode 6 came out, Apple has provided this operation, see figure

After the completion of these operations, the package can be used is not far away, why do you say that, or directly I was in the process of production encountered problems it

Problem

One, the framework will certainly use the picture resources, packaging, if not to extract the picture, in other projects referencing the framework, the picture will not be displayed

Second, if the framework of the picture selection is used "UIImage imagenamed:" This method, other projects in the access to the framework will not see the picture

Third, in accordance with other online tutorials or precedents, the framework of the picture resources are unified into a bundle file, and then in the framework and bundle colleagues into other projects, the theoretical film should be able to display, but in fact, my is not shown

Iv. when making the framework, access to the images is used Imagewithcontentsoffile Method

When packaging, to set the image Bundle folder as a dependent file, such as:

Six, in the simulator after the package, into the Finder, the package simulator under the package copy out, and then provide to other projects. And in other projects to reference the framework bundle files

So you can run and you can see the picture.

These are the problems that I encountered when I made the framework!

There are different opinions to discuss!

XCode 6 Making the framework

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.