Posts

Post not yet marked as solved
25 Replies
I'm using a run script (Target -> Build Phase -> Run script) which strips out all architectures that are not currently needed. /bin/sh executing the script which executes lipo. lipo tries to remove/create files which doesn't work due to missing permission. Because of that Xcode 12.0.1 on Catalina 10.15.6 shows "The file "name.app" couldn't be open-end because you don't have permissions to view it." I can't change the permissions as the files/folders doesn't exist prior the compile. Changing the permissions afterwards doesn't work because Xcode doesn't run the script again. On "Clean build Folder" the files/folders are removed and so on. How do I grant access for Xcode/sh/lipo on a folder which doesn't exist?