1. 程式人生 > >The file * couldn't be opened because you don't have permission to view it

The file * couldn't be opened because you don't have permission to view it

images logs building mis 人的 iss perm 也有 編譯

The file * couldn‘t be opened because you don‘t have permission to view it.

最近,經常在接收別人的代碼時出現,出現的原因的可能性也有很多,現在我列舉一部分:

第一種:查看工程中警告,發現需要更新舊工程的設置:

技術分享

雙擊警告,在彈出的更新,更新設置。

技術分享

第二種:Project---Build Setting中 修改這一項,變成Default Compiler(Apple LLVM X)

技術分享

第三種:直接product -clean一下就ok.

第四種:清除緩存

Xcode->Preferences->技術分享

第五種:把info.list的Executable file 與building set 中的product_name改成一致,例如都為$(PRODUCT_NAME)

技術分享

第六種:編譯文件是否添加,或添加完畢。

技術分享

The file * couldn't be opened because you don't have permission to view it