错误:无法生成进程(参数列表太长)

Van*_*ung 5 xcode pch unity-game-engine

我正在按照本教程将 Unity 项目嵌入到 iOS 项目中。

我在这个Precompile Prefix.pch过程中遇到了错误

错误:无法生成进程(参数列表太长)

在此处输入图片说明

我的Prefix.pch包含

#include "Preprocessor.h"

#ifdef __OBJC__
    #import <Foundation/Foundation.h>
    #import <UIKit/UIKit.h>
#endif

#include "UnityTrampolineConfigure.h"
#include "UnityInterface.h"

#ifndef __OBJC__
    #if USE_IL2CPP_PCH
        #include "il2cpp_precompiled_header.h"
    #endif
#endif

#ifndef TARGET_IPHONE_SIMULATOR
    #define TARGET_IPHONE_SIMULATOR 0
#endif

#define printf_console printf

Run Code Online (Sandbox Code Playgroud)

我尝试过的解决方案:

我在这篇文章这篇文章中检查了解决方案。

  1. 将我的项目移到更高层次/Users/myproject,但仍然无法正常工作。
  2. 删除派生数据文件夹
  3. 清洁和构建

我没有太多的 C 知识,所以我不确定我应该详细说明我的项目的哪些部分,如果我需要显示更多细节,请发表评论。