helmedeiros / dotfiles

my dotfiles
5 stars 0 forks source link

Should keep Mac Easy installation format on High Sierra #23

Open helmedeiros opened 7 years ago

helmedeiros commented 7 years ago

I've just updated to High Sierra. When i try to install Xcode with mas, i get the following error:

Not signed in
Warning: Not signed in
2017-10-20 00:02:54.649 mas[22800:70509] -[__NSXPCInterfaceProxy_ISAccountService signInWithContext:replyBlock:]: unrecognized selector sent to instance 0x7fc059c23180
2017-10-20 00:02:54.651 mas[22800:70509] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSXPCInterfaceProxy_ISAccountService signInWithContext:replyBlock:]: unrecognized selector sent to instance 0x7fc059c23180'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff28feb0fb __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00007fff4f8d9c76 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff29083c34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fff28f61510 ___forwarding___ + 1456
    4   CoreFoundation                      0x00007fff28f60ed8 _CF_forwarding_prep_0 + 120
    5   mas                                 0x00000001032973b2 _T0So14ISStoreAccountC3masE6signInABSSSg8username_AE8passwordSb12systemDialogtKFZTf4ggnd_n + 1026
    6   mas                                 0x0000000103296d7e _T0So14ISStoreAccountC3masE6signInABSSSg8username_AE8passwordSb12systemDialogtKFZ + 62
    7   mas                                 0x00000001032adb86 _T03mas13SignInCommandV3runAA6ResultOyytAA8MASErrorOGAA0bC7OptionsVFTf4gXd_n + 758
    8   mas                                 0x00000001032acd4e _T03mas13SignInCommandVAA0D8ProtocolA2aDP3runAA6ResultOyyt11ClientErrorQzG7OptionsQzFTW + 126
    9   mas                                 0x0000000103287e3a _T03mas14CommandWrapperVACyxGqd__c11ClientErrorQyd__RszAA0B8ProtocolRd__7Options_AEQYd__AFRSlu33_E513F8A29DAA43E418079999EEBED6A7LlfcAA6ResultOyytAA010CommandantE0OyxGGAA14ArgumentParserCcfU_ + 922
    10  mas                                 0x000000010328c5e3 _T03mas14CommandWrapperVACyxGqd__c11ClientErrorQyd__RszAA0B8ProtocolRd__7Options_AEQYd__AFRSlu33_E513F8A29DAA43E418079999EEBED6A7LlfcAA6ResultOyytAA010CommandantE0OyxGGAA14ArgumentParserCcfU_TA + 83
    11  mas                                 0x00000001032885bb _T03mas15CommandRegistryC3runAA6ResultOyytAA15CommandantErrorOyxGGSgSS7command_SaySSG9argumentstF + 235
    12  mas                                 0x000000010328b240 _T03mas15CommandRegistryC4mains5NeverOSaySSG9arguments_SS11defaultVerbyxc12errorHandlertFTf4nxnn_n + 464
    13  mas                                 0x00000001032887d3 _T03mas15CommandRegistryC4mains5NeverOSS11defaultVerb_yxc12errorHandlertF + 131
    14  mas                                 0x00000001032986d6 main + 854
    15  libdyld.dylib                       0x00007fff504c8145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
==> Signing in to Apple ID: 
Not signed in
Warning: Not signed in
Error: Unable to install Xcode app. mas not signed in to Mac App Store.
helmedeiros commented 7 years ago

Possible workaround:

loginToAppStore () {
  echo -e "\nPlease log in to the app store..."

  open -a "/Applications/App Store.app"

  until (mas account > /dev/null);
  do
    sleep 3
  done
}