XCode 4.1 with lion - ios

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.

Related

Xcode 7 or 8 issue with Pods, can't run at all

Getting this error for pods in Xcode when trying to run app:
error: A cryptographic verification failure has occurred.
Tried reinstalling Pods/repo
Reinstalling Xcode(s)
Also doesn't run on simulators:
Also, running Sierra at the moment (yes, I know).
This is a regression in macOS Sierra that multiple developers have reported in the forums and in the lab sessions at WWDC. Xcode 7.3 is not officially supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.
If you must use Xcode 7.3 on Sierra, you can partially workaround this bug by using Xcode.app to install the app through Build & Run, launch the app suspended from the command line (xcrun simctl launch -w booted <app identifier>) and then attach with the debugger and resume the suspended process.
Note that this issue only impact Xcode 7.3.1 downloaded from the Mac App Store. You will not hit this issue if you use Xcode downloaded from http://developer.apple.com (ie, the "drag & drop installer"). Note that you might hit another issue with the same symptoms when using the drag & drop installer. That is discussed in DTAssetProviderService could not start DTXConnection with Simulator
I got mine working now!! Not really sure what I did, at all, but I just deleted the Xcode 8 .app entirely and then I redownloaded it, opened up my project in it, did a pod install and pod update, and it's running in the simulator just like normal! Not sure what I did at all, but redownloading is worth a try, it is in fact possible to fix.
If you have reinstalled CocoaPods so that it updated from a version that is lower than 1.0.0 to 1.0.0 or above it can't hurt to delete your DerivedData folder of the project that is having problems. I don't know why it fixes a lot of bugs when above scenario is the case, but it does! You can do this by going to: Window -> Projects
Then select your project on the left (It was my "Piece" project for me)
Then click the delete button
Hope this helps you out!
Launch "Keychain Access", go to "Preferences..." and click "Reset My Default Keychain". After that I was finally able to build my projects.

Uploading app to iTunes Store,Error in Mavericks OSX 10.9.3 ,Xcode 5.1.1 [duplicate]

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!

Xcode 5.0 quit unexpetedly while using the automator plug-in

i open my project on xcode 5 but everytime it crashes, i am to much worried about that behaviour of xcode. it give me error "Xcode 5.0 quit unexpetedly while using the automator plug-in" kindly help me to find solution of this error. i did completely remove xcode and after that install again but it give same error when i open my project.
I uninstalled Xcode completely and then reinstalled it. To uninstall developer tools/Xcode type in the following command in the terminal.
sudo /Developer/Library/uninstall-devtools –mode=all
You can try some hints:
1)Download from App store after uninstall
2)upgrade Mac OSx
3)install the simulators path >Xcode menu>preferences>downloads>components
i resolved it by myself, just reinstall mavericks again it solve my problem at last.

Xcode4.2 : an error occurred uploading to the itunes store

Hey in trying to submit my app to iTunes. It passes the validation, but when i submit it's showing an error:
an error occurred uploading to the iTunes store
I have tried all possible solutions that I found during searching about this problem for almost one day .
I tried these lines without any success
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
I use xcode 4.2 and snow leopard Mac OS .
Just use the newest Application Loader to submit apps. For Snow Leopard Mac OS, you can download Application Loader 2.5 from here to see what the problem really is. If nothing else is wrong, you may get this error:
This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK, xcode.
I am also working on submitting apps with Xcode 4.2, because my macbook is too old to upgrade to Lion and to install Xcode 4.6. It seems that Xcode 4.2 is too old to be supported and the best solution is to install Xcode 4.6.
This error says that there is something wrong with the upload process. I don't believe you can fix it without getting in touch with Apple.
I've had this error once (already some months ago). It was caused by a server side issue by Apple at that day, but today the Apple servers are working without any issues (tried with Xcode 4.6).

Will upgrading to OSX Lion affect my current rails environment?

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.

Resources