gpt4 book ai didi

ios - 在重新启动 Xcode 之前,XCConfig 不会刷新

转载 作者:技术小花猫 更新时间:2023-10-29 11:20:37 25 4
gpt4 key购买 nike

我想要一个目标和多个编译方案,并且有一些编译器定义由这些方案的预操作脚本声明。

预操作脚本正在生成一个 comp.xcconfig 文件,该文件由 [Release|Debug]Config.xcconfig #included。

我生成的 comp.xcconfig 包含这一行:

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) MY_TEST

我的应用包括这些行:

#ifdef MY_TEST
#error ye
#else
#error oy
#endif

如预期的那样,使用上述配置编译会产生错误“ye”。

If I then change comp.xcconfig to be:

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) MY_TEST1234

I'm still getting 'ye'. But if I quit Xcode and restart it, I'm getting the expected 'oy'.

我的问题:

有没有办法强制 Xcode 在不退出 Xcode 的情况下跟踪 xcconfig 文件的更改?

最佳答案

根据 Xcode 8.3 beta 发行说明,此问题已修复:

• Changes to xcconfig files no longer require restarting Xcode to take effect. (29805284)

http://adcdownload.apple.com/Developer_Tools/Xcode_8.3_beta/Release_Notes_for_Xcode_8.3_beta.pdf

关于ios - 在重新启动 Xcode 之前,XCConfig 不会刷新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41251646/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com