Xcode 10警告:过时的文件'/path/to/file'位于允许的根路径之外 [英] Xcode 10 warning: Stale file '/path/to/file' is located outside of the allowed root paths
问题描述
Xcode 10会产生此警告.我这样做是为了为其他平台(模拟器/真实设备)生成二进制文件,以将其脂化为脂肪二进制文件以进行分发.对于目标中间目录中的每个文件都会产生警告,例如:
Xcode 10 produces this warning when running xcodebuild
in a run script phase of a build target. I do this to produce the binary for the other platform (simulator/real device) to lipo into a fat binary for distribution. The warning is produced for every file in the target intermediates directory, for example:
warning: Stale file '/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' is located outside of the allowed root paths.
warning: Stale file '/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' is located outside of the allowed root paths.
什么是根路径?为什么会产生此警告?有什么办法可以解决或压制它?
What are the root paths? Why is this warning produced? Is there any way I can resolve or suppress it?
推荐答案
我在Xcode 11.2上安装了它
I had it on Xcode 11.2
解决了 1.清洁(Cmd + Shift + K),然后:
solved it by 1. Clean (Cmd+Shift+K) and then:
Cmd + Shift + R(为运行而构建)
Cmd+Shift+R ( build for Running )
这篇关于Xcode 10警告:过时的文件'/path/to/file'位于允许的根路径之外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!