Xcode 9.3 keeps forgetting password for Xcode Server - xcode

Everytime when I start Xcode 9.3 and go to the report navigator my Xcode Server is disconnected
When I go to the accounts tab in settings it shows me an error.
When I enter the credentials it works.
But it seems like Xcode forgets the credentials every time I restart it.
I also went through this question (xcode 9.3 session expires every time i close and re-open Xcode) because it could have been a problem with the keychain. It didn't help though.

Related

I updated Xcode by hand -- App Store keeps trying at night

TL;DR: It appears that Xcode now auto-updates overnight if your Mac is connected to power. I did a manual install, but the (stalled) auto-update still tries overnight. How do I kill this zombie? (Yes, I can turn off auto-update in App Store, but I don't want to. And anyway, the problem would persist when/if I turned it back on.)
Longer: The following steps happened
Yesterday morning my Mac had the error dialog (paraphrasing here) "Could not update, you must quit Xcode"
I quit Xcode
Clicked "Update" in App Store app
Update stalled at 90%, App Store said "Pending"
(Simulator was still running; could have been the problem)
This stalling is a common problem, dealt with in many posts here, notably
Xcode update stuck after updating macOS
Xcode update stuck on "update"
I went to https://developer.apple.com/download/more/ and got and
installed the update by hand
That wasn't the end of my problems; see
Broken xib with xcode 10.3
This morning, I was welcomed with the same "Could not update, you
must quit Xcode" error dialog.
The App Store app still says "Pending" for this update. Apparently you used to be able to press the Option or Control-Option keys to reveal a "Cancel" button, but no longer.
Q: How do I cancel this pending update, short of de-installing current Xcode and re-starting the App Store process? (See How to Completely Uninstall Xcode and Clear All Settings)
Note: FWIW the file
~/Library/Application Support/App Store/updatejournal.plist seems to say my latest version is 9.2.
Note: another suggestion at https://apple.stackexchange.com/questions/345910/how-to-delete-partially-downloaded-updates-in-high-sierra is to delete all contents of $TMPDIR../C/com.apple.appstore/ but that seems drastic.
Note: In Launchpad, the Xcode icon has a blue dot next to it. Could my solution really be as simple as deleting the Xcode icon? Plenty of similar suggestions all over the web...
This seemed to do the trick: sudo softwareupdate --clear-catalog

"Edit Bot..." button disabled after upgrading Xcode

I've updated my Xcode from 9.2 to 9.3 (It seems to be an issue with later versions as well) and now I'm not able to edit the bots anymore.
What I tried:
I installed the additional components on the server and local machine that you will be prompted about on first open after updating Xcode.
I restarted the server and local machine.
I checked the option "Create and View Bots" on the server. It is set to "logged in users". Just as before the update.
Everytime I want to open the Xcode Server preference pane in on the local machine in Xcode settings under accounts it gives me an error. When I try it a second time it works though. But it aways fails at the first time:
I removed the Xcode Server from the accounts pane and added it again.
I solved it by removing and adding the server by IP address:
Then it was possible again to Edit the bot.
Still strange...
Got the same issue by upgrading to XCode 10 today. Fix it by completely shutting down the Mac and restarting.

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 ;)

Updating XCODE using different apple account

I have MAC OS 10.7.3. xcode 4.3.1 installed using different apple id as my macbook pro was used previously by my friend. Now when i try to upgrade Xcode to 4.3.2 it asking credentials for my friends account. Unfortunately App store clearly says you can upgrade an app using the account which was used to install the app.
How can i upgrade Xcode using my credentials?
Thanks in advance.
I am sure you would have solved this by now but just posting the solution here that worked for me..
Open Finder and navigate to Applications,
Ctrl+Click the application and choose "Show Package Contents" (Xcode in this case),
Expand the Contents directory and click the _MASReceipt directory 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 the application. You can update with your new id now without deleting the old version of the app
Hope this helps someone coz it took me a while to figure out !!
Unfortunately had to answer my own question,
Simple Answer: NO, You cannot update xcode installed from another account.
Solution is to delete the existing installation and re-installing from new account.
To delete the existing installation, you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.
Above solution is assuming you have installed xcode from the mac app store, usually versions later than 4.2. For earlier versions, just deleting /Application/xcode folder should work.
The solution is found:
I had this bug, it's related to Spotlight. 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.
Source: https://discussions.apple.com/thread/2806858?start=0&tstart=0

xcode 4.3.2 process hangs

I have run into a rather annoying bug in Xcode 4.3.2.
If you run a process from within Xcode, then stop the simulator directly (outside of Xcode), Xcode still shows the process as running and effectively disables any further interaction with the simulator.
I can't stop the process from within Xcode (no response), and I can't start a new process either as Xcode sees the simulator as being in use. Shutting down the simulator does not notify Xcode either, so I have no option but to shut down Xcode and open it up again But even that does't work as Xcode hangs whilst trying to shut down the process too! So I have to force quit Xcode!
Has anyone found a way round this? I realise I should now only operate the simulator from within Xcode, but I am used to being able to operate the simulator independently.
thanks
I was having similar issues with Xcode 4.3.2. I fixed them by doing the following:
Launch Xcode.
Close any open projects.
Open Organizer.
Delete project form left panel using the gear icon on the bottom left. Select "Remove from Organizer...". This clears all the data about your project that Xcode has cached (indexes, DerivedData, Snapshots, etc.).
5). Re-open project.
Since doing this, my Xcode hanging issues have disappeared.
Here are the steps I follow when this happens:
Start the simulator if it isn’t already running
Choose the option “Reset Content and Settings…” from the iOS Simulator menu
Clean and rebuild the project

Resources