2015-06-15 16 views
3

我得到這個錯誤添加WatchKit延伸到我的應用程序後:Xcode中得到的數據路徑錯誤

PBXCp DerivedData/App/Build/Products/Debug-watchsimulator/appwatch.app DerivedData/App/Build/Products/Debug/App.app/Watch/appwatch.app 
    cd /Users/User/Documents/App-watchapp 
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/User/Documents/App-watchapp/DerivedData/App/Build/Products/Debug-watchsimulator/appwatch.app /Users/User/Documents/App-watchapp/DerivedData/App/Build/Products/Debug/App.app/Watch 

error: /Users/User/Documents/App-watchapp/DerivedData/App/Build/Products/Debug-watchsimulator/appwatch.app: No such file or directory 

我試圖改變所得​​到的數據文件夾的路徑,清除,刪除然後重新添加擴展,沒有任何工作。

+0

我有這個相同的問題。你有沒有想出一個解決方案? – Rick

回答

0
  1. 轉到窗口>項目。
  2. 刪除導致此錯誤的項目的派生數據。
  3. 乾淨。
  4. 嘗試再次運行項目。
+0

我試過了,沒有成功。它試圖達到的文件路徑中有'Debug-watchsimulator',但實際的文件夾名稱只是Debug。也許這就是問題,但我將如何解決它? –

0

您是使用xcode還是xcodebuild cli構建的? 使用xcodebuild我得到幾乎相同的錯誤。 但是,當我用SYMROOT交換CONFIGURATION_BUILD_DIR時,錯誤消失了,我可以建立並存檔。