2017-06-13 28 views
5

我正試圖在XCode 9 Beta版本中打開我現有的項目。代碼編譯時沒有任何錯誤,但是當模擬器在應用程序啓動時在警報中顯示警告時。XCode 9 beta顯示應用啓動時的錯誤

請讓我知道什麼是錯的。

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}

+0

我有同樣的問題,似乎GoogleSignIn.bundle配置不正確。對我來說,授權定義是針對Roboto-Bold.ttf,但是相同的ACL問題。 –

+0

關於解決這個問題的任何想法。 – Kashif

+0

仍在搜索如何解決它,我試圖看看在使用CocoaPods添加了GoogleSignIn的新項目中會發生什麼。無論如何,這總是發生在谷歌豆莢,他們配置可怕:/ –

回答

8

當目標文件標記爲只讀時,會出現問題。一個常見原因是複製文件腳本,其中複製的文件是隻讀文件。

您可以嘗試在腳本中添加chmod u+w命令,以確保文件在複製到目標後可讀寫。

對於Cocoapods,您可以嘗試chmod -R u+w /path/to/your/project/Pods以使pods子目錄中的所有文件都可寫。

+0

最佳答案,謝謝你的幫助 – Kashif

相關問題