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
2
votes
0 answers

Clang PCH performance worse than with headers?

I have a set of headers included to source files which is rarely/never changed. Parsing/reparsing of frequently changed source file which uses the headers (IDE use case) takes too long (few seconds). As a way to increase the performance i'd like to…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
2
votes
1 answer

xcode: share .pch file for 2 targets

I published lite version of my iPhone-app and is in the store. Now, I want to add the code for the 'full' version and am stuck at a point. After adding the second target in the project, the lite version compiles fine, but the full version does not.…
Sam
  • 827
  • 4
  • 9
  • 21
2
votes
0 answers

Why does force including precompiled headers work at all?

Apparently it is recommended to force include precompiled headers, so that the source may be used with and without precompiled headers. Even CMake uses the force include method on precompiled headers. However for example Microsofts MSVC…
Josch
  • 139
  • 2
  • 9
2
votes
0 answers

Failed to emit precompiled header (opencv, xcode)

My goal is to use opencv camera functions in react-native. Currently, I'm struggling to fix some errors. My project contains many files: When I try to build the project, I got two errors. For me the second error is most important: Failed to emit…
aromahyang
  • 21
  • 1
2
votes
2 answers

changing from `stdafx.h` to `pch.h`

I clone a repo, c++ solution with 3 projects, a console application .exe a dll project .dll and a unit test .dll. I am not sure with what version of VS or compiler it was built or created. building the solution on my machine was throwing…
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
2
votes
0 answers

PCH being ignored when added to existing tvOS project

My problem is that I am trying to add a PCH file to an existing tvOS project but it is not taken into consideration and I can't find any resolution to this issue or at least why it is happening. I've stripped the project to a bare minimum and…
2
votes
1 answer

iostream file not found error when compiling a precompile header in Xcode

I get a 'iostream' file not found error when compiling my Prefix.pch precompile header file in Xcode 9. It seems the compiler can't find it, yet it finds and files just fine. #include // ok #include…
andrewz
  • 4,729
  • 5
  • 49
  • 67
2
votes
1 answer

R plot rotated points or filled arrowhead

is there a way in basic R to modify the pch point types by just rotating them? I´d need a pointing-right triangle (with its base parallel to the y axes). x <- runif(5) y <- runif(5) plot(x, y, pch = 17, cex = 2) #is there a parameter for…
Sara
  • 465
  • 5
  • 15
2
votes
3 answers

Xcode8 can not import vendor framework header files?

After I updated my Xcode toXcode 8. I found out that if I import vendor framework header files in .pch file. there will be a error. 'xxx' .h file not Found Such as: I want to import a framework named Umeng's header file. So I write the codes below…
generalzyq
  • 303
  • 3
  • 11
2
votes
2 answers

Xcode PCH issue - Items in PCH Not Included in Source Files

I just created a "C++ Standard Dynamic" library project using Xcode and compiled using LLVM 2.0. I notice that the PCH file contains the line #include but the file Test.cp also includes that #include statement. The strange…
jstm88
  • 3,335
  • 4
  • 38
  • 55
2
votes
2 answers

OCLint fails to discover pre-compiled workspace/project headers

I am receiving the error below when attempting to build my OCLint aggregate. We use pre-compiled headers within the workspace and although they are referenced exactly the same within the main target and OCLint aggregate, for some reason,OCLint…
2
votes
0 answers

Decrease clang parse/reparse time with chained precompiled headers?

I'm working on text editor (almost IDE) and i'm using llvm/clang behind the scenes (tokenizing, diagnostics). Almost every file that is edited includes main header file which includes some headers too which include some other headers (tree of…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
2
votes
1 answer

How do I access a Macro defined in my pch from a cocoapods lib?

Context We have a big project, so the application is separated from some common code. Each one goes in its own repo, and the app uses the common code as a lib via cocoapods. Situation Now, we need to toggle some very specific functionality,…
Andres C
  • 463
  • 6
  • 26
2
votes
2 answers

Cant find LLVM6.0 in build settings to add .pch prefix header

I created a new project using Xcode 6.3.1 and I want to manual add a 'pch' file to my project. I was looking at questions online PCH File in Xcode 6 but the selected answer says to go to LLVM6.0 but that does not exist in build settings anymore.…
DevC
  • 6,982
  • 9
  • 45
  • 80
2
votes
2 answers

Downloading a file in VBA and storing it

I need to download a file that I got from a REST search. The URL is like the following: https://abc.def/geh/servlet/rest/vault?oid=xxx&expr=files.file1 (I needed to edit it due to privacy reasons..) The file is supposed to be a result of a Nastran…
FelixTheMan
  • 33
  • 1
  • 1
  • 5