Xcode Crashes abruptly when a Account is added - macos

Hello All,
I installed Xcode 7.2.1 application on El Capitan and whenever I try to add an account it crashes. However I don’t observe same issue on other MAC. I am still trying to find a solution but I was wondering if anyone can help me with this issue. Below are the reproducible steps :
1) Launch Xcode. Click on Xcode from menu bar and select preferences.
2) This launches a window and select Accounts tab.
3) You will see “+” # bottom left hand side of the window. Select Add Apple ID option
4) When I enter the credentials it crashes. FYI: Irrespective of developer credentials result is the same.
Thanks!

Do a Data BAck Up-->Delete the account--> Re add the account. Update the Xcode if required.

Related

How to view crash reports in XCode

I've seen several (e.g. question1, question2, question3) questions about viewing crash reports that don't help me. Since I'm new to Apple development, my questions sort of translates to "is this how I'm supposed to open crash reports?"
Here's what I'm doing:
Open project in Xcode (version 12.4)
Navigate to Window->Organizer and click "Crashes"
Select the release build (1.2) for which I'm trying to view crash reports
Because Xcode shows no crash reports for that particular release (I do see some for older releases), I did this:
Login to App Store Connect
Navigate to App Analytics->MyApp->Crashes
Click "Add Filter" then App Version -> 1.2
This page shows that there have been over 100 crashes for this build in the last month (and they pretty well span the whole month). I am expecting to be able to view a report for each one of these. Is that not necessarily possible?
In response to some of the SO questions I've seen, I've done this:
Navigate to TestFlight->Build 1.2-> Build Metadata to verify I have included Symbols
Navigate to Users and Access->MyAccount to verify I have admin permission and Access to Reports
Restarted Xcode
What else should I be doing?
Under the Window menu, choose "Devices and Simulators". Plug in an iPhone or iPad. Even if the logs are for Mac apps.
Click on the device you plugged in in the left column. To the right find the button "View Device Logs".
In the new window click on "All Logs". You can drag any .ips fils onto the left window to view them. You can right click on any file to symbolicate them.
All this makes me think that someone at Apple has lost their mind.
In my case the symbolicate doesn't work and the logs don't display correctly

Xcode 9 "no iTunes Connect account" error when uploading

With a certain project in Xcode 9 beta 6 when I try to Upload to the App Store I get:
I am the "Admin" role for this account.
All contracts are up-to-date
I tried removing/re-adding my account from Xcode prefs several times
Submitting for the same project from Xcode 8 works (however I need to upload from Xcode 9 for this project because it links against iOS 11 beta)
Another developer on the team is seeing the same thing so this seems like it might be common. Anyone find a workaround?
I encountered the same issue with xCode 9 GM build and others reported it as well in xCode 10 and xCode 11. Deleting the derived data actually solved it for me. Hopefully it will help others as well.
Close xCode
rm -fr ~/Library/Developer/Xcode/DerivedData/
Reopen xCode and try to upload again
This seems to be issue with Xcode 9. Solution is to use Application Loader tool.
Step 1 : Create an IPA file
Clean your project from Product -> Clean (cmd + shift + k )
Select Product -> Archive
Once archive is successfully completed it will open in Organizer window
Press Export button present on right side
Now select the distribution method as per your need and click on Next button
This will show the App Store distribution options. Now click on Next button
Re-sign your project (preferred is Automatically manage signing) and click on Next button
There will be Review window containing IPA content details. Click on Export.
Now choose the location where folder is to be saved and Click on Export.
This will create an folder containing IPA, packaging.log, DistributionSummary.plist and ExportOptions.plist file
Step 2 : Upload IPA using Application Loader
Right click on Xcode tool present on Slide-bar. Goto Open Developer Tool -> Application Loader
This opens Application Loader. Press on Choose button and select IPA file.
This will analyse IPA file and will show IPA details. You can press on Activity button to see list of activity performed while uploading app. Click on Next.
This will create iTunes Connect API analysis file.
Once it is successfully uploaded it will show Success. Now click on Next.
You IPA file is submitted to AppStore successfully
The only solution I have found for now, is to generate IPA for AppStore and then upload it with Application Loader.
I just had this happen to me and this was my solution.
Full Quit out of xCode 9
Reopen xCode
Update to a new version number
Archive again
Result: It worked
It's a pretty basic fix, but hopefully it will for you too.
None of the mentioned answers helped me. Below I am mentioning what all I have tried to solve the issue but didn't work.
i) Check provisioning profile & Certificate combination.
ii) Clean
iii) Quit Xcode
iv) Delete derived data
v) Restart Xcode
What worked for me is
i) Open Xcode preferences
ii) Check iTunes account you are using. If it is already logged in, remove it.
iii) Login the iTunes account again
iv) Xcode will start process automatically once it gets access now.
v) Select the provisioning profile that you are using again while Xcode asks for it in the popup.
vi) Xcode will proceed upload process.
This worked for me. Hope it will save some of your's time as well.
I just had a call with Apple developer customer support. They said its a known issue and the team is actively working on it. But there is no timeline insight.
Following solution that worked for me.
Use Xcode 8 until Apple engineers fix this issue:
The solution may work even if you don't downgrade to Xcode 8
Steps for Downgrading form Xcode 9 to Xcode 8
1. Download Xcode 8 from:
https://developer.apple.com/download/more/
2. Install Xcode 8.
3. Create an ipa build
In Xcode go to
Menu -> Product -> Archive -> Export
4. Use the Application Loader to upload your ipa to iTunes connect
Application Loader can be found at:
In Xcode go to
Xcode -> Open Developer Tools -> Application Loader
Let me know if it helped
The same case happened to me.
Also when I tried to get crash reports, it shows that my session has expired.
I have just restarted my Xcode and it worked.
In My case none of the above solutions worked,
I have an access for both Developer account and iTunes Connect account, but I faced the same Issue.
The only option worked for me is updating my MAC OS before it was 10.13.4, after update to 10.13.6 the problem was resolved. Hope this will help to someone.
I've managed to get it working by creating a new user in iTunes Connect, with just the "Developer" role.
For me, that also required to creating a new Apple ID.
I then added that new user in Xcode:
Now it seems to work.
What works for me is to
remove the apple ID from the accounts known to XCode
to add the account again (do not import the account again)
See On Xcode 7 I keep receiving error "No accounts with iTunes connect access"
Edit: This worked for me in Xcode 9 GM. I don't know if it will be an issue in the final version
What worked for me is that I changed my regular AppleID email, with the equivalent #icloud.com alias.
For example, I didn't use myemail#gmail.com, I used myemail#icloud.com and it worked.
(Which I really don't prefer, I prefer using my personal email, but if it works, it works)
I could not use application loader because my password is not accepted. Even after changing my Apple ID password it was not accepted.
Restarting XCODE solved the upload problem this time. But it is a repetitive problem.
Apple is becoming a nightmare... XCode and iTunesConnect always have been...
I just removed and re-added my developer account for the Xcode 9. To remove account goto preferences -> select your account -> hit the minus icon(-). To add your account just click on the + icon next to it.
Restarting the laptop fixed this. Didn't try restarting XCode itself, just rebooted the whole laptop.
I also encountered with the same problem. But after I updated the Xcode to the current latest version of Xcode 9.2 solved my problem. I took the update on 2017-12-21.
For me remove derived data, clean project and try again working fine.
Please follow below steps:
Quit XCode
rm -fr ~/Library/Developer/Xcode/DerivedData/
Reopen XCode and try to upload again
Hope it will help!
Closed Xcode and reopened it. This worked for me. This was also the most popular answer on the apple forum. Do this first.
Your xCode must be open for longer time.
Quit the xCode and Reopen. It will work.
Got the same issue fixed with below steps.
Just do Quit XCode completely even dock too then wait for few seconds and Reopen the Xcode then proceed to Archive again freshly.
then believe problem solve :).
All the best.
Solution that worked for me in Xcode 9.1
Go to Preferences.
Go to Accounts tab.
Select the desired account.
If there is a login expired error displayed, login again.
Make sure the error has gone away.
Restart Xcode.
Try to upload the archive again.
Here's what worked for me (after trying many times of signing-out and signing-in):
Sign out your Apple ID (by going to Preferences with Cmd+,)
Sign in with your Apple ID, and make sure you sign in with ***#icloud.com
Somehow it all started working for me...
Posting it here in case it's helpful to anyone else. Have no clue how this solved the problem (and how the problem emerged in the first place).
Actually, it's apple server error. So, wait for some time and then upload. It'll work.
In my case this is the problem of firewall when I connected to other network it's working.
For me it helped to close Xcode and reopen it again, it was that simple ;)

Xcode 7.3 does not show up any downloadable iOS simulator

Just upgrade my Xcode from 7.2.1 to 7.3. Have no idea why. Do I have choices other than delete Xcode and reinstall again? (which I highly don't like).
BTW, the documentation tab is fine. Just a blank simulators.
Update: If I click "check and isntall now", it reports:
Could not download and install OS X 10.11.4 Documentation. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “devimages.apple.com.edgekey.net” which could put your confidential information at risk.
I checked cert on https://devimages.apple.com.edgekey.net, seems fine..
In Xcode 7.3 I found the following way to add older simulator versions.
1.) Choose "Window" from the menu bar
2.) Choose "Devices" from the drop down menu list
Result: Devices window opens
3.) Click the "+" icon in the lower left-hand corner of the window.
4.) Choose the Add Simulator option
Result: You can add a simulator (and download older ones).

XCode 6.0 does not open on OS X 10.9.4

I just downloaded XCode_6_beta_6.dmg from the official apple website. However, when prompted to drag the installation to the application folder, it just unarchived the installation but does not install XCode_6_beta_6. When i try to open xcode_6_beta_6 from the applications folder, the new xcode6 beta icon just keeps popping in the application dock and does nothing. How do i overcome this situation so that the new xcode6 beta is installed on my machine?
For some weird reason, apple does not trust this installation and hence does not continue.
Please follow the below instructions to continue with the installation.
Open System Preferences
Open Security and Privacy
Unlock the settings screen if it is not already unlocked.
select "Anywhere" from the "Allow apps downloaded from:" section.
lock and close the preferences screen.
Your installation shall start in a moment!!
Also happened to me. Used Deepak's fix but had an additional strange problem where the Icon would still stay bouncing in the dock. Be patient & wait (for me it took a good 10 minutes!) for a dialogue box to eventually appear saying 'This is an application downloaded from the internet, do you want to open?' Obviously click 'Open'. Odd, considering it's Apple's own app.

How to update Xcode with a new Apple ID?

I've recently changed apple ID and I've downloaded xCode on mac with another apple ID.
Not the mac store informs me there is a new version for xCode but I need to insert password of the older Apple ID, and I can't just use the new one. It seems the app is associated with the old apple ID.
I can't even download a new xCode using the new apple id, because it only gives me the option to update it with the old Apple ID.
To make the AppStore forget the old credentials with which the app was downloaded, you must remove the _MASReceipt directory in the app itself.
To do this:
Open Finder and navigate to Applications,
Ctrl+Click XCode and choose "Show Package Contents",
Expand the Contents directory and click _MASReceipt to select it,
Type Command+Delete to delete the directory permanently---you will be prompted for your credentials since this is a protected file.
Quit and restart AppStore, then find XCode. The button should now say "Free" or "Install" instead of "Update". Clicking it will update your XCode to the latest version as the currently logged-in Apple user.
Assuming you have the issue where you are getting the error
To update this application, sign in to the account you used to
purchase it.
on the App Store app, go to Store --> Sign Out
and then do the stuff suggested here
check this fix from Beartech at https://discussions.apple.com/thread/2794280?start=15&tstart=0
The App Store used Spotlight in some way. My fix was to add the entire
HD to the "Privacy" tab in the Spotlight System prefs pane, close the
prefs and wait 30 seconds, re-open and remove your HD from the Privacy
tab. Spolight begins reindexing. Re-opened the App Store and problem
was fixed! Posting this here for others who might search later on.
Also filed a bug report with Apple.
hope this fixes the issue for you!
edit: I think this is a different issue compared to what I had. Your only option is probbaly to delete xcode, and download with your new Apple ID
To add an Apple ID account
Choose Xcode > Preferences.
At the top of the window, click Accounts.
In the lower-left corner, click the Add button (+) .
Choose Add Apple ID from the pop-up menu.
In the dialog that appears, enter your Apple ID and password, and
click Sign In.
To remove an Apple ID account
Choose Xcode > Preferences.
Click Accounts at the top of the window.
Select the Apple ID account you want to delete in the left column.
Click the Delete button (–) in the lower-left corner.
Follow link for source and detailed information.
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingAccounts/ManagingAccounts.html
open a folder
Finder-> Go -> Applications
then find Xcode in the folder.
Right click on the Xcode. -> Get Info
at the bottom, there is Sharing & Permissions, open it, click on the lock icon on the right corner.
make Read & Write for everyone in the list.
then wait 5-10 seconds. just try update Xcode again. it will start to updating...
As NSPostWhenIdle said: "Delete Xcode, and reinstall it using the new Apple ID."
For XCode 5
Xcode menu > Preferences > Accounts
At the bottom left, click the +
Click on Add Apple ID.
I had a somewhat similar issue. My AppleId was changed- the username - from "ab***" to "ab***#gmail.com". The new format requires an email address, and my AppleId dates back many years. I suddenly couldn't export anything from Xcode. How I fixed it:
Preferences/Accounts
Delete old AppleId
Add new AppleId.
Apple seemed to sort itself out on the backend and the only issue was Xcode hanging around to old references to defunct and/or bad usernames (to the same keyed account. Go figure.)
If you restore your device to 13.3.0 will fix your problem, it worked for me

Resources