我在将 WatchKit 扩展添加到我的应用程序后收到此错误:
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
我试过更改派生数据文件夹的路径、清理、删除然后重新添加扩展,但没有任何效果。
最佳答案
- 转到“窗口”>“项目”。
- 删除导致此错误的项目的派生数据。
- 清洁。
- 再次尝试运行该项目。
关于ios - Xcode 派生数据路径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30856829/