Skip to content

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

@vanessaaleung

Description

@vanessaaleung

I got the error in the Precompile Prefix.pch process

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

Screen Shot 2019-05-09 at 2 55 13 PM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions