简体   繁体   中英

Adding a framework to existing project

I'm adding a 'Cocoa Touch Framework' target to an existing project on XCode 6. Will I be able to use the built framework on older iOS versions? (iOS 6 & 7)

As far as I know you can work around and support iOS7 with dynamic libraries.

The application must weak link against the framework. To do so, in your application target's “Link Binary With Libraries” Build Phase, designate the framework as “Optional”. This will weakly link against the framework.

在此处输入图片说明

Then, you need to follow the guidelines provided by apple .

You can have more information and a sample project in this blog article .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM