Data path error in Xcode

I am getting this error after adding WatchKit extension to my application:

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

      

I tried to change the derived data folder path, clean, delete, re-add the extension and nothing worked.

+3


source to share


2 answers


  • Go to Window> Projects.
  • Delete derived data for the project that is causing this error.
  • Clean.
  • Try the project again.


0


source


Are you building with xcode or xcodebuild cli? With xcodebuild, I get almost the same error. But when I exchange CONFIGURATION_BUILD_DIR with SYMROOT, the error is gone and I can create and archive.



0


source







All Articles