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