在构建目标的运行脚本阶段运行xcodebuild时,Xcode 10会生成此警告。我这样做是为了为其他平台(模拟器/真实设备)生成二进制文件,以将其脂化为脂肪二进制文件以进行分发。对于目标中间目录中的每个文件都会产生警告,例如:
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.
根路径是什么?为什么会产生此警告?有什么办法可以解决或压制它?

最佳答案

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

10-11 14:42
查看更多