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

来源:互联网 发布:js的push方法 编辑:程序博客网 时间:2024/05/08 13:26

最近重构项目,增加target来区分环境进行差异化编译配置。

报错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,编译通过。


0 0
原创粉丝点击