Skip to Main Content
iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
book

iOS 编程基础:Swift、Xcode 和Cocoa 入门指南

by Matt Neuburg
January 2017
Intermediate to advanced content levelIntermediate to advanced
552 pages
9h 43m
Chinese
China Machine Press
Content preview from iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
356
9
项目的生命周期
本章将会介绍
Xcode
项目生命周期的几个主要阶段,从一开始到提交到
App Store
。此外,
还会介绍
Xcode
开发环境的一些附加特性:配置构建设置与
Info.plist
;编辑、调试与测
试代码;在设备上运行应用;为提交到
App Store
做分析、本地化与最终的准备工作。
9.1
设备架构与条件代码
在创建项目时(
File
New
Project
),当选择好项目模板后,在项目命名界面上会
弹出
Devices
菜单,提供了
iPad
iPhone
Universal
选项。可以稍后修改这个设置,在
编辑应用目标时使用
General
页签中的
Devices
弹出菜单;不过如果这里就能做出正确
的决定,那么情况会变得更加简单,因为你的决定会影响新项目所使用的模板细节信息。
Devices
弹出菜单中所做的选择还会影响项目的
Targeted Device Family
构建设置:
1
iPhone
应用可以运行在
iPhone
iPod touch
上;还可以运行在
iPad
上,但并不是作为原
iPad
应用运行(它会运行在一个简化的、可放大的窗口中,称为
iPhone
模拟器;
Apple
有时称为“兼容模式”)。
2
iPad
应用只会运行在
iPad
上。
1
2
通用
应用可以运行在这两种设备上。
有两个项目级的构建设置可以决定设备运行在什么系统上:
项目的生命周期
357
Base SDK
应用可运行的最新系统。本书编写之际,在
Xcode 7.0
中,你有两个选择:
iOS 9.0
Latest ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
Swift 人工智能实战:从基础理论到AI 驱动的应用程序开发

Swift 人工智能实战:从基础理论到AI 驱动的应用程序开发

Mars Geldard, Jonathon Manning, Paris Buttfield-Addison, Tim Nugent

Publisher Resources

ISBN: 9787111556350