我有一个2013 Retina MacBook pro,并对XCode的构建速度感到惊讶.我可以在大约2-3秒内在模拟器中构建并运行一个相当大的Objective-C应用程序. 在为iPhone制作和运行较小的Titanium App时,我想知道为
在为iPhone制作和运行较小的Titanium App时,我想知道为什么需要大约15秒.在控制台中,构建过程非常快,但应用程序在“调用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
有什么办法可以让它更快吗?
我得到了提示,导致我的 Appcelerator QA Question上的问题的解决方案每次完整构建的原因都在日志中的这一行中暗示:
Forcing rebuild: custom Info.plist CFBundleIdentifier not equal to tiapp.xml <id>
我的项目中有一个自定义Info.plist,每次都复制到XCode项目.我更改了tiapp.xml< id>属性与CFBundleIdentifier相同,并且构建在不到4秒的时间内完成.