xcode Titanium appcelerator 构建失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15973170/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:11:54  来源:igfitidea点击:

Titanium appcelerator failing on build

iphoneiosxcodetitaniumtitanium-mobile

提问by wowzuzz

I am trying to run my app in the iPad simulator, but I keep getting this error whenever I try to simulate. I've updated everything, some fellow help for an appcelerator noob would be much appreciated. Any thoughts would help.

我正在尝试在 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)

This is what I am getting in xcode for my first error. Maybe this helps.

这就是我在 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"

回答by Ste Prescott

Clean the build. Many errors can be fixed by performing a clean build. http://www.titaniumtips.com/files/how_to_clean_the_build_folder.php

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

回答by Rene Pot

I recently encountered this error too. In my case the solution was to update/remove any modules build for older SDK versions.

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

My modules hadn't been updated in a while but the Titanium SDK has. The error wasn't very informative but once I removed the module the error disappeared and I could build again.

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

But before trying this, always try to clean the project. It usually helps! That should be the first step, if that doesn't work, try my solution.

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

回答by Karst

TLDR: read the bold text.

TLDR:阅读粗体文本。

I have struggled with this problem for over a day, did a completely clean reinstall of my Mac, Titanium and xCode, and it still gave me this error.

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

I created a new project, and as soon as I tried to run it (with the Titanium example code still in it). I got the exact same error.

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

Turns out, for me the problem was that I was trying to create the project on an external (server) hard drive, over an ethernet connection. This seemed to somehow corrupt the tiapp.xml as soon as it was generated, even though on a manual inspection I couldn't find anything.

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

The solution for me was to create the project on a local hard drive.(On the Mac, not on the server.) You can then copy it to a server if you want. This seems to be an issue with Macs not always liking to work with Windows based filesystems.

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

Hope this helps someone.

希望这可以帮助某人。