After upgrade to MacOS Mojave, I cannot login or connect to App Store.

I am using the latest MacBook Pro 2018 version. After upgrade to MacOS Mojave, I cannot sign out, login App Store or View my account. It always show "Cannot Connect to App Store". I also upgrade my iMac to MacOS Mojave, my iMac does not have this issue.


How can I fix this issue on my 2018 MacBook Pro?


Thank you

MacBook Pro TouchBar and Touch ID, iOS 12

Posted on Sep 24, 2018 7:50 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 2, 2018 7:04 AM

I found a solution that worked for me. It took me two steps, and all credit to BocaBoy in this thread: Re: Mojave installation fails: duplicate App Stores, can't sign in with Apple ID (Macbook Pro, Late 2016)


  1. Disable System Integrity Protection:
    1. Reboot the computer into restore mode (press command-R during startup)
    2. Select Terminal from the Utilities... menu
    3. Enter csrutil disable and press return
    4. Restart
  2. Back up and archive the folder in /Library/Security/Trust Settings before deleting them through Terminal. I'll copy BocaBoy's instructions here for you all:


OK, I just spoke with Apple engineering and they gave me a fix for this. It worked for me and it may work for you. You must know how to use Terminal and access hidden directories with Finder in the root of your drive.


First, make SURE that you've backed up the directory /Library/Security/Trust Settings. Copy it on your Desktop or Downloads directory, or wherever you'll be able to access it.


1. Again, back up the user certificate trust settings files described above. Then, remove them with the following commands, entering your administrator password when prompted:


cd "/Library/Security"

sudo ditto -ck "Trust Settings" TrustSettingsBackup.zip

cd "/Library/Security/Trust Settings"

sudo rm *.plist


2. Attempt to sign into the App Store.


This didn't work for me until I restarted at which point I was able to log in and see all of my accumulated updates. If you're not comfortable working at the system level, DON'T do this. If you are, this may fix your problem. It did for me.


Once you're sure that you've got the App Store working, you can delete the TrustSettingsBackup.zip file as well as the backup of the Trust Settings directory.

3. Reenable System Integrity Protection by repeating step 1 but using the command csrutil enable.


After I modified the Trust Settings directory, I was able to reboot and connect to the App Store and Books Store.


Good luck, everyone!

379 replies

Sep 27, 2018 1:45 PM in response to WPeter W.

If you're having problems with the App Store you might try this:


1 - sign out of the App Store.


2 - enable the Debug menu in App Store:

  • open the Terminal application.
  • copy the command below and paste into the Terminal window:
defaults write com.apple.appstore ShowDebugMenu -bool true


followed by Enter or the Return key.


3 - launch App store and select the Debug ➙ Reset Application option:

User uploaded file

4 - sign in and try again.

User uploaded file

Sep 30, 2018 8:19 AM in response to brianyen0

I'm also having this problem. It started when I downloaded the beta of Mojave and persists through the release. If you open Console, you should be able to start to diagnose what is causing the error, although I haven't been able to fix it yet. I have reported it to Apple and hopefully a future update will resolve it.


Here's the code that I've found in Console for my issue. As you can see, there appears to be two different instances of the files that would authenticate my sign in. Unfortunately, they're owned by Root and can't be deleted, changed or renamed. Ironically, the sign in credentials seem to be accepted because if I use the wrong credentials it rejects them. Even with the right sign in, I always see Sign In in the lower left and in the menu, and I'm unable to purchase items or to upgrade existing applications.


Sep 25 07:26:13 Rons-MacbookPro-3 App Store[2783]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug

Sep 25 07:26:21 Rons-MacbookPro-3 App Store[2783]: objc[2783]: Class ITNSImage is implemented in both /System/Library/Frameworks/iTunesLibrary.framework/Versions/A/iTunesLibrary (0x7fff86114568) and /System/Library/CoreServices/SetupAssistantPlugins/iTunes.icdplugin/Contents/Ma cOS/iTunes (0x11f5567c8). One of the two will be used. Which one is undefined.

Oct 1, 2018 1:26 PM in response to WPeter W.

I actually still have a second admin account that I had set up and used only during installation of this new iMac last year. I had not used this account since this then.


I could sign into the App Store and install both new software and updates (e.g. XCode 10) without any issues. Going back to the other admin/user account, ... same issue as before. No sign-in possible. At least, I have my updates now. Books is still an issue, though. Cannot get my new book, that I bought on the iPhone (iOS12) this week.

Oct 2, 2018 3:34 PM in response to parrori1

After you follow the directions in the first part of BocaBoy's post open the terminal located in Applications/Utilities and type or copy and paste each line and press enter after each copy and paste. So you will have copied and pasted three times. Now after the first line is copied and pasted the terminal will ask for your password (the one you use to enter Mac OS) after that it is just copy paste and then when the last line is entered and enter is pressed reboot and all should be working. Below is details.


sudo ditto -ck "Trust Settings" TrustSettingsBackup.zip (Then press enter)

Now enter password

cd "/Library/Security/Trust Settings" (Then press enter)

sudo rm *.plist" (Then Press enter)

Now reboot

Oct 2, 2018 3:37 PM in response to parrori1

Prarrori1, The first line gives you Administrator rights to create a Zip file of Trust Settings, then creates the file. The second command changes the directory (cd) to Library/Security/Trust Settings. The third command gives you Administrator rights to remove any file ending in plist. These are preference files and are regenerated when they are missing. The error appears to be in that file. Apple is asking for it to be deleted so that it can be regenerated with fresh content.


Use Terminal to cut and paste these commands into, one at a time, using Enter after each one. If your password is needed, it will prompt you for it.


Lastly, if you're uncomfortable working at the system level, DON'T DO THIS. Many people in this forum and on this thread are comfortable using Terminal. They also, presumably, have the know-how to recover if they make a mistake. If you're not one of them, I repeat, DON'T DO THIS.


Now that Apple engineering has identified and acknowledged the problem, it will show up in a future release, maybe as early as 10.14.1.

Oct 3, 2018 4:47 PM in response to parrori1

Is that what is in your Security Trust Settings? Now as I said before follow the directions. Only cut and paste. That file is what needs to be copied to a safe place documents or user. But maybe someone else can chime in. Looks like you typed something wrong. That pilst file should be removed with the process. I don't want to tell you to delete it, as I am not sure if it can be done and if it is safe.

Oct 3, 2018 8:19 PM in response to jgoz85

Thank you for turning me to the right spot. It didn't work for me initially. But I kept trying and I got it to work. It is the certificates under key chain. Plus another thing that is weird was that the certificates appeared to duplicate themselves both under "System Roots" and "Certificates" as I was toggling them from "Never Trust" to "Use System Defaults".


I also saw some expired certificates that had my Apple ID e-mail address that I was tempted to delete, but I decided not to.


So then I clicked on "System" and saw some certificates listed there. When the first few you mentioned didn't work I proceeded on Toggling the following:


Apple Root CA - G2

Apple Root CA - G3


Those didn't appear to do anything really. So I continued doing it to the remaining certificates listed:


com.apple.kerberos.kdc

com.apple.systemdefault


Now this one was set to "Always Trust" when I found it:


DigiCert High Assurance EV Root CA


So I set it to "Never Trust" and then to "Use System Defaults".


Then I opened up the App Store and then instead of being locked out from being able to login and logout, it prompted me for my password for my Apple ID, I entered it and then the problem went away and it started working properly.


So I thank you for your help in pointing me towards the right direction in solving this problem. Others that were still stuck like I was may be able to correct their problem as I have done.


I hope this information can help someone else who has their App Store locked to the point where it won't accept your password, allow you to log out, and gives a "Cannot Connect to the App Store" and that other message "Unexpected error" when you try to put in your password to connect to the App Store.


Thank you,

Gene

Oct 31, 2018 10:14 AM in response to parrori1

I guess when I go into the app it will say update I am so confused now. I hope that is what will happen. Thanks anyway for your help but if I had screen shots it would be easier to do but will just keep it open all day until I log off computer for the night. I guess I have to live with it I would think there are more people with this issue I am surprised no one else is saying thye have a problem and not fix to it.


Thank you all for your help

Feb 27, 2019 12:12 PM in response to Checkyorself289

Thanks @Checkyorself289. The AppCleaner solution fixed my problem of the app store not being able to connect when I clicked the "View information" button.


To get apps to start downloading I also had to force quit all of the store processes as outlined in the "Kill the Culprit App Store Processes" section here:

https://www.makeuseof.com/tag/fix-mac-app-store-problems/


MacBook Pro (Retina, 15-inch, Mid 2015) Mojave 10.14.3

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

After upgrade to MacOS Mojave, I cannot login or connect to App Store.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.