Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

DZone's Guide to

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

· Java Zone
Free Resource

Try Okta to add social login, MFA, and OpenID Connect support to your Java app in minutes. Create a free developer account today and never build auth again.

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.

Build and launch faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}