Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一小段条件代码(用于测试目的),我希望根据代码是否通过 Xcode 构建到是否通过 XCodeBuild 构建(即代码是否由开发人员构建)来改变行为而不是由构建系统构建)。
有没有办法确定这一点?