I'm thinking of upgrading to OSX Lion. The only thing is, I don't want to lose my current rails environment and setup so I am wondering if upgrading to Lion is going to give me any problems? Has anyone else experienced any problems with the upgrade to their dev environment (i.e. databases, rvm, paths etc).
Thanks
Most people I know had some minor issues, but in the end thinks tend to work out. Some reading:
Upgrading to Lion
Repairing Postgresql after upgrading to OSX 10.7 Lion
RSpec stopped working after upgrading to OSX Lion
To sum it up, yes you'll likely have issues, but there shouldn't be any show stoppers. Just set aside a couple of hours and fix everything in one go.
I installed lion and a number of things were giving me fits. (Couldn't find things like ruby.h, bundle install fails, etc)
Next I downloaded Xcode 4.1 (free with Lion) and the app store claimed it was installed.
At a shell prompt I ran "xcodebuild -version" and got a command not found. Clearly Xcode was not installed.
So I used spotlight (shortcut - command space bar) to search the mac for "Xcode install" and ran that to install Xcode 4.1
"xcodebuild -version" now worked and so far all other issues are resolved.
Related
I am having a problem with installing Netbeans 8.2 on my new MacBook Pro 13 (M1). I already have Netbeans 8.2 installed on my PC desktop, but I can't install it on my Mac. It's isn't my first time that I installed it on a pc, but this time I really don't know how to install it. First thing what I did was to download the JDK 8 file to my Mac and installed it (https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html), after that I dowloaded Netbeans 8.2 (version "All", https://netbeans.org/downloads/old/8.2/) and installed it. But now comes my problem, when begin installing it, a pop-up pops up (No Java found, NetBeans IDE cannot be installed. This software can be installed with Java 8 or newer. Please download and install the latest update of Java 8 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation.) So now I am stuck. I have looked everywhere on the internet to find the problem solve it but found nothing. I would love to get some help with my problem. Thank you./(PS. I am new in the world of Mac-os. I have tried some advise's from stack overflow to get working with the terminal, but no success.)
I have solved it! I first needed to download "Homebrew" on my Mac and after that I downloaded Netbeans 8.2 in the terminal with this "brew install --cask netbeans-java-se" after that I needed to edit the my path and now it works fine.
go to terminal then paste this command. 'brew install --cask netbeans'
We Really need some help on this one:
We've Struggled with all the Apple Mumbo-Jumbo for the Last two months and can't seem to get our APP on the APPStore...
Right now my problem is after Validating the ARCHIVE compilation and sharing it.. in the Submit Process I Get -
"An error occurred uploading to the iTunes Store"
I Really don't Know what I'm doing wrong and don't seem to find ANYTHING on the Internet that solves the problem...
I've been stugling with this for over a week now... I've tried:
Creating a new Distribution Profile for Code Signing.
Checking All the Target Settings over and over.
Changing the FTP mode from Passive to non-Passive
Connecting from different networks
Reinstalling Xcode4
some other Work Arounds like Downloading the application Loader (Haven't installed it yet, but I Don't Know if I Should)
Please help us, what do you think could be the problem?
Thanks
Hernan
If you are unable to upload Apps to Apple and installed the JavaOSX update (April 3, 2012) this may help you regain your ability to upload Apps:
You can work around this issue by re-creating the old Java 1.5 symlinks:
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
Edit Oct 5, 2012 Oracle's Java 7
Elaborating on Hackmonford's comment below.
This exact error message also occurs with Oracle's Java SE 7 1.7.0_10 package installed. To resolve, open "Java Preferences" and either change the order to have Apple's Java SE 6 first, or untick Oracle's Java 7 while submitting to the app store. Verify your change by opening the Terminal:
prince$ java -version
java version "1.6.0_35"
I was having this problem this week, and installed the Java for OS X Lion 2012-002 update, and the problem cleared up. Resetting disk permissions had no effect.
This just happened again.
For OSX 10.8.2 users (does not have Java preference), the only way to fix this is to uninstall oracle jdk.
cd /Library/Java/JavaVirtualMachines
sudo rm -rf jdk1.7.0_09.jdk/
I had also a JavaVM / JRE issue. I have installed the JDK 7 preview from Oracle and that mixed up the upload process which told me the known "An error occurred uploading to the iTunes Store".
A quick check of /var/log/system.log (e.g. using tail in a terminal: tail -n 100 /var/log/system.log) brought up the following error message:
Java 1.5, 1.6, or 1.7 is required. Currently, java is the default java version. Please upgrade.
I had installed the MacOS Preview of JDK 7 directly from Oracle. To fix this issue, simply launch the Java Settings app in Utilities and uncheck JDK 7 from Oracle. Of course you should have an alternate JRE from Apple. See the screenshot how my configuration looks. The upload works for me now.
The odd thing is that the Oracle JDK isn't recognized as Java 1.7 by Apple. This seems like a bug.
UPDATE:
The GUI tool was removed from MacOS. Now, the only solution I know of is to remove the JDK 1.7 folder manually. See the JDK 7 docs how to do this:
Navigate to /Library/Java/JavaVirtualMachines and remove the directory whose name matches the following format:
/Library/Java/JavaVirtualMachines/jdk<major>.<minor>.<macro[_update]>.jdk
For example, to uninstall 7u6:
% rm -rf jdk1.7.0_06.jdk
A bit late, I know - but for anyone still having this problem - Look in your /var/log/system.log log file. In my case the problem was that the iTMSTransporter script (used by the Organizer when uploading the file) used 'awk', and I had to replace it with '/usr/bin/awk'.
Completely solved my problem.
Y.
Just in case this is useful for anyone else - for me it was that the Java JRE was not up-to-date. I checked the console and Application Loader was complaining
I had this problem today after installing latest XCode.
I fixed it by running software update and installing latest Java Update.
I tried the same thing as Hernan, but even with application loader 1.3 I wasn't able to upload.
I noticed that this has happened after installing OSx Lion and upgrading XCode to 4.1!
I followed Joe's tip and I found out that JAVA wasn't even installed.
Follow this blog entry:
Unable to Upload App to App Store
My mbp now run Xcode4.2(4D199) on Lion, I installed the latest java for Lion. And finally I sovled this issue.
Many guys said, he can used the old Application Loader app to upload the apps. so I guess the problem is the latest Application Loader app(2.4.1 (190)), and the fact told me I am right
Okie, in short words:
Here is the solution:
1.I hope you guys do not delete the old Xcode(4.1). We Should pick up the old version Application Loader app.
cd <Install Xcode app>/Contents/Resources/Packages
cp ApplicationLoader.pkg ~/Desktop/
Now, you get the ApplicationLoader package.
2.Install the old one.
Tips: you can remove the latest Application Loader app in path: /Developer/Applications/Utilities/ or just remane it.
That's All.
Hope this way can help you and enjoy the new Xcode4.2. Also hope apple developer can saw this problem and test the latest Application Loader app more.
No Problems submitting to AppStore on April 1st. Issue occured on April 9th. Installing the Java for OS X Lion 2012-002 update via Mac-OS software updater and rebooting the machine fixed it.
Just update to the latest JAVA at your Mac Software Update.
Here is the steps to resolve this issue:
To start with I had installed Oracles Java 1.7 JDK, which was really messing things up.
Went to Finder>Applications and entered in Search box - JavaAppletPlugin.plugin
Right clicked and removed to trash.
A check in Terminal for Java version still showed Java 1.7
my-imac:~ my$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
1. Finder>Library>Java>JavaVirtualMachines showed the 1.7 SDK (make note of exact name of the Directory name)
Just in case anything went wrong I copied the 1.7 SDK folder to my desktop before doing the next item
2. In terminal type
cd /Library/Java/JavaVirtualMachines
3. You should now be in that directory
sudo rm -rf jdk1.7.0_06.jdk (or whatever the exact name of the directory is in step 1.)
You may have to enter your administrator password
The directory should now be deleted and you can verify in Terminal by
java -version
Mine now showed "Java 1.6_xxx"
Went into Xcode Organizer and distributed my app to the iTunes store without a problem. Whoo,hoo!
I develop Rails apps using RVM (ruby version manager).
I had to download XCode, in the app store I got only version 4.2.
Now RVM says that it can't build rubies properly with this XCode, so I followed this tutorial:
http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/
I downloaded the XCode version from the link that is shown when you type rvm requirements in the console. (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg)
Now, there is a 3.09 GB .dmg with an installXCodeLion package, and it installs successfully, but after there is no XCode or whatsoever on my system. (I stopped also the iTunesHelper process... )
Anybody knows how to install XCode 4.1 ? Or where to officially get it from Apple?
Or anybody uses RVM and ruby 1.9.2 w/ Rail 3.1 successfully on Lion?
Uninstall 4.2 with
/Library/Developer/4.2/uninstall-devtools --mode=all
Then XCode 4.1 Download is here
thanks a lot
it is helpful
first:
Uninstall 4.2 with
/Library/Developer/4.2/uninstall-devtools --mode=all
secondly:
download xcode4.1 installed dmg file
run dmg file to install Xcode
be sure there is no "install Xcode" file in your "/application" directory
after running dmg file , one new "install Xcode" file will be created in "application" directory.
finally:
run install Xcode to finish installation
Dont you have an "Install Xcode" application on your Applications folder ? I had to run it to complete the installation after executing the package from the xcode_4.1_for_lion.dmg
I'll save you any additional trouble: Your rvm installation is out of date.
Reinstall Xcode 4.2, grab the latest rvm, and get back to your work with no fuss and no hoop-jumping.
To retrieve Xcode 4.1, you have to log in to the Mac Dev Center and go to Additional Downloads. You will find all the installation disk images for all the Xcode versions.
Guillaume Petit is correct - delete Install Xcode from the APplications folder first (the 4.2 version from the App Store).
Run the xcode_4.1_for_lion.dmg again and it will create a new Install Xcode in Applications (which is the 4.1 version). Run that and Developer Tools will be installed as expected.
Im not sure if anyone is aware, but I read in another post that you have to use clang option to install rubies. example:
rvm install 1.9.2 --with-gcc=clang
The developer tools install in the "Developer" folder on your system disk.
(not in the "Applications" folder!)
The old XCode releases can indeed be found on the Mac Dev Center download site.
This question is not a dupe of, but is very similar to, this question which has an accepted answer: Xcode says I have 4.2 installed, but only 4.1 opens.
On my Mac's App Centre, it says Xcode is 'Installed' (and no option to uninstall or upgrade), but my current install of Xcode is actually 4.1 (with iOS 4.3 SDK). Following the advice of others, I've tried running Install Xcode.app from the Applications folder. This launches an installer that says "Installing Xcode 4" (note it doesn't give any minor version info like 4.1 or 4.2) -- it downloads and installs something. After installation, I still have Xcode 4.1 installed.
I've tried many reboots and also tried running the old uninstall-devtools script before running Install Xcode.app again, and no difference.
My machine is a Mid-2011 Mac Mini and it has no pending software updates available via Apple Menu -> Software Update...
Ok, here's what worked for me:
I deleted Install Xcode.app from Applications, and then ran the following script:
/Library/Developer/Shared/uninstall-devtools
This is in a different location to before and I didn't spot it :/
Then run Mac App Store, search for Xcode, you should find there is now the option to install it.
I recently updated my Snow Leopard to Lion and today, I went to open XCode and it gave me an error saying that the XCode I had wasn't compatible with Lion, or something like that.
Did some research, and ended up installing XCode 4.1 from the Mac App Store.
Well, that was about 3 hours ago, and I'm installing and it says "Updating Files" and the loading bar is almost to the very end of the line. It's been this way for about an hour. Should I quit and restart? Should I just wait? Why is it taking so painstakingly long?
The problem I had was that there was still an iTunes process running.
I could solve this by stopping the 'iTunes helper' process.
After stopping that process the installation of XCode continued and installed quickly.
I had the same problem as #Mark, but I still had to force quit the installer, and try again. The second time through it installed fine.