ios - Xcode 10 警告 : Stale file '/path/to/file' is located outside of the allowed root paths

标签 ios xcode xcode10

在构建目标的运行脚本阶段运行 xcodebuild 时,Xcode 10 会产生此警告。我这样做是为了为其他平台(模拟器/真实设备)生成二进制文件,以将其转化为用于分发的胖二进制文件。为目标中间目录中的每个文件生成警告,例如:

警告:陈旧文件'/Users/nick/Library/Developer/Xcode/DerivedData/App-ctjxvxdmomwoobfgvvasfhwvcnhy/Build/Intermediates.noindex/Library-Target.build/Debug-iphonesimulator/Sub-Library-Target。 build/Objects-normal/i386/Sub-Library-Class.o' 位于允许的根路径之外。

什么是根路径?为什么会产生这个警告?有什么办法可以解决或抑制它吗?

最佳答案

我在 Xcode 11.2 上有它

解决了 1. 清理 (Cmd+Shift+K) 然后:

Cmd+Shift+R(为运行构建)

关于ios - Xcode 10 警告 : Stale file '/path/to/file' is located outside of the allowed root paths,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52478734/

相关文章:

ios - Apple FFT 给出不一致的结果

xcode - 如何在 XCode 4.2 中重命名 NSArrayController?

ios - 将 Alamofire 结果保存为变量?

ios - 如何将可选的 UIImage 附加到数组

ios - 在 swift 中部分匹配字符串与正则表达式

iphone - 在模拟器中运行时,XCode 如何通知应用程序停止

ios - 错误-段错误 : 11 in Xcode 10

ios - Xcode 10 NavigationBar 图标未出现在某些设备上

ios - 命令 CompileSwift 因 Xcode 10 中的非零退出代码而失败

ios - 负载测试 iOS 应用程序的方法