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

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

by Matt Neuburg
January 2017
Intermediate to advanced
552 pages
9h 43m
Chinese
China Machine Press
Content preview from iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
300
6
6-13:方案弹出菜单
目标与方案之间并没有什么关系。方案弹出菜单中会有目标主要是起到方便的作用,这
样你就可以使用弹出菜单一次性地来选择方案或目标了,也可以同时选择这两者。要想
在不改变方案的情况下切换目标,请在方案弹出菜单中单击目标名。要想切换方案,或
确定目标(如图
6-13
所示),请在方案弹出菜单中单击方案名。
每个模拟设备都有一个安装到设备上的系统版本。目前,我们所模拟的设备都运行着
iOS 9.0
;这样就没有差别了,系统版本就没有显示出来。不过,可以在
Xcode
的首选项
窗格中下载其他
SDK
(系统)。如果下载了并且应用可以运行在多个系统版本上,你还
会在
Scheme
弹出菜单中看到系统版本成为目标名的一部分。比如,如果安装了
iOS 8.4
SDK
,同时项目的部署目标(参见第
9
章)是
8.0
,那么项目窗口工具栏中的方案弹出
菜单就会在目标名后面显示“
iOS 9.0
”或是“
iOS 8.4
”。
如果下载了额外的
SDK
,并且应用配置为在多个系统上运行,要是看不到使用了这
些系统的任何模拟设备,那么请选择
Window
Device
来弹出
Devices
窗口。这是
管理模拟设备的地方。可以在这里创建、删除和重命名模拟设备,还可以指定某个
模拟设备是否会作为目标出现在方案弹出菜单中。
6.5
从项目到运行应用
应用文件实际上是一种特殊的目录,叫作包(
package
,而特殊的
package
则叫作
bundle
)。通常情况下,
Finder
会将包当作文件,并不会将其内容显示给用户,但你可
以绕过这种防护措施并使用 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

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
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9787111556350