Xcode archive failed to upload - xcode8

Hey guys I have been getting this error on Xcode ALL DAY long today! I don't know how to fix it. I'm on Xcode 8.
"This action could not be completed. Try again (-22421)"

Try again later. It's a bug from Apple's side.

Related

Xcode 8 Archive Error with Apple

I have a project I updated using Xcode 8 and Swift 3. It runs fine and I'm ready to submit to Apple. I complete the Archive process and then click 'Validate' in Organizer. After a while it gave me the following error, twice:
I tried to search online for this error and can't find anything. Why am I getting this error? I've agreed to all the Terms and Conditions set by Apple in the iTunes Connect side of things. All of my certificates and Profiles are Active too. Is Apple just having issues right now? I've seen others get around this issue with using the Application Uploader.
It's not a fix but I did as others suggested in the past and uploaded the .ipa file to Apple using the Application Loader that is in Xcode already. Worked and received confirmation it reached Apple.

Why am I getting ab ITMS-4238 "Redundant Binary Upload" error when submitting to the App Store?

I'm on Xcode 6, and I'm trying to submit an iOS (target: iOS 8) app to the App Store, and I'm getting an ITMS-4238 error. It says there is already the same build already, but I've never successfully submitted this app so far. So there is no submitted build in iTunes Connect, so I don't know why I'm getting this.
What I'm doing is following:
Create an Archive
Submit binary from Organizer
I also tried to submit with ApplicationLoader but the result was same.
This is the error I'm getting:
Archive submission failed with errors:
Archive submission failed due to the issues listed below:
ERROR ITMS-4238: "Redundant Binary Upload. There already exists a binary upload with build version '1.0' for train '1.0'" at SoftwareAssets/PreReleaseSoftwareAsset
Here's a screenshot of the error:
Any ideas how to fix this?
Progress:
I solved my problem by myself.
I increased my build number from 1.0 to 1.0.2.1 .
I don't know why iTunes Connect thinks there is already binary version 1.0.
Try to increase the build number and submit the app. The version number can remain same. It worked for me :-)
You can also use ApplicationLoader. That worked for me.
In the info.plist in Xcode set your app version to the correct version in iTunes Connect. This worked for me to help update my app's version.

iPhone Simulator Error: SpringBoard failed to launch application with error: -3 or 4 etc

I face this problem each time i stop and run the app again. I googled and found a lot of answers, e.g. this solution but only fix the problem temporarily, I wish there was a way to fix it permanently.
Thanx in advance.
Solution: I think the problem was related to Xcode version specific as now I am using Xcode 6 and now the issue no longer exist.
select your simulator
choose:iosimulator->Reset Content and Settings.
or else
ctrl+shift+H , double tap the H and close all the application that runs.
ctrl is an windows key in mac
same problem for me too.
by Quitting simulator and again running the project in Xcode solved this issue for me..
I know there are already some answers. But, for me, I just made sure to resolve the warnings. I had not set the identifier for a segue. Hope this helps someone.
I have met the same issue after I installed the newest macOS version and the iOS simulator on Xcode fired me.
I have tried the solutions above for myself and the solutions are given on this page: Xcode 6.4/7 crashing after El Capitan beta .But they did not work for me.
My final solution was to uninstall the current one and installed new Xcode version. It worked for me.

Can't run app in simulator :: XCODE 5

May because its DP and they will fix it, but for time being anyone have an idea how to solve this issue?
For me only reboot is solving the issue. I could have done this but its becoming very frequent.
It works fine when running in device. Any help appreciated.Thanks.
As Michael D suggested, I got an instant answer from Dev forum.
Here is the answer:
Delete the app from simulator or reset the simulator.
Later I got Similar issue in iPhone too. Deleting the app from iPhone will solve that issue also.
This works.
it's a bug of xcode5 preview 1, if you modified xib with xcode5, it will result app failed install in simulator.you can revert xib changes and run again.

Xcode crashes when refreshing provisioning profiles

Last week I posted a question here where I explained why my Xcode is crashing when I press the refresh button. This question however got closed for being off topic but I dont really get why. (Stackoverflow should provide more information on this subject)
But I still got this problem and I cant get my app running with push notification because I think I'm using old provisioning profiles and I CANT refresh them without Xcode crashing!
I've created multiple apps with push notifications so I know the procedure but keep getting the error:
did Fail To Register For Remote Notifications With Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x2340a0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
Does anybody know why my Xcode is crashing and how I can fix this?
Thanks.
And please post a comment if you're thinking of closing this question so I know why this question is closed.
Ravi is right. Here's Apple's official workaround:
Run /Applications/Utilities/Terminal.app and execute the following statement:
mkdir ~/Library/Developer/Xcode/OldPortalDBs; mv ~/Library/Developer/Xcode/connect1.apple.com* ~/Library/Developer/Xcode/OldPortalDBs
See: Xcode 4.6.1 crashing while interacting with the developer portal
It works for me if I removed this file "~/Library/Developer/Xcode/connect1.apple.com 4.6.1.db" before running XCode 4.6.1.
After some restarts and project cleans (and manually download!) it suddenly worked with push notifications. Xcode still crashes on refreshing and bug is reported.