报错the file "xxx.app" couldn't be opened because you don't have permission to view it.
后发现
对应target的info文件中的字段Executable file (CFBundleExecutable)值是VANCL,而build settings栏中的Packaging中的Product Name 值是VANCL-Demo,这2个值不一致就会导致上述截图的问题。而值相同的话,就没有问题。
so,将Executable file的值改为$(PRODUCT_NAME),使得2个值保持一致,再次build,ok,编译通过。