我有一台 2013 Retina MacBook pro,对 XCode 的构建速度感到惊讶。我可以在大约 2-3 秒内在模拟器中构建并运行一个相当大的 Objective-C 应用程序。
在为 iPhone 构建和运行较小的 Titanium 应用程序时,大约需要 15 秒,我想知道为什么。在控制台中,构建过程确实很快,但应用程序在“Invoking xcodebuild”上挂了大约 10 秒
$ titanium build -p ios
Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.0.2.v20130206164716
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] Build type: development
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 6.1
[INFO] Building for iOS iPhone Simulator: 6.1
[INFO] Building for device family: iphone
[INFO] Minimum iOS version: 4.3
[INFO] Debugging disabled
[INFO] Initiating prepare phase
[INFO] Copying custom Info.plist from project directory
[INFO] Forcing rebuild: custom Info.plist CFBundleIdentifier not equal to tiapp.xml <id>
[INFO] No Titanium Modules required, continuing
[INFO] Cleaning old build directory
[INFO] Performing full rebuild
[INFO] Copying Xcode iOS files
[INFO] Creating Xcode project directory: .../build/iphone/MyProject.xcodeproj
[INFO] Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj
[INFO] Writing Xcode project configuration: project.xcconfig
[INFO] Writing Xcode module configuration: module.xcconfig
[INFO] Creating symlinks for simulator build
[INFO] Forcing rebuild: ApplicationDefaults.m has changed since last build
[INFO] Writing properties to ApplicationDefaults.m
[INFO] No module resources to copy
[INFO] No CommonJS modules to copy
[INFO] Invoking xcodebuild
我能做些什么来加快速度吗?