2

Few days back I added an account in Xcode preferences which succeeded and I was running the app on device. But today when I opened Xcode, the account was nowhere to be found. The same happened before as well. At that time I thought there might be some connectivity issue but then I faced it again. Possible reason ?

enter image description here

Nitish
  • 13,845
  • 28
  • 135
  • 263

1 Answers1

4

This is Xcode 9 bug, Many user faces this issue.

Xcode 9.3 now uses Keychain Access Groups to store your Apple ID credentials in the keychain.

You can fix this problem by setting a user default. In Terminal, using below command:

defaults write com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService -bool NO

Ref:

Accounts disappearing in Xcode 9

https://stackoverflow.com/a/49822288/1597744

Toseef Khilji
  • 17,192
  • 12
  • 80
  • 121