Ionic 4 ios build "You cannot run cocoapods as root"

Hi all,

I’m facing an issue callled “You cannot run cocoapods as root” when I’m trying to build ionic ios .

can someone please help me with this?

Does the problem persist if you refrain from building as root (this includes not using sudo)?

yes it happens when I run

sudo ionic cordova build ios


I have solve my issue changing permissions ( by changing permission in get info )