【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.

造成的原因:

  info文件中的字段Executable file 与 build settings栏中的Packaging中的Product Name 不一致就会导致上述截图的问题

解决办法:

  讲info.plist的文件中的Executable.file中的文件修改为:$(PRODUCT_NAME)

  修改之前

  【iOS问题】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.

另外还可以尝试:command+shift+k clean一下xcode(顺便的事)重启一下xcode,再次运行应该就可以了

上一篇:解决 No resource found that matches the given name (at 'icon' with value '@drawable/icon') 问题


下一篇:1111 WordReplace