Weak-linking multiple frameworks for iPhone Apps (-weak_framework)

一世执手 提交于 2019-11-27 19:02:22

问题


How do I specify -weak_framework for multiple frameworks while compiling iPhone apps for older deployment targets?


回答1:


In the Build Phases section of your target, you've got the list of the linked frameworks.

For each one, you can select Required or Optional, optional meaning weak.




回答2:


Add a linker flag -weak_framework <framework_name> Check this link: https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html



来源:https://stackoverflow.com/questions/8385444/weak-linking-multiple-frameworks-for-iphone-apps-weak-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!