Conditional Linking to System Frameworks
来源:互联网 发布:canvasjs.min.js 编辑:程序博客网 时间:2024/04/28 21:53
Conditional Linking to System Frameworks
There may be occasions when you need to configure your application target so that it links against one framework to run on the iPhone Simulator and another framework to run on a device. For example, the CFNetwork
API is a stand-alone framework (CFNetwork.framework
) in the iPhone SDK for a device but a subframework of the Core Services framework (CoreServices.framework
) on the iPhone SDK for the iPhone Simulator.
In this case, you need to specify the framework linking details for the CFNetwork
API separately for the simulator and for a device. Follow these steps:
In Xcode, choose Project > Edit Active Target “<application_target>” to open the target editor.
Click the Build tab to display the build settings editor.
From the Show pop-up menu, choose All Settings.
Select Linking > Other Linker Flags.
Add the device linking details:
Select the Linking > Other Linker Flags build setting.
Choose Add Build Setting Condition from the Action (gear) pop-up menu.
In the Value column, enter
-framework CFNetwork
.From the Any SDK pop-up menu in the Title column, choose Device - iPhone.
Add the simulator linking details:
Select the Linking > Other Linker Flags build setting.
Choose Add Build Setting Condition from the Action (gear) pop-up menu.
In the Value column, enter
-framework CoreServices
.From the Any SDK pop-up menu in the Title column, choose Simulator - iPhone.
https://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/DevelopmentEnvironmentOverview/chapter_4_section_7.html
- Conditional Linking to System Frameworks
- Frameworks and Weak Linking
- How to write conditional equations
- Linking SAP User-id to Personnel no
- Explicitly Linking to Classes in DLL's
- osx : Linking a Library to xcode
- android input system(frameworks) analysis -- InputManager (1)
- android input system(frameworks) analysis -- InputManager (2)
- android input system(frameworks) analysis -- InputManager (1)
- android input system(frameworks) analysis -- InputManager (2)
- android input system(frameworks) analysis -- InputManager
- /System/Library/Frameworks/Ruby.framework/Versions/
- Introduction to Probability (二) Conditional probability
- 条件接收系统 (CAs:Conditional Access System)
- Frameworks
- unable to open “frameworks\locale\zh_CN’ 解决方法
- Failed to create .NET Frameworks PropertyGrid component.
- Brief Intro to Collections of Foundation Frameworks
- EasyARM2200开发板学习笔记:启动代码分析
- Visual C++开发工具与调试技巧整理
- 常用的“密码重置”代码
- maven2学习 新手上路(笔记形式)
- c++笔试题汇总
- Conditional Linking to System Frameworks
- VB实现局域网内的文件传输
- CSS-Styled列表:例子,指南和最佳实践
- VB连接SQL数据库的方法
- VB中采用ADO引用数据库,更新说“当前记录集不支持更新"解决方法
- 中国男足版--北京欢迎你
- 12个顶级的CSS框架
- bat批处理教程 - VISIUAL
- 30个非凡的CSS技巧和例子