I have recently upgraded to XCode 4.5 and have been trying to release a new version of my app. I went to the itunes connect portal and prepared it for upload. I changed the version numbers in my bundle. Now I archive it, and validate it. No problems here.
The problem is when I try to distribute it I get this error
Before you rip this question appart, I have already tried these fixes here, here, and by using the application loader
I am out of ideas. I really need to get this update out and I have no idea why I am getting this error. If anyone else has had this problem, especially with xcode 4.5 (which seems to have started this problem in the first place) please let me know
Ok, so I finally solved my problem. It is Java related as many of the other answers suggest, however their solutions didn't work for me. I got some help from this Apple Forum
That solution still did not work for me though, so I did a slight workaround by just moving the virtual machine file. You could always move it back when you're done.
sudo mv -f /Library/Java/JavaVirtualMachines/1.7*jdk ~
You can confirm that this worked by checking the current java version
java -version
Which should give you 1.6.x. This should fix the problem. Also note I still used Application Loader 2.7 to do this (Although I bet it would have worked either way).
How long have you had this problem for?
In this case, it's probably due to iTunes Connect scheduled maintenance.
Related
I am currently working on an iPhone app using Xcode 11.3.1 (Swift 5) running on a Catalina virtual machine. Periodically, when I build I will get errors that Xcode can't find modules that it had no trouble finding a few minutes ago. If I close the workspace and re-open, Xcode says it's indexing. Most of the time this fixes the problem. Sometimes I have close/re-open more than once.
The modules that I've had trouble with are GoogleSignIn and iOSDropDown. I also have Firebase installed, but so far I haven't seen the error from that one.
I have deleted derived data, and deintegrated/reinstalled my cocoapods. Since I closed the workspace to do both of those the problem was fixed temporarily, but returned.
Doing a clean build (shift-cmd-K) does not fix the problem.
Does anyone know how to prevent this from happening or at least how I can force a re-index (assuming that's what fixes things temporarily) without closing the workspace?
Thanks for any help.
Maybe try: go to your podfile, then there's a line use_frameworks! make that a comment I assume this would solve your issue.
I have a source code of a swift application which developed for iOS using swift 3.
I want to run it inside Xcode however it remains in loading state forever.
I have tried solutions provided in question Xcode freezes on startup while loading project however the situation did not change.
The developer of this source code told me that he used Xcode 9.x to develop application so he suggested me to try a 9.x version of Xcode. I guess Xcode should be backward compatible however I want to know does using Xcode 9.x changes the situation or I should look for reason somewhere else?
Using answer in apple.stackexchange.com did the trick:
Removing the ~/Library/Saved Application
State/com.apple.dt.Xcode.savedState/directory might help.
I tried all the solutions outlined here and none of them worked. However, I managed to fix this issue and here is what worked for me: If you're on an Apple OS and have iCloud sync enabled on your desktop/documents/any folder where you're loading Xcode from, the iCloud sync could be causing this issue.
I installed a fresh copy of my RN project in a directory not synced by iCloud and subsequently the issue was resolved; my build-time was down to a couple of seconds!
rm -rf ~/Library/Developer/xcode
in terminal worked for me, based on this answer
As of July, 2022, nothing else worked for me but, taking my project outside of the iCloud Drive and putting it into a directory without it. As it is mentioned above, iCloud sync interferes with the XCode running and stalls it.
I wasted almost 2 hrs and tried everything on stack over flow
SIMPLE SOLUTION
Just turn OFF icloud from your mac os so that it it will not sync the project.
To turn off icloud
Go to setting
Icloud
turn off sync
Thats all enjoy
I tried to delete:
~/Library/Developer/Caches/com.apple.dt.Xcode
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Saved Application State/com.apple.dt.Xcode.savedState
~/workspace/MyProject.xcodeproj/project.xcworkspace/xcuserdata
and once it helped. But another time it didn't help, so I also tried to reinstall Xcode, which also didn't help.
It turned out that the problem was that I was installing the app via WiFi or Bluetooth. When I connected my device via cable, the Xcode popped up to life and the "loading forever" stopped.
My xcode got hang when I force quit it. After that it was showing only "loading".
Here is fix to start xcode from beginning.
cd /
cd Applications
cd Xcode.app
cd Contents/MacOS
sudo ./Xcode
it will open xcode default window to open a new project.
I've been receiving this warning since I loaded my project in last Xcode 4 preview. There was no warning before that but now I can't get rid of it even in Xcode 3.2. I've been googling but nobody seems to have the same error.
My project and target settings are correct (IMHO): Architectures: Standard (armv6 armv7), Base SDK: Latest iOS (currently set to iOS 4.2), Build Active Architecture Only: FALSE, Valid Architectures: armv6 armv7.
I compared every project setting with other projects and and found no differences. I even have recreated the project starting from scratch and copying classes, resources and frameworks with the same result.
I must say that the warning is not shown when I set Debug configuration.
I hope someone can help me because I don't know what to do. Thanks in advice.
I kept getting this error and it was driving me crazy. Then I realized I was building the project for Simulator instead of Device. Once I made the change, I was able to upload the app without a problem.
Several things spring to mind. Firstly that there is some file lurking around in the build directory. But I presume you have deleted the build directory. Secondly, that there is something lurking in your library directories. I think xcode puts some tempt files down in them now. Thirdly that something has gone funny is the core xcode setup.
So here's what I would try (the emphasis here is "try" - I don't know if any of this will work :-)
Make sure you have deleted the build directory.
Do a full un-installation of code. Clear out any developer directories and then re-install.
SOLVED!. Not a good solution though.
After a thousand tests I uninstalled Xcode 3.2.5 and installed 3.2.4. Everything went ok since then. Now I'm afraid of upgrade to last version again. :/
I am keep getting this error while uploading..I have no idea what this error are and how to resolve them...my build was successful(there are some warnings) my application is tested on iOS 4.1...any help is highly appreciated.
Thanks
It appears that Apple's servers may be having issues this weekend. I got a similar error. You should check iTunesConnect to see if the binary was uploaded, and perhaps send email to ITC support confirming.
I had this issue as well and was able to get around it by using Fink.
Basically, the issue was that Application Loader.app was expecting to find servlet.jar in my classpath & by not finding it, was throwing a Java error. I tried with both the iOS 4.1 version of Xcode & Application Loader.app and the iOS 4.2 versions.
Solution:
Download fink & install.
fire up Terminal.app
fink install jakarta-servletapi
quit Terminal.app & relaunch it (it should automatically update your shell)
cd /Developer/Applications/Utilities/Application Loader.app/Contents/MacOS/ (assuming you have installed the dev tools to the standard location)
./Application\ Loader
smile
This is what worked for me, hope it helps? You can probably achieve the same thing using other tools (such as DarwinPorts?), but I have chosen Fink given that's what I first picked years ago... :)
The local installation of XCode seems to be broken. Uploading the file from an other system does not show any problems.
I try to reinstall XCode and hope that fixes my problem.
I'm working on an iPhone project in which the developer that created it has left the company. The Boss asked me to ensure it compiles on the 3.1 iPhone SDK.
After installing, it built and ran fine just once on the device.
After that, it still builds okay, but if I try to run it on the device, it halts saying
Error from Debugger: Error launching remote program: Security policy Error
It won't play in the simulator either, except this time it just says "Debugging Terminated"
Does anybody have any ideas about what might be causing this?
The problem ended up being that there was a provisioning profile (from a completely different project) that had expired. I don't know why having this unrelated profile expire would cause this problem.
Deleting the expired profile from the iPhone fixed the problem.
I have written down a tutorial to solve this:
http://www.drooljunkie.com/code-uncode/beginning-iphone-app-dev-issues-part-2-running-app-on-the-device-issues/
in my case I removed those with the same name ...