XCode 9 Beta在应用启动时显示错误 [英] XCode 9 beta showing error when app launch

查看:59
本文介绍了XCode 9 Beta在应用启动时显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以XCode 9 Beta版本打开我的现有项目.代码已编译,没有任何错误,但是当应用启动时模拟器在警告中显示警告时.

I am trying to open my existing project in XCode 9 Beta version. Code is compile without any error, however when simulator showing warning in alert when app launch.

请让我知道出了什么问题.

Please let me know what is going wrong.

无法更改所有者文件:///Users/stiga/Library/Developer/CoreSimulator/Devices/2A6099D8-6743-4551-AE73-CE7AFCAEE9FE/data/Library/Caches/com.apple.mobile.installd.staging/temp.opEVCA/TestWifog.app:错误域= MIInstallerErrorDomain代码= 4无法删除ACL"UserInfo = {NSUnderlyingError = 0x7fdb12706dc0 {Error域= NSPOSIXErrorDomain代码= 13权限被拒绝"UserInfo = {SourceFileLine = 392,NSLocalizedDescription =打开/Users/stiga/Library/Developer/CoreSimulator/Devices/2A6099D8-6743-4551-AE73-CE7AFCAEE9FE/data/Library/Caches/com.apple.mobile.installd.staging/temp.opEVCA/TestWifog.app/GoogleSignIn.bundle/ar.lproj/GoogleSignIn.strings失败:权限被拒绝,FunctionName =-[MIFileManagerremoveACLAtPath:isDir:error:]}},FunctionName =-[MIFileManagerremoveACLAtPath:isDir:error:],SourceFileLine = 392,NSLocalizedDescription =无法删除ACL}

Failed to change owner of file:///Users/stiga/Library/Developer/CoreSimulator/Devices/2A6099D8-6743-4551-AE73-CE7AFCAEE9FE/data/Library/Caches/com.apple.mobile.installd.staging/temp.opEVCA/TestWifog.app: Error Domain=MIInstallerErrorDomain Code=4 "Failed to remove ACL" UserInfo={NSUnderlyingError=0x7fdb12706dc0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={SourceFileLine=392, NSLocalizedDescription=open of /Users/stiga/Library/Developer/CoreSimulator/Devices/2A6099D8-6743-4551-AE73-CE7AFCAEE9FE/data/Library/Caches/com.apple.mobile.installd.staging/temp.opEVCA/TestWifog.app/GoogleSignIn.bundle/ar.lproj/GoogleSignIn.strings failed: Permission denied, FunctionName=-[MIFileManager removeACLAtPath:isDir:error:]}}, FunctionName=-[MIFileManager removeACLAtPath:isDir:error:], SourceFileLine=392, NSLocalizedDescription=Failed to remove ACL}

推荐答案

当目标中的文件被标记为只读时,就会发生此问题.一个常见的原因是复制文件脚本,其中要复制的文件是只读的.

The problem happens when files in your target are marked read-only. One common cause is a copy-files script where the files it is copying are read-only.

您可以尝试在脚本中添加 chmod u + w 命令,以确保在将文件复制到目标文件后对其进行读写操作.

You can try adding a chmod u+w command to the script to ensure the files are read-write after being copied into the target.

对于Cocoapods,您可以尝试使用 chmod -R u + w/path/to/your/project/Pods 使pods子目录中的所有文件均可写.

For Cocoapods, you can try chmod -R u+w /path/to/your/project/Pods to make all files in the pods subdirectory writable.

这篇关于XCode 9 Beta在应用启动时显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆