【问题标题】:Titanium appcelerator failing on buildTitanium appcelerator 构建失败
【发布时间】:2013-04-05 02:06:15
【问题描述】:

我正在尝试在 iPad 模拟器中运行我的应用程序,但每当我尝试模拟时,我都会收到此错误。我已经更新了所有内容,非常感谢一些对 appcelerator noob 的帮助。任何想法都会有所帮助。

[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :   Ld "build/Debug-iphonesimulator/Neoplastic Heme.app/Neoplastic Heme" normal i386
[ERROR] :  (1 failure)

这是我在 xcode 中遇到的第一个错误。也许这会有所帮助。

Ld "/Users/john/Library/Developer/Xcode/DerivedData/Neoplastic_Heme-amibyrwaylsahtgseinqplkoqzqx/Build/Products/Debug-iphonesimulator/Neoplastic Heme.app/Neoplastic Heme" normal i386
cd "/Users/john/Desktop/Neoplastic Heme/build/iphone"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/john/Library/Developer/Xcode/DerivedData/Neoplastic_Heme-amibyrwaylsahtgseinqplkoqzqx/Build/Products/Debug-iphonesimulator "-L/Users/john/Desktop/Neoplastic Heme/build/iphone/lib" -F/Users/john/Library/Developer/Xcode/DerivedData/Neoplastic_Heme-amibyrwaylsahtgseinqplkoqzqx/Build/Products/Debug-iphonesimulator -filelist "/Users/john/Library/Developer/Xcode/DerivedData/Neoplastic_Heme-amibyrwaylsahtgseinqplkoqzqx/Build/Intermediates/Neoplastic Heme.build/Debug-iphonesimulator/Neoplastic Heme-iPad.build/Objects-normal/i386/Neoplastic Heme.LinkFileList" -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.0 -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -ltiverify -lti_ios_debugger -licucore -o "/Users/john/Library/Developer/Xcode/DerivedData/Neoplastic_Heme-amibyrwaylsahtgseinqplkoqzqx/Build/Products/Debug-iphonesimulator/Neoplastic Heme.app/Neoplastic Heme"

【问题讨论】:

  • 一些代码或至少一些信息会很好..
  • 这不是我的代码,我基本上是想从另一个开发人员那里解开第一个问题。你还需要什么其他信息?
  • 您是接手了这台以前的开发人员计算机还是只是代码?您是在 xcode 中构建代码还是在使用 Titanium 代码?
  • 我只是把代码拿过来,不同的电脑。我正在使用 Titanium 代码。
  • 第二部分来自xcode。我认为这可能会对故障排除过程有所帮助。

标签: iphone ios xcode titanium titanium-mobile


【解决方案1】:

清理构建。许多错误可以通过执行干净的构建来修复。 http://www.titaniumtips.com/files/how_to_clean_the_build_folder.php

【讨论】:

  • 非常感谢! :) 我访问了您的链接,并像它所说的那样清空了我的 iPhone 文件夹。然后我去建造它,结果很完美。让我开心!
  • 不客气 :-) 我花了几个月的时间使用 Titanium 来解决这个问题。就像我说的,如果你再次遇到问题并且不知道为什么要清理你的构建。
【解决方案2】:

我最近也遇到了这个错误。就我而言,解决方案是更新/删除为旧版 SDK 构建的任何模块。

我的模块已经有一段时间没有更新了,但是 Titanium SDK 已经更新了。该错误信息不是很丰富,但是一旦我删除了模块,错误就消失了,我可以再次构建。

但在尝试此操作之前,请始终尝试清理项目。它通常会有所帮助!这应该是第一步,如果这不起作用,请尝试我的解决方案。

【讨论】:

  • 我面临同样的问题并且尝试了很多方法,但问题仍然存在.. :( 任何帮助都会很棒。
  • 我也可以通过更新模块来修复。要确定它的模块,请从 tiamm.xml 中删除所有模块并尝试构建,如果它可以启动模拟器,那么它是一个模块问题,您需要一个一个地解决它们以确定问题是什么。
【解决方案3】:

TLDR:阅读粗体字。

我已经为这个问题苦苦挣扎了一天多,我完全干净地重新安装了我的 Mac、Titanium 和 xCode,但它仍然给了我这个错误。

我创建了一个新项目,并在我尝试运行它时立即运行(其中仍然包含 Titanium 示例代码)。我得到了完全相同的错误。

事实证明,对我来说,问题在于我试图通过以太网连接在外部(服务器)硬盘驱动器上创建项目。这似乎在生成 tiapp.xml 后就以某种方式损坏了它,即使在手动检查时我找不到任何东西。

我的解决方案是在本地硬盘驱动器上创建项目。(在 Mac 上,而不是在服务器上。)然后您可以根据需要将其复制到服务器上。这似乎是 Mac 不总是喜欢使用基于 Windows 的文件系统的问题。

希望这对某人有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-20
    • 1970-01-01
    • 1970-01-01
    • 2020-09-14
    • 1970-01-01
    • 2013-12-13
    相关资源
    最近更新 更多