You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Oct 2, 2018 2:01 AM in response to brianyen0

We had exactly the same problem after we upgraded our 3 iMacs at work- I tried all the solutions mentioned here but nothing fixed the problem. Signing in with another admin account didn't solve anything, tried to delete all the files mentioned in another thread- nothing changed.. We are all connected over ethernet and this morning I disconnected the ethernet and opened up a personal HotsSpot on my iPhone- and now the App Store is back to life..! But as soon as I disconnect the WiFi connection, go back to ethernet and close the App Store- same as before. But at least we found a solution for now. Maybe that will help someone...

Oct 2, 2018 6:36 AM in response to Stefanspk

Stefanspk wrote:


We had exactly the same problem after we upWe are all connected over ethernet and this morning I disconnected the ethernet and opened up a personal HotsSpot on my iPhone- and now the App Store is back to life..!

Tried this immediately just seeing your post - no luck unfortunately. Same behavior with personal hotspot as with ethernet and wifi.

Oct 2, 2018 6:41 AM in response to b33rg33k

b33rg33k wrote:


So this is a network related issue with the App Store and network port configuration. Funny that so many folks can replicate the issue but we have yet to hear from  Support on a quick fix. Does anyone know what ports the App Store uses when it's connects to Apple's servers?

Yes, I've looked at it. The app store mostly uses 443/tcp, but I don't believe that's the issue. In my case there is no actual network connection attempted that I've been able to detect when signin fails.

Like some of the posters a few pages back I suspect an issue with certificates that are causing the SSL connection to fail before a TCP packet is even sent, but have not had any luck figuring out which exactly and where.

Oct 2, 2018 6:44 AM in response to Exxplora2

Exxplora2 wrote:


You might want to check any network filters you have on your wired network. I had a similar problem and was able to determine that my third party network filter (Little Snitch) was not reading the code signature for the app store correctly. A subsequent update to the third party network filter solved my problem.

Tried that here too - unfortunately no luck with with the Little Snitch update nor with disabling LS.

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 2, 2018 8:09 PM in response to parrori1

OK lets do it this way.

1. After the first line was entered, did the line below that ask for password? If yes great and enter next line there will be no more prompts other than your MacBook Pro line. Then enter the next line also no prompts other than MacBook Pro. If all lines entered reboot. All should work. If you didn't get the prompt for password get back to us.

Oct 3, 2018 7:57 AM in response to macnewED

macnewED


The plist files that are removed will be regenerated the next time they're required by an application. There's either some sort of corruption or contradictory line of code in those files that was causing the problem.


Apple prioritizes their focus first on items that crash the system or cause kernel panics, then start down the list from there. I've been beta testing Mojave for months, and this problem has been there since I started. It doesn't appear to be too wide spread since, on the developers forum, I was the only one reporting the problem. Once Mojave went into wider release, it started to affect more people and hence it got their attention.

Oct 3, 2018 11:30 AM in response to joelw135

Im giving up. This is what happens to me whenever I hit enter. Also when i enter password it doesn't take i.e. not posted


Last login: Wed Oct 3 14:23:55 on console

Richard-MacBook-Pro:~ richard$ cd "/Library/Security"

Richard-MacBook-Pro:Security richard$ sudo ditto -ck "Trust Settings" TrustSettingsBackup.zip

Password:

ditto: no files for PKZip archive

Richard-MacBook-Pro:Security richard$ cd "/Library/Security/Trust Settings"

Richard-MacBook-Pro:Trust Settings richard$ sudo rm *.plist

rm: *.plist: No such file or directory

Richard-MacBook-Pro:Trust Settings richard$

Richard-MacBook-Pro:Trust Settings richard$

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.