Difficulty in uninstalling older phonegap versions - xcode

How do i uninstall an already existing version of phonegap(1.3,1.8) because i want to install the new 2.0 and it does'nt get installed without uninstalling older versions. The folder structure of my older version 1.8 does'nt have uninstall option.
Any suggestions are welcome.Thanks.

Cordova 2.0 onwards doesn't really have an 'installer' so you should be perfectly fine to leave your 1.3 if you like.
They only recommend uninstalling old versions if you are not going to use it so that the project template is removed from XCode. If you don't care about that you can leave the old version.
Just follow the upgrade steps from http://docs.phonegap.com/en/2.1.0/guide_upgrading_index.md.html#Upgrading%20Guides to start using 2.1 (which is now out and you should use)

Related

Can't upgrade to newer versions of Gradle in Android Studio, nor update AS itself

I'm working with Android Studio (Beta) 0.8.14.
I wanted to update the Gradle distribution and the Gradle plugin in my project, so I started manually changing the lines:
classpath 'com.android.tools.build:gradle:0.13.+' (in build.gradle)
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-all.zip (in gradle-wrapper.properties)
by upgrading to, respectively, 1.0.0 and 2.2.1. Then I tried to use different combinations found here on SO, e.g. 0.14.4 and 2.2, as none of these seemed to work. For each combination I got (after syncing and downloading what needed) some error, like:
AssertionError: null
AssertionError: com.android.tools.idea.gradle.project.AndroidGradleProjectComponent#71c8dfe3
UnsupportedMethodException
Unsupported method: SourceProvider.getJniDirectories().
The version of Gradle you connect to does not support that method.
After some research I thought this might be related to AS itself. Looking for updates in different channels brings me either to AS 0.9.9
This patch will allow you to update from 0.x to 1.x. After updating,
please check for updates again to install 1.x.
or to AS 1.0.2.
When trying to update, I get hundreds of errors related to Android Studio not deleting some files in android_SDK_folder/sources/android-21 , mainly.
This issue has some references here on SO. Known fixes are killing java processes during the update, which was unsuccessful for me, and launching Android Studio as admin, which doesn't look like a great idea to me (and I wouldn't know how to on OS X).
I'm stuck. My questions are:
are the Gradle syncing errors due to my old build of Android Studio?
if so, what can I do to update? I don't think I should uninstall and then get 1.0.2, as the message I reported says I can patch to 0.9.9 and then to 1.x. Is this the only thing to do?
Yes, your Gradle syncing errors are due to a mismatch between the plugin and the version of Android Studio. If you want to use v1.0.0 of the plugin, you need to be running Android Studio 1.0 or later.
As for upgrading, my advice would be to do a clean reinstall of 1.0; it will be easier than trying to spend a lot of time figuring out why the upgrade isn't working. I forget where the SDK is installed in 0.8.14, but we're encouraging/requiring users to have the SDK located outside the application directory itself, so it should help avoid future SDK woes with upgrading/reinstalling Android Studio itself.
If the SDK is currently installed inside Android Studio's directory and you don't want to re-download it, you could move it out to a more sensible place before reinstalling, and point the new installation at it.

How can I update monodevelop3.0.6 and retain mono3.0.3 in OSX?

Xamarin update reverts my mono version to 2.10.9. I don't want that as I need mono >= 3.0. F# projects will not load under mono 2.10.9. I explain more below. The issue is made more pointed as I would like to update monodevelop but not mono but I cannot choose which Xamarin updates to install. [I tried the update in the hope it would notice that my current version of mono is higher; but indeed it removed mono3.0.3 and f# 3.0 and my f# projects no longer load]
Am I missing something there? Is there a way of managing updates besides manual download and install as it seems autoupdate is broken for me? I've now reverted the update: is there a way of using my existing monodevelop, or is it necessary to reinstall it too (the same problem remains even after installing mono 3.0.3)?
My current setup appears to work:
Running mono 3.0.3 mre (beta) and monodevelop 3.0.6 on OSX Snow Leopard.
Why the dependence on mono 3.0.3? Because I need fsharpbinding for my projects and in the latest monodevelop that requires f# 3.0 and that (on osx at least) requires mono 3.0.3. I've looked at other so/sx questions but they relate to earlier versions of mono/develop.
The issue is made more pointed as I would like to update monodevelop but not mono but I cannot choose which Xamarin updates to install.
The Update dialog doesn't seem to allow you to choose a particular package to update. Regarding auto-removing Mono runtimes, it is a known bug which has been reported here.
Am I missing something there? Is there a way of managing updates besides manual download and install as it seems autoupdate is broken for me?
I usually do manual update: download the latest MonoDevelop and overwrite the old one in Applications folder. It needs a few clicks but is safer to do. I also do similarly for FSharpBinding: go to Add-in Manager --> F# Language Binding and click Update.
I've now reverted the update: is there a way of using my existing monodevelop, or is it necessary to reinstall it too (the same problem remains even after installing mono 3.0.3)?
Assume that autoupdate gives you a new MonoDevelop and erases Mono 3.0.3. After reinstalling Mono 3.0.3, you need to set Preferences --> .NET runtimes --> Mono 3.0.3 as default and possibly remove and install FSharpBinding again. You don't have to reinstall MonoDevelop once more.
That said, be cautious with autoupdate feature. Unless you are sure that all updates (Mono, MonoDevelop, FSharpBinding) are correct, don't do it.

F# fails to install on MonoDevelop 2.8 for Mac

I foolishly upgraded my MonoDevelop to 2.8 on my Mac, and the F# binding now fails to install from the http://functional-variations.net/addin repo - it needs v2.4 and MonoDevelop has moved to v2.6 of the Core and Ide. Does anyone know how I can get MonoDevelop 2.8 to play nicely with F#, or how I should roll back?
I tried to install FSharpBinding to MonoDevelop 2.8 or 2.6 and didn't succeed. The reason is that FSharpBinding is obsolete and incompatible with newest versions of MonoDevelop (see detailed discussions here). So first remove MonoDevelop 2.8 or 2.6 and their associated files, and install MonoDevelop 2.4.2.
You didn't mention versions of FSharp and Mono. Some old versions work fine with FSharpBinding from http://functional-variations.net/addin repo. However, when I tried to install Mono 2.10.x which includes F# compilers making it easier to set up F# development environment, FSharpBinding didn't work again. I followed the suggestion by above discussion and install FSharpBinding from source, and it's working ok. So the current configuration in my Mac is MonoDevelop 2.4.2, Mono 2.10.x/ FSharp 2.0 and FSharpBinding compiled from source.
You can find the detailed guideline here about how to install the whole F# development environment (including FSharpBinding) from source.
UPDATE:
FSharpBinding has been released for MonoDevelop 3.0. Install MonoDevelop 3.0 (which requires Mono 2.10.9 onwards) and you can install FSharpBinding via Add-In Manager.

Upgrading Xcode to 3.2.6

Hey I am upgrading to Xcode 3.2.6 now to test my app on 4.3 device as I will apply for the developer license tomorrow. Does the Xcode install itself over the old one or should I be worried about something?
You have nothing to worry about if you mean upgrade (not downgrade).
Xcode installs over itself, unless you choose a different install directory. Theres nothing to worry about, you can always do a complete uninstall and re-install a previous version (If you have it saved somewhere, I have the SDK's saved since iPhone SDK 3.0)

iOS4.2 and iOS4.1 on the same machine?

I'd like to start testing iOS4.2 so I downloaded xcode 3.2.5 and iOS4.2 beta SDK. Unfortunately, I think it installed over my previous xcode 3.2.4 and SDK 4.1. Short of downloading 3.2.4 and 4.1 and installing to another directory, is there a way to get the 4.1 SDK into 3.2.5 and compile both SDK versions?
Thanks!
Seems like with the release of iOS 4.2, Apple is going to want 4.2 to reign king. At least with Xcode 3.2.5 GM, the only SDK included is 4.2.
You can have two versions of Xcode installed though - when choosing what optional things you want to uninstall, uncheck everything and change the location Xcode installs to (it defaults to /Developer). I was able to get 3.2.5 (can compile against 4.2) and 3.2.4 (everything else) running and working on the same machine. This will allow you to have both the 4.2 and 4.1 SDKs on the same machine.
Good luck!

Resources