Over a million developers have joined DZone.

Removing Obsolete "Cordova-based (pre 2.0)" Template from Xcode

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

If you are a long-time PhoneGap developer like me, you may have missed a release note somewhere like I did. When PhoneGap released version 2.0, they dropped support for Xcode templates. While that sounds like a bad thing, it wasn't. The templates never seemed to live up to their promise, plus it probably wasn't easy trying to keep up with all of the changes that Apple kept making to the internal plumbing of Xcode. 

The problem for me was that I wasn't sure how to get rid of the Cordova template. Now it was harming anything it was just minding its own business but for some reason or another it bugged me. I had to get rid of it.
Luckily it is easy enough to remove a template. Before you do what I did, a word of caution. I am not sure if this is proper way to do this. It seems to work fine on my machine, but don't blame me if it doesn't work for you. Be sure to backup your system before you proceed.
  1. Launch Terminal
  2. Change directory to the Xcode templates:
    1. cd "Library/Developer/Xcode/Templates/Project Templates/Application"
  3. Delete the directory holding the Cordova template:
    1. rm -rf "Cordova-based (pre 2.0) Application.xctemplate"

Please be careful with the rm command with the -rf options. It will delete a directory and all of its contents without further prompting. 
Once you re-open Xcode, the old Cordova template will be gone and you can relax and get back to coding.

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.


Published at DZone with permission of Troy Miles, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}