titanium 创建了个 alloy 项目,默认的啥也没改,编译通过不了,提示的错误又看不懂.....

2014-04-27 17:29:14 +08:00
 fanwei
Titanium Command-Line Interface, CLI version 3.2.1, Titanium SDK version 3.2.2.GA
Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] : Found Titanium plugin id=ti.alloy version=1.0
[INFO] : Deploy type: development
[INFO] : Building for target: simulator
[INFO] : Building using iOS SDK: 7.0.3
[INFO] : Building for iOS iPhone Simulator: 7.0.3
[INFO] : Building for device family: universal
[INFO] : Minimum iOS version: 6.0
[INFO] : Debugging disabled
[INFO] : Profiler disabled
[INFO] : Forcing rebuild: /Users/liuzhixiang/Documents/svn/wd/small-project/order/build/iphone/build-manifest.json does not exist
[INFO] : Initiating prepare phase
[INFO] : Found Alloy app in /Users/liuzhixiang/Documents/svn/wd/small-project/order/app
[INFO] : Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/liuzhixiang/Documents/svn/wd/small-project/order/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development
[INFO] : ----- MVC GENERATION -----
[INFO] : [global style] loading from cache...
[INFO] : [index.xml] view processing...
[INFO] : style: "index.tss"
[INFO] : view: "index.xml"
[INFO] : controller: "index.js"
[INFO] : created: "Resources/iphone/alloy/controllers/index.js"
[INFO] : created: "Resources/iphone/alloy/styles/index.js"
[INFO] :
[INFO] : [app.js] using cached app.js...
[INFO] :
[INFO] : ----- OPTIMIZING -----
[INFO] : - iphone/alloy.js
[INFO] : - iphone/alloy/sync/localStorage.js
[INFO] : - iphone/alloy/sync/properties.js
[INFO] : - iphone/alloy/sync/sql.js
[INFO] :
[INFO] : Alloy compiled in 0.4303s
[INFO] : Alloy compiler completed successfully
[INFO] : Cleaning old build directory
[INFO] : Performing full rebuild
[INFO] : Copying Xcode iOS files
[INFO] : Creating Xcode project directory: /Users/liuzhixiang/Documents/svn/wd/small-project/order/build/iphone/order.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] : Forcing rebuild: ApplicationDefaults.m has changed since last build
[INFO] : Writing application defaults: /Users/liuzhixiang/Documents/svn/wd/small-project/order/build/iphone/Classes/ApplicationDefaults.m
[INFO] : Initiating Xcode pre-compile phase
[INFO] : Processing JavaScript files
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/order.app/order normal i386
[ERROR] : (1 failure)
3583 次点击
所在节点    iDev
2 条回复
ipoly
2014-04-27 19:27:10 +08:00
几个月前也鼓捣过这货。
看上去很美:“用js写跨平台应用噢~”
但是玩儿起来很坑:如果你不知道imageView之类的东西是什么以及在不同平台上差异,根本没法玩儿。
文档很难看。FAQ太旧。
折腾了个把月后,已经一怒之下开始直接学习iOS开发了。
WildCat
2014-04-28 20:56:35 +08:00
不推荐楼主学习Ti,超级无敌大坑。去年9月份研究了下,感觉甚至不如做Hybrid。
Ti的收费策略很无语“you'd have to pay me to fix for you.”(参考我的问题 https://developer.appcelerator.com/question/159044/how-to-trans-the-charset-of-http-get-data-from-gbk2312-to-utf8)

目前可以期待的跨平台只有HTML5和Xamarin,后者目前获得巨硬的巨大支持,不过我们需要观望一段时间。不管怎样,跨平台开发还是需要了解一定的native内容的,所以ios/android还是有必要学的。


批判Ti的参考文章:
成也Titanium,败也Titanium
http://mobile.51cto.com/web-337040.htm

為什麼我們不用 Titanium 來開發手機app?
http://dukeland.hk/2012/03/12/why-dont-we-use-appcelerator-titanium/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/110241

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX