Appcelerator错误:项目无法生成之后

时间:2014-03-18 02:13:33

标签: appcelerator-mobile ios7.1

    Does Anybody help me on find what this error is? I got this error while debugging for iOS.

    Titanium Command-Line Interface, CLI version 3.2.1, Titanium SDK version 3.2.0.GA
    Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.
    Please report bugs to http://jira.appcelerator.org/
    [INFO] :   Deploy type: development
    [INFO] :   Building for target: simulator
    [INFO] :   Building using iOS SDK: 7.1
    [INFO] :   Building for iOS iPhone Simulator: 7.1
    [INFO] :   Building for device family: iphone
    [INFO] :   Minimum iOS version: 6.0
    [INFO] :   Debugging enabled via debug host: 192.168.0.4:50333
    [INFO] :   Profiler disabled
    [INFO] :   Initiating prepare phase
    [INFO] :   Initiating Xcode pre-compile phase
    [INFO] :   Processing JavaScript files
    [INFO] :   Compiling localization files
    [INFO] :   Checking for Splash Screen localization
    [INFO] :   Skipping xcodebuild
    [INFO] :   Finished building the application in 4s 559ms
    [INFO] :   Running application in iOS Simulator
    [INFO] :   Launching application in iOS Simulator
    [INFO] :   Focusing the iOS Simulator
    [ERROR] :  Project failed to build after 10s 972ms

在日志文件中我有这个:

!ENTRY com.aptana.core 4 0 2014-03-17 17:29:29.765 !MESSAGE(Build 3.2.1.201402041146)[ERROR]在启动之前清除构建时出错 !堆栈1 org.eclipse.core.runtime.CoreException:调用同步构建器时出错     在com.appcelerator.titanium.core.launching.TitaniumSingleProjectLaunchConfigurationDelegate.cleanBuild(TitaniumSingleProjectLaunchConfigurationDelegate.java:79)     在com.appcelerator.titanium.ios.ui.launching.simulator.IOSSimulatorLaunchConfigurationDelegate.launch(IOSSimulatorLaunchConfigurationDelegate.java:52)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)     在org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)     在org.eclipse.debug.internal.ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1222)     在org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) 引起:java.lang.NoSuchMethodException:org.eclipse.core.internal.events.BuildManager.build(org.eclipse.core.internal.resources.BuildConfiguration,int,java.lang.String,java.util.Map,org) .eclipse.core.runtime.IProgressMonitor)     在java.lang.Class.getMethod(Class.java:1641)     在com.aptana.core.util.BuildUtil.syncBuild37(BuildUtil.java:117)     在com.aptana.core.util.BuildUtil.syncBuild(BuildUtil.java:73)     在com.appcelerator.titanium.core.launching.TitaniumSingleProjectLaunchConfigurationDelegate.cleanBuild(TitaniumSingleProjectLaunchConfigurationDelegate.java:75)     ......还有6个 !SUBENTRY 1 com.aptana.core 4 0 2014-03-17 17:29:29.766 !MESSAGE调用同步构建器时出错 !堆栈0 java.lang.NoSuchMethodException:org.eclipse.core.internal.events.BuildManager.build(org.eclipse.core.internal.resources.BuildConfiguration,int,java.lang.String,java.util.Map,org.eclipse。 core.runtime.IProgressMonitor)     在java.lang.Class.getMethod(Class.java:1641)     在com.aptana.core.util.BuildUtil.syncBuild37(BuildUtil.java:117)     在com.aptana.core.util.BuildUtil.syncBuild(BuildUtil.java:73)     在com.appcelerator.titanium.core.launching.TitaniumSingleProjectLaunchConfigurationDelegate.cleanBuild(TitaniumSingleProjectLaunchConfigurationDelegate.java:75)     在com.appcelerator.titanium.ios.ui.launching.simulator.IOSSimulatorLaunchConfigurationDelegate.launch(IOSSimulatorLaunchConfigurationDelegate.java:52)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)     在org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)     在org.eclipse.debug.internal.ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1222)     在org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

2 个答案:

答案 0 :(得分:1)

这可能是由于在Titanium Studio首选项中设置了多个Xcode和不正确的iOS SDK Home值,这可能指向Xcode的不同位置而不是当前位置或所需位置。

我使用的是iOS模拟器版本7.1的Xcode 5.1和iOS SDK 7.1。我的tiapp.xml中的T​​itanium SDK版本是3.3.0.GA.我在运行Mac Mavericks的Mac机器上安装了多个Xcode,包括Xcode 4.5,5.0,5.0.2和5.1。我能够通过以下方式解决它 -

  1. 从Titanium Studio菜单选项中,选择首选项。
  2. 在“首选项”窗口中,展开Studio下拉列表,然后展开“平台”下拉列表并选择“iOS”。
  3. 在右侧的“常规”部分下,根据您正在构建应用的“运行配置”,检查iOS SDK Home是否设置为当前版本。对我来说,它应该设置为Xcode 5.0.2版本,它应该实际设置为Xcode 5.1版本(我想需要在iOS模拟器版本7.1上使用Titanium SDK版本3.3.0.GA运行)。您可以通过单击下面的注释中提供的更多详细信息链接找到更改它的步骤。
  4. 单击“应用”并再次运行该应用程序,甚至更好地执行清理并运行。

答案 1 :(得分:0)

在我的情况下,我的项目正在建设中,然后在下一分钟我收到此错误并且无法摆脱它。

最后,为我修复它的唯一方法是从你的应用程序中删除构建目录,然后再次构建。