iosflutterxcodeflutter-ios-build

error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted


I am constantly getting an error while trying to archive my iOS app built in Flutter. I had uploaded a previous version of this app using a different PC.

enter image description here

I tried Flutter clean, deleting the podfile.lock file, I also used the command flutter build iOS.

I need to upload app to test flight. Any temporary fix would also help.


Solution

  • It was a permission problem.

    refer to this :- https://www.symscape.com/node/1727

    along with /bin/sh I also gave permission to xcode.