Recently I got this error while deploying a sharepoint hosted app. The error message I got is Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.
Also you can check out:
SharePoint restricted system account to perform deploy or install an apps for security reason.
So the solution is:
- Create a new account.
- Add this account to local admin.
- Then add the account to farm admin group. Open sharepoint central administration, go to Security. From there select Manage the farm administrators group.
- Now open visual studio into different user ( Shift + Right Click, and open with different user ). and put the user which you have created now.
Now the error will not come.