gpt4 book ai didi

titanium - 为什么钛合金的构建过程如此缓慢?

转载 作者:行者123 更新时间:2023-12-03 06:29:59 25 4
gpt4 key购买 nike

我有一台 2013 年 Retina MacBook pro,对 XCode 的构建速度感到惊讶。我可以在大约 2-3 秒内在模拟器中构建并运行一个相当大的 Objective-C 应用程序。

当为 iPhone 构建和运行一个较小的 Titanium 应用程序时,大约需要 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 秒。

关于titanium - 为什么钛合金的构建过程如此缓慢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15339673/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com