5

I am following this tutorial to embed Unity project in iOS project.

I got the error in the Precompile Prefix.pch process

error: unable to spawn process (Argument list too long)

enter image description here

My Prefix.pch contains

#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

Solutions I've tried:

I checked solutions in this post and this post.

  1. Moved my project in higher hierarchy /Users/myproject, but still not work.
  2. Delete Derived Data folder
  3. Clean and build

I don't have too much knowledge in C, so I'm not sure which parts of my project should I elaborate, please comment if I need to show more details.

Hamid Yusifli
  • 9,688
  • 2
  • 24
  • 48
Vanessa Leung
  • 770
  • 1
  • 10
  • 22

0 Answers0