ITunesConnect rejecting build even though I'm on normal Xcode version - ios

I'm getting the following error and don't understand why I am getting it. I'm running Xcode 7.2.1 which is the normal released version and was able to upload builds earlier this week with this same Xcode version so this error makes no sense. Has anyone else encountered it or figured a way to get rid of it? I've tried the following:
Restarted Xcode
Deleted Derived Data
Restarted Computer
Ran Build Clean
Ran Build Folder Clean
Incremented versions on the build.
Any other ideas on how to fix this?

I've figured out what was wrong with it, and it is definitely my fault. As stated in the error message:
Don't submit apps with Beta software including OS X builds
Xcode was on the correct version but my OSX had auto updated the night prior to this appearing, and put my entire system on a beta. There is no easy way to revert if you didn't do a time-machine save prior to updating (mine happened automatically, so I definitely didn't). Now I'm stuck building on my back-up mac until Apple releases 10.21.4 publicly.
Thanks for the help, lesson learned. Don't register for any beta software unless you have Time Machine setup to automatically backup your machine.
UPDATE
Reinstalling your OS when you are on BETA is actually quite easy.
Go to the Mac App Store
Search for "OS X El Capitan" or whatever OS you need
Hit the Download button
Now you can reinstall your OS. Stupid easy.

Related

How to install previous version of an ios app?

I've developed an ios app, but now I got some crash reports which says that the app is crashing only when updated from a previous version and it goes away when uninstalling and then reinstalling that app altogether.
So I decided to reproduce the crash by going back to the older version doing some stuff and then updating it back to the latest build.
The thing is reverting back to an old commit for a switching back to the older version of the app is causing quite a lot of issues and errors which I'm unable to resolve as of now. So is there any way besides this to install the older version of the app.
I'm using Xcode 8 and Swift 4, while the previous version was built on Swift 2.3 and an older Xcode, my Testflight app only has the latest builds while there is nothing backed up on iTunes too.
The thing is reverting back to an old commit for a switching back to the older version of the app is causing quite a lot of issues and errors which I'm unable to resolve as of now
Ah, but that's not how to do it. What you want to do is not recompile the old version from source; you want the already compiled old version as an actual app. That is exactly what the archive is for! The reason we keep archives is so as to have the exact same already compiled code that has been distributed thru the store.
So just go to the Organizer window, find your old archive, and export it as an Ad Hoc build. Now you can install that on your device through the Devices window, play around with it, and then install the new version on top of it and run that and (one hopes) reproduce the problem.
A crash like this is almost always caused by data that is no longer compatible from the first version of the app.
If you don't have access to the compiled binary and don't have a way to re-install it, then your best bet is to install an old version of Xcode to install the old version of the app, and then use the new version of Xcode to install the new version of the app over it.
You may run into issues with the old version of Xcode not supporting your newer iOS version on your device. In that case, use the old version of Xcode to install the app to the simulator. Then in Xcode you open Window -> Devices and Simulators. You can download the sandbox folder for your app from the device and then copy over the exact files to a device with the new version of the app. Then when you run the new app you should be able to reproduce the issue.

Can I delete entire developer folder under Library

I need to update my Xcode 8.2 to Xcode 9. I upgraded my OS to macOs High Sierra 10.13. Then I went to Mac App Store and tried downloading it and the update button keeps spinning for infinity. I searched google and stackoverflow and apparently this is a known bug going back ages. One of the solution suggested that I should delete Xcode application and then try the download/update button again in App Store.
See Here Unable to update to Xcode 8.3
So, if I am going to completely remove Xcode application from my computer then I was thinking I should cleanup my comp and remove unnecessary Xcode files that I don't need and they will be recreated upon a new install. These are huge folders and looks like related to my Xcode development activities. Can I safely delete them?
Can I delete the entire ~\library\Developer folder?
To answer my own question YES its completely safe to delete ~/Library/Developer folder if you plan to completely remove your existing Xcode and install a new version. Actually its highly recommended you do so. Everything worked and all projects compile.
The newly created one was only 772MB. Come on Apple! What a waste of space that was.
MacBookPro2012:Library$ du -sh Developer
722M Developer

Xcode 8 no longer builds to device

I'm currently running Xcode 8.1 beta and have a stable release of Xcode 8 installed as well.Out of nowhere, without modifying any code inside the project, I am unable to build my project and run on a device.iOS version is 10.1 beta but the issue was not present when originally working with this version. Xcode 8 and 8.1 are experiencing the same issue and I previously did not have a problem running the project on a physical device.The provisioning profiles were up to date and I created new ones throughout the troubleshooting process.I have also gone through the basic troubleshooting options (restart the machine, restart the device, cleaned project, tried different lightning cable/USB port, reinstalled Xcode, and deleted Xcode preference files).The project builds and runs very quickly to the simulator and when attempting to run on the device I received no errors.When trying to run on a device, the build goes through the first tenth of the process and just sits there until I cancel it. I've even created new test projects to test against a known good and the issue persists.If anyone has experienced, a similar issue your insight would be greatly appreciated.
I was facing the same issue but installed latest Xcode 8.1 and issue got resolved
When you have multiple versions of Xcode installed the command line tools loses track of which Xcode to run. Make sure that this is set. Having multiple versions has always been troublesome for me.
The issue ended up being with a large number of dictionaries. The compiler was attempting to go through a rather large number of dictionaries and was unable to complete. I restructured my data model and the issue was resolved.

Invalid Toolchain message even though app not submitted with beta software

I am trying to submit a project to the app store. I accidently opened it in the latest Xcode Beta - but did not save or change anything.
I submitted the app with Xcode 7.3.1 and when I attempt to submit the app for review I get the message: "New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK. Don't submit apps built with beta software including beta macOS builds."
If I check the Info.plist of the archive it also mentions me using the public version of Xcode
<key>DefaultToolchainInfo</key>
<dict>
<key>DisplayName</key>
<string>Xcode 7.3.1 Default</string>
<key>Identifier</key>
<string>com.apple.dt.toolchain.XcodeDefault</string>
</dict>
The Xcode beta version was not open when submitting and I also tried restarting and then resubmitting. Btw I am running El Cap 10.11.6
What can I do to fix this?
Thanks
Did you install yesterday's Security Update? I have a theory, that this update altered the internal version number from 10.11.6 (15G31) to 10.11.6 (15G1004), and they have not added this version number to the list of allowed stable OS builds on iTunes Connect.
Fairly certain it's the Security Update.
I tried the known hack of altering the OS build to 15G31 in SystemVersion.plist, but this no longer seems to work.
Reinstalling Xcode 7.3.1 was also a waste of time.
Luckily I had a machine that I had not yet done Security Update 2016-001 on. Moved the code over there, archived and uploaded, and this went fine.
I got same issue and the issue just got fixed - I have submitted my app for review successfully 5 minutes ago!
It was because iTunes team did not synchronise with latest macOS version security update yet and they finished synchronisation just now!
Please go ahead and try re-submitting your app!
I am seeing this also, there was a recent security update to El Cap that might be related, or Apple is in the process of making changes for iOS10 Xcode 8 and have messed up something.
If you need to submit, I would go ahead and submit and if you get a rejection, explain it to Apple then.
I have uploaded my iOS binary installing El Capitan on a virtual machine, disabling system updates, installing Xcode, importing my developer profile, and building my App there.
I just spent like 2-3 hours downloading the base El Capitan (10.11.6) from the App Store and setting up VMware Fusion to build our project in... including manually regenerating and switching all of the certificates and provisioning profiles twice (to there and back to the host machine).
I can conclude that this does solve the issue because the App Store El Capitan installer does not (yet) include the Security Update, which bumps the macOS build number to one that is NOT whitelisted on iTunes Connect, as some have suggested.
Super frustrating, but at least a solution is available for now. 😖
Check out the Xcode Release Notes and see if your version of Xcode has: "Support for app archives depreciated", like mine did.

Trouble downloading XCode 6.2 on Mac OS X Mavericks (10.9.5.) and Yosemite (10.10.2)

I can not download Xcode 6.2. I tried upgrading it and it doesn't work. I have successfully downloaded 6.2. beta 5 but can't download the full version.
I am using Chrome and safari. I had multiple network errors , connection breaks and it this isn't my problem. The problem is that the download comes to 2.6/2.6 and does not finalize it. The file is still named "Xcode_6.2.dmg.crdownload". I tried:
renaming the file To Xcode.6.2.dmg
to Xcode6.dmg (with one dot)
open package content and run XCode6.2.dmg
and I alsways get the following error:
"The following disk images couldn't be opened"
"Xcode6.dmg" Reason = image not recognized.
Some times the downloaded file which said to be finished had only 726 MB disk size, even the browser AND Finder said it had 2.6/2.6Gb (I found this out by "Get Info" for the download file).
I also followed this so :
How to download Xcode DMG or XIP file?
and this:
Trouble downloading XCode 6.1 on Mac OS X Yosemite
None helped. I also tried:
downloading via wget
resuming via wget
download from a different internet connection/IP
from different machines: Mac mini 2009, 2013, Mac Pro 2012
from different OS versions Mac Mavericks and Yosemite
from different accounts: iOS Developer and iOS Enterprise Developer
from different download links
from different browsers: Safari, Chrome
updating Xcode 6.1.1 to Xcode 6.2.
few more so answers which I don't have here
Here is my terminal output:
Mac-mini:~ W_MB$ sudo find / -name *XCode*
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component/Contents/MacOS/IMXCodec
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component/Contents/Resources/IMXCodec.rsrc
/Applications/Xcode.app/Contents/OtherFrameworks/DevToolsInterface.framework/Versions/A/Resources/English.lproj/PBXCodeAssistant.nib
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
I am beggining to run out of ideas what to try next and how to solve the problem. I also wonder if it is a problem on the apple-server-side.
I need to finish my project in 2-3 weeks and I am having real problems with this XCode update. Any ideas or solutions are welcome, I will try them.
UPDATE (17.04.2015.):
I have successfully downloaded Xcode 6.3 but only after several downloads. I had once the same error like before. The download did go to 100/100% but didn't finish and I had once a "package corrupt" error. I also downloaded Xcode 6.3 onto my late 2009 mac mini (Mavericks) and had the corrupt package error while on my mac mini 2012 (Yosemite) the same .dmg file worked...
Regarding your network errors: I think if multiple machines have the same problem then you should go somewhere else, like to libraries with free wifi to see if it works there.
I recommend to deinstall Xcode 6.2beta and any other Xcode copies you have. (maybe save them to an external hard drive so you have a backup) You can do this using CleanMyMac (not sure if deinstall is included in a trial version).
After deinstalling I would try to download it from the AppStore since that will give you the most stable internet connection.
If that still does not work, try again downloading Xcode from Apple's Member Center.
No progress? Then use the beta to finish your project and send a support request to Apple (they offer phone support now which is quite a lot faster)
Good luck and hope it helps :)
I the had the same problem yesterday.
Here is what i did to solve it.
Quit the app store.
Open temo directory. (in terminal type : open $TMPDIR)
Delete all the files in tempdir.
Then restart the macbook (Don't know does it count or not but i just did it).
Start the update process in app store again.
it worked for me.u can try it.
Good luck!
Cheers,
Harshal
I'm not sure, but I think this is because you downloaded your current version of Xcode from online. Now that you try to update it as an app, it runs into some kind of problem. I have the exact same problem, and I fixed it by uninstalling and reinstalling Xcode from the app store. This worked for me.
The problem solved itself somehow...
Here is what I did. First I unistalled the old version of Xcode. Then I downloaded it from the appStore. Then the download got stuck at 2.58 of 2.58 Gb. Then I quit the app store and relaunched it. This time I signed in with a different account. Suddenly the app went to "Installing" state a stuck there. Then I restarted the mac and when I reopened "Launchpa" There was a new Icon of Xcode and it works. I did this on my Mac mini with Mavericks. I copied the whole app folder onto my mac pro and it works with some minor errors. But I got Xcode/simulator up and running in the end. This is not a REAL solution, and I haven't found out why it worked. I just posted the solution because it maybe help someone, somehow...
Thank you guys for your help. I combined all your solutions and in the end it worked a bit diffrently :)
I had the same problem befoure. Here is what i did to solve it.
here are two way to download Xcode 6,Upgrade OSX....etc,i have download successfully
1 Download The Xcode from a different internet connection/IP (i will suggest, you should use dongle instead of WIFI)
or
2:trying to download US Network throw the VPN
Thanks
Sushil

Resources