ios - Xcode 派生数据路径错误

标签 ios xcode watchkit

我在将 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

我试过更改派生数据文件夹的路径、清理、删除然后重新添加扩展,但没有任何效果。

最佳答案

  1. 转到“窗口”>“项目”。
  2. 删除导致此错误的项目的派生数据。
  3. 清洁。
  4. 再次尝试运行该项目。

关于ios - Xcode 派生数据路径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30856829/

相关文章:

ios - 合并/合并两个图像时,iPad 应用程序因内存警告而崩溃

ios - 在 Swift 迁移后使用未解析的标识符 'enumerate'

ios - 在 iOS 中传递上下文以将 Core Data 与 Storyboard 一起使用

swift - 如何使用 contextForSegueWithIdentifier 将数据包含在推送转场中?

ios - 使用 Watch 连接框架将数据从 iPhone 传输到 iWatch

ios - iPhone 开发的 Git 管理

ios - 创建具有默认行为的更可重用的 UITableView 子类

xcode - 使用 Xcode 5.0 和 Rcpp 时出错(已安装命令行工具)

ios - 调试器不适用于 Apple Watch Series 3

ios - 为变量类型 CGFloat 指定范围