iOS the file "xxx.app" couldn't be opened because you don't have permission to view it.

报错the file "xxx.app" couldn't be opened because you don't have permission to view it.

iOS the file "xxx.app" couldn't be opened because you don't have permission to view it._第1张图片

 

后发现

 

图片

对应target的info文件中的字段Executable file (CFBundleExecutable)值是VANCL,而build settings栏中的Packaging中的Product Name 值是VANCL-Demo,这2个值不一致就会导致上述截图的问题。而值相同的话,就没有问题。

so,将Executable file的值改为$(PRODUCT_NAME),使得2个值保持一致,再次build,ok,编译通过。

你可能感兴趣的:(iOS the file "xxx.app" couldn't be opened because you don't have permission to view it.)