我用PlayerSettings.SetScriptingDefineSymbolsForGroup方法设置一个自定义的宏定义. 在生成xcode工程的时候,宏定义并没有被带到工程中.导致宏定义无效.不知如何解决.
xcode project: build settings->Preprocessor Macros

Edit: Englist translation courtesy of google:

I use the PlayerSettings.SetScriptingDefineSymbolsForGroup method to set a custom macro definition. When generating the xcode project, the macro definition is not brought to the project. The macro definition is invalid. I do not know how to solve. Xcode project: build settings-> Preprocessor Macros

Setting defines is for C# only, not for generated Xcode project.

Does anyone know the answer to this question? How would someone also set the scripting symbols in Xcode from Unity???

I currently have a bunch of code in c#, swift, and c that rely all on the same preprocessor being defined. It seems silly and error prone to have to manually go into xcode and set the flag build flags that are already set in Unity.