Xcode中Link Binary With Libraries Status Required or Optional

Xcode中Link Binary With Libraries Status Required or Optional

Libraries and frameworks are designated as Required by default, but you can change this designation to Optional. Required libraries must be present on the host computer for the product to load. Optional libraries do not have to be present for the product to load. A Required framework will always be loaded into memory, but an Optional framework will be loaded only if needed. The initial load of the application will be faster if a large library that is never needed is designated as Optional.

内容:在指定设备上根据系统版本选择加载framework 状态,否则会出现崩溃.常见 <NotficationCenter.framework>需要 Optional,否则会在低版本系统ios7下崩溃.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容