In the production process encountered some problems to share with you, directly on the steps
The production library has the sub-simulator frame and the real machine mining machine if the error x86_64 what the word is that the library contains no simulator framework
Simulator: iphone4s~5:i386 iphone5s~6plus:x86_64
Real machine: Iphone3gs~4s:armv7 iphone5~5c:armv7s iphone5s~6plus:arm64
Stealing a
1.
2. Then drag the classes and pictures that need to be encapsulated, xib, and so on.
3.
4. Set the instruction set contained in the compiled static library
This property is set to Yes, which compiles faster at debug time and compiles only the current version of architecture.
When set to No, all versions are compiled.
This is the device corresponding to the architecture:
Armv6:iphone 2g/3g,ipod 1g/2g
Armv7:iphone 3gs/4/4s,ipod 3g/4g,ipad 1g/2g/3g
Armv7s:iphone5, IPOD5
The compiled version is backwards compatible, such as you set this value to Yes, compiled with iphone4 is the ARMV7 version, Iphone5 can also run, but the ARMV6 device cannot run.
Therefore, the general debug when you can choose to set the yes,release when you want to change to no, to adapt to different devices.
5.mach-o format (This step is the key, it is best not to set the status is the dynamic library can also be shelves, because the static library some load xib and pictures of the method do not know how to use)
It is recommended to use the static library, the dynamic library will appear to be rejected when submitting the AppStore audit, but read some information online that the dynamic library is also possible, but there will be some machine audit rules need to be noted, such as do not put x86/i386 package and ARM architecture package Lipo together, Simply use the real machine package.
[[NSBundle bundlewithidentifier:@] Your framework that identifier "]loadnibnamed:@" name "Owner:self Options:nil". firstobject;//Loading Xib method
[ImageView setimage:[uiimage imagenamed:@ "U1.png" Inbundle:[nsbundle BundleForClass:self.class] compatiblewithtraitcollection:nil]];//Loading Picture method
Open Information
http://www.jianshu.com/p/6c033c39884a
http://www.jianshu.com/p/43d55ae49f59
Http://www.cnblogs.com/zhanglinfeng/p/5510717.html
Http://www.cnblogs.com/cmx-ios2014/p/3802618.html?utm_source=tuicool&utm_medium=referral
Http://www.cocoachina.com/bbs/read.php?tid-282490-uid-71042-page-1.html
Http://www.cnblogs.com/developer-qin/p/5691008.html
https://my.oschina.net/Jerod/blog/655271
https://zhuanlan.zhihu.com/p/21611285 OC C + + mixed with prefix name changed from. m to. mm, import Libc++.tbd
Http://www.cnblogs.com/clark159/p/4963685.html
http://blog.sina.com.cn/s/blog_13340048b0102wj96.html If you want to support Bitcode (not tested)
iOS Framework Simple Production