Tiatnium base 64 module for image encoding decoding - titanium

Hi I was trying to encode the base64 string from blob/image file.I was shocked when i came to know that "Ti.Utils.base64encode()" method only works in android but wont give the same string in IOS.So after searching through blogs for getting the solution ,i found http://www.clearlyinnovative.com/blog/post/9546524557/titanium-appcelerator-quickie-base64encode-ios-module#.UUqY2VuPg4U
When i try to run the project by including this module in project its getting error log while building the project for ios.Could any on help.Thanks in advace.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/postfile.app/postfile normal i386
[ERROR] : (1 failure)

Related

Appcelerator Titanium (Alloy) | How to find a error? or exception?

I am working on a project, and everything was working fine. However, suddenly I am getting below error
[ERROR] :
[ERROR] : (C:\Users\user.name.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:189:18)
[ERROR] : (C:\Users\abdul.aleem.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:197:11)
[ERROR] : (C:\Users\abdul.aleem.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:664:9)
[ERROR] : Alloy compiler failed
TRACE | titanium exited with exit code 1
[ERROR] Application Installer abnormal process termination. Process exit value was 1
I know I had mistakenly written something on JS file or XML file, and now I am unable to find the exact cause of the error. The studio is throwing to a general exception.
How to find the exact location or cause of the error?
I cannot reproduce this with the same 5.0.2 version:
[ERROR] : Error generating AST for "/Users/fokkezb/dev/studio/TestAlloy/app/controllers/index.js"
[ERROR] : Unexpected token punc «{», expected punc «(»
[ERROR] : line 1, column 17, position 17
[ERROR] : Alloy compiler failed
TRACE | titanium exited with exit code 1
If you figure out the cause, could you create a JIRA ticket with a reproducible test case and steps so we ca fix this?

Can't use SpeechKit Titanium module from iOS in my app

I want want to use Speechkit SDK in my app, since I found it recognize words better than the native tool did.
I found a Titanium module on GitHub but it is designed to work with Titanium SDK 3.1.3.GA . I am currently working with SDK 5.0.0.GA.
What am I supposed to do to import this module in my mobile app ? I updated the titanium.xcconfig file to reflect the version of my SDK. I also put my credentials into it and build the project. Then I compressed it and installed it via Help Menu > Install Mobile Module. I finally added it to the tiapp.xml file.
When I try to run the project, this is what I get :
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/arm64/Hello5 normal arm64
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/armv7/Hello5 normal armv7
[ERROR] : (2 failures)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/feeder/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
I tried to create a new module by hand and drag-and-drop files into it, and also tried to install globally vs project-specific, I can't come with an idea for making it work. Thank you in advance if you could share an idea ;)
I have the same error and looking the console using Trace appears "framework SpeechKit not found".
I've successfully resolved this error by packaging the module to your project directly selecting "Mobile App Project" given that Module.xcconfig sets "FRAMEWORK_SEARCH_PATHS" to find SpeechKit framework on "assets" folder from the project directly.

Error Compiling Scala Spark using SBT Console in IntelliJ IDEA

I tried to compile Scala Spark project that I got using get-idea following this tutorial https://anitatailor.wordpress.com/2013/10/09/setting-up-spark0-8-0-with-intellijidea/
But when I tried to compile Scala Spark using SBT Console in IntelliJ IDEA, I got some errors.
You may see the error logs below
java -Dsbt.log.noformat=true -Djline.terminal=jline.UnsupportedTerminal -Xmx512M -XX:MaxPermSize=256M -jar C:\Users\Priska\.IdeaIC14\system\sbt\sbt-launch.jar
[info] Loading project definition from D:\spark-incubating\project\project
[info] Compiling 1 Scala source to D:\spark-incubating\project\project\target\scala-2.9.2\sbt-0.12\classes...
[error] error while loading CharSequence, class file 'D:\IDEA\jre\jre\lib\rt.jar(java/lang/CharSequence.class)' is broken
[error] (bad constant pool tag 15 at byte 1501)
[error] error while loading Comparator, class file 'D:\IDEA\jre\jre\lib\rt.jar(java/util/Comparator.class)' is broken
[error] (bad constant pool tag 15 at byte 5003)
[error] two errors found
[error] (compile:compile) Compilation failed
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
Can you help me to solve the problem?
Any help would be appreciated.
Thank you

Binary incompatibility in plugins detected in Play 2.1.3 project after upgrading to IDEA 13.1?

After updating IntelliJ IDEA to 13.1 last night I can't use Run/Debug config anymore. It happens in a project I've been working on in IDEA 13.0.x for the past couple of months -- now it shows me the message and I have no idea how I can solve this.
[info] Loading project definition from /www/play20apps/cnproject/project
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error] asm:asm
[error] asm:asm-tree
[error] asm:asm-util
[error] org.avaje.ebeanorm:avaje-ebeanorm-agent
[error] jline:jline
[error] junit:junit
[error] com.jcraft:jsch
[error] commons-logging:commons-logging
[error] commons-codec:commons-codec
[error] Use 'last' for the full log.
[error] java.lang.ExceptionInInitializerError
[error] Use 'last' for the full log.
[error] Not a valid command: run
[error] run
[error] ^
Process finished with exit code 1
I didn't change Play version since yesterday of course and running application with common command line works as expected.
Also tried to create new run config after plugins' update with no luck.
Please advise.
Adding -Djline.terminal= to JVM Options should fix it.
last log reports this.
The relevant part:
Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: none
at jline.Terminal.setupTerminal(Terminal.java:65)
at jline.Terminal.getTerminal(Terminal.java:26)
at sbt.JLine$.sbt$JLine$$terminal(LineReader.scala:65)
where none is probably passed via -Djline.terminal=none.

Build Failed Error in Titanium iOS project

I am using Titanium 3.1.3 GA version.
While include mobile app tracking module in project, getting "Build Failed" Error message.
Tried with new project also getting the same error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/MoibleAppTrackingSample.app/MoibleAppTrackingSample normal i386
[ERROR] : (1 failure)
Please let me know about the issue and how could i fix this.
i386 means you were running on IOS, if yes then please paste the whole log here, so that we can figure it out actually. Because there may be many issue like sdk problem and all. i386 architecture is used for simulators.
Go in finder where this project is and then click BUILD/iphone/ then click on Xcode project. And from there try to build.
Are there any more details about in the log?
What module did you use? did you download it from the MarketPlace?
Try doing a Clean Project and try again.