Xcode 6 刪除 DerivedData後,編譯異常

來源:互聯網
上載者:User

標籤:xcode   編譯   異常   ios   

一、現象

Xcode 6 編譯異常,始終報項目名稱目錄找不到。

ld: file not found: /Users/dxxxDev/Library/Developer/Xcode/DerivedData/xxxx-xxdfasdfasfasdoczqswzexnvbxai/Build/Products/Debug-iphoneos/xxxx.app/xxx

clang: error: linker command failed with exit code 1 (use -v to see invocation)

二、原因

項目最初建立的時候,使用的是英文名字(使用中文名稱會出現亂碼,即在identify後面出現三個短橫,無法刪除的情況)。

項目建立完畢後,將名字改為中文。

全部清除DerivedData過一次,清除之前沒有任何問題。


三、處理方法

1、捨棄測試構建

 菜單 Product -->  Scheme-->Edit Scheme

在左側選中 Build ,右側將紅色圈起來的部分取消選中即可。




2、恢複方法


 Target --> Build Settings -->Packaging --> Product Module Name 改為原來的英文名字(即報錯中找不到什麼檔案,就改成什麼檔案名稱),即可。

之後,可以將名稱再改回中文名稱。



著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

Xcode 6 刪除 DerivedData後,編譯異常

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.