Questions tagged [pch]

Precompile Prefix Header

In iOS development with Xcode, PCH stands for Precompile Prefix Header, to make compiling faster and avoid repeating using same header file over and over again.

146 questions
7
votes
2 answers

How to fill a single 'pch' point on the plot with two-colours?

If you take the code below, how can you change the filling of the third diamond, so it will be half-black, half-white? The solution should apply with any colors. data <- c(1,2,3) plot(data, pch=c(23,18,23), cex=c(2.5,3,2.5))
Geek On Acid
  • 6,330
  • 4
  • 44
  • 64
7
votes
0 answers

clang(libclang) performance of parse/reparse Translation Unit

I have a question about parsing performance, when using clang(libclang) and particulary function clang_parseTranslationUnit and clang_reparseTranslationUnit. I'm trying to optimize the process, but I'm really out of ideas already. The situation is…
majkl
  • 170
  • 1
  • 13
7
votes
2 answers

How can I prevent Xcode 4.2 from filling my boot drive with preamble.pch files?

There's an issue in Xcode 4.2, where Xcode will fill my boot drive with tens of GB of preamble.pch-****** files, someplace within /private/var/folders/. Does anybody know how to prevent this from happening? This means I have to manually empty these…
justin
  • 104,054
  • 14
  • 179
  • 226
7
votes
1 answer

How to use .pch with clang?

I'm having header file header.h: #define TEST_VALUE 1 #define TEST_STRING "hello world" and source file source.cpp: #include "header.h" #include "stdio.h" int main() { printf(TEST_STRING"\n"); } I've followed clang pch article and…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
7
votes
2 answers

can i use multiple PCH files in 1 project?

I want to use the PCH file to speed up the build, so i store the PCH file in a separate folder and reuse it when build the project later. but I have some #import *.dll in my stdafx.h. so if something changed in the *.dll, the PCH file need be…
fresky
  • 530
  • 5
  • 15
7
votes
3 answers

Does #import on pch slow down the compile time?

I was reading this post about imports and I had one question. Does the #import that comes in the prefix.pch file by default slow down the compile time? Should I remove it and import only when necessary? #ifdef __OBJC__ #import
Raphael Oliveira
  • 7,751
  • 5
  • 47
  • 55
6
votes
2 answers

.pch file usage

What is the importance of .pch file and what is the significance of"#ifdef OBJC"? Also, where do we define parameters like "#ifdef IS_PRODUCTION" which are checked in .pch file.
Abhinav
  • 37,684
  • 43
  • 191
  • 309
6
votes
0 answers

Assigning shapes to variables in a correlation circle plot

I would like to know if it is possible to set different shapes to the column names in the plot instead of the labels. I have shown a reproducible example to obtain the plot. #dataset mtcars #split the data into different…
Paul
  • 1,077
  • 3
  • 14
  • 27
5
votes
0 answers

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

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) My Prefix.pch contains #include "Preprocessor.h" #ifdef __OBJC__ …
Vanessa Leung
  • 770
  • 1
  • 10
  • 22
5
votes
2 answers

How do I compile PCH with a different module cache path on Xcode

The initial error from Xcode was this before I changed the home folder's name: :0: error: invalid virtual filesystem overlay file…
5
votes
2 answers

IntelliSense PCH Warning not going away

I have a ATL C++ project and I don't have any includes in one of my C++ source files. When I try to compile, I am receiving a PCH warning: Error (active) E2940 PCH warning: an unknown error occurred. An IntelliSense PCH file was not…
GTAVLover
  • 1,407
  • 3
  • 22
  • 41
5
votes
1 answer

Copy constructor conflicts with const member function in pch? A gcc bug?

I'm new to gcc, and I'm encountering a really strange problem while compiling precompiled header in gcc-4.7.2/4.7.3. The codes below: FooClass.h #include #include #include #include #include…
Lendy Zhang
  • 135
  • 7
4
votes
1 answer

#define XYZ before #include precompiled header

I am refactoring some existing software and I regularly see this #define XYZ #include "stdafx.h" where stdafx is the precompiled header file. Q1. Can a knowledgeable person please confirm the following? That (except perhaps for the file…
Ivan
  • 4,383
  • 36
  • 27
4
votes
3 answers

Xcode .pch error while compiling. clang file not found

I have a very annoying problem. I backed up my code on Dropbox but now i get this error while compiling clang: error: no such file or directory: '../firstFoo-Prefix.pch' Since the only .pch file in my project in Xcode and my project folder is…
halfblood17
  • 657
  • 1
  • 6
  • 21
3
votes
2 answers

iOS swift app build fails with cyclic dependency error in Xcode 14+

I have a swift iOS app with two static libraries - lib1 and lib2 (say). Lib2 has a dependency on Lib1 (i.e it imports Lib1 to use its types). Lib1 and Lib2 are set as dependencies for the AppTarget (when built, results in the .app file). I get the…
NightFuryLxD
  • 847
  • 5
  • 15
1
2
3
9 10