Upgrading Apache Cordova to latest version

Updating Apache Cordova to the latest version only takes a few minutes. Below are the steps (taken from Cordova) needed to update your > 3.0 projects to the latest version (3.5 as of this post).

In a command / terminal run:

  1. npm install -g cordova
  2. Now go to into your project (ie: c:\projects\test)  and run:
  3. cordova platform update android (or ios)

 

You can update your plugins by removing / adding them again like:

cordova plugin rm org.apache.cordova.file
cordova plugin add org.apache.cordova.file

That’s it. Now you should have an up to date environment.

Upgrading Apache Cordova to latest version

Local web server for testing / development using Node.js and http-server

localhost8080If you’re developing html / javascript applications and want to test locally, many times you will go beyond what local file access (file:///C:/…) in browsers will allow (like XMLHttpRequests, json calls, cross domain access and Access-Control-Allow-Origin restrictions).

A simple solution instead of deploying your code to apache or IIS is to install a local http server. http-server for Node.js is a fast, easy install and app that will allow you to use any directory as a http://localhost.

Installing this simple http server only takes a few steps:

  1. Install node.js if you don’t already have installed (from http://nodejs.org)
  2. In a command prompt / terminal, now run:
    npm install http-server -g
    

    (this installs http-server globally so you can access from any folder or directory)

  3. Now using command prompt or terminal, browser to a folder with some html you want to serve as http. (ie: c:\someproject\).
  4. Run:
    http-server
    
  5. Open your browser and visit http://localhost:8080.

 

You can change port 8080 (the default) to anything using “-p”, so http-server -p 8088 would change your local site to http://localhost:8088

Run http-server –help to see the other options available for running.

Local web server for testing / development using Node.js and http-server

Wirecast – Unable to start, find the Quicktime plug-in solution

If installing Wirecast (a great live streaming application by Telestream) and you run across this little error upon starting up for the first time:

 

Wirecast was unable to start
Unable to find the QuickTime plug-in. Please reinstall Wirecast.

wcast1

I would not recommend reinstalling Wirecast but simply downloading and installing QuickTime:

  1. Visit www.apple.com/quicktime/download/ and download
  2. Run Setup
  3. I would uncheck the boxes on this dialog:
    wcast2
  4. And at the end of the install I would also click “No Thanks”:
    wcast3

 

 

You should now be able to run Wirecast without the QuickTime error. This applied to Wirecast 5 (5.0.3) and Windows 7 x64.

As a side note, I’ve been experimenting with DaCast streaming provider, so far seems to work well.

Wirecast – Unable to start, find the Quicktime plug-in solution

New App Version IOS / iTunes Connect CFBundleVersion Error

App_Store_Logo

When adding a new version of your app to iTunes Connect, you may run across the below error:

ERROR ITMS-9000: “This bundle is invalid. The value for key CFBundleVersion [1.0] in the Info.plist file must contain a higher version than that of the previously uploaded version [1.0].” at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

This version (CFBundleVersion) is the build version of your bundle and can be different (more frequent) than your release version number (aka CFBundleShortVersionString).

You can edit this version in the info.plist file

bundleversion

From Apple:

The build version number should be a string comprised of three non-negative, period-separated integers with the first integer being greater than zero. The string should only contain numeric (0-9) and period (.) characters. Leading zeros are truncated from each integer and will be ignored (that is, 1.02.3 is equivalent to 1.2.3).

After updating your info.plist you should be able to rebuild and upload your new / updated version without issue. -Now you just need to wait for Apple to approve…

New App Version IOS / iTunes Connect CFBundleVersion Error