V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
fanwei
V2EX  ›  iDev

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

  •  
  •   fanwei · 2014-04-27 17:29:14 +08:00 · 3751 次点击
    这是一个创建于 3899 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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)
    2 条回复    2014-04-28 20:56:35 +08:00
    ipoly
        1
    ipoly  
       2014-04-27 19:27:10 +08:00
    几个月前也鼓捣过这货。
    看上去很美:“用js写跨平台应用噢~”
    但是玩儿起来很坑:如果你不知道imageView之类的东西是什么以及在不同平台上差异,根本没法玩儿。
    文档很难看。FAQ太旧。
    折腾了个把月后,已经一怒之下开始直接学习iOS开发了。
    WildCat
        2
    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/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2253 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:05 · PVG 00:05 · LAX 08:05 · JFK 11:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.