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
0
votes
1 answer

What is the preprocessor define for C++ language in Xcode precompile header?

In my Prefix.pch file I am using __OBJC__ preprocessor define for compilation of Objective C headers. What is the equivalent for compilation of C++ headers? #ifdef __OBJC__ #import #import #endif
andrewz
  • 4,729
  • 5
  • 49
  • 67
0
votes
1 answer

Using UTF-8 codes for use in intToUtf8() in R?

I'm trying to use UTF-8 code to put a symbol in some text in an R figure. If I wanted a black circle, I could use the code intToUtf8(9679). Where can I find a database that lists the values for other symbols? I want to find the code to create a red…
mikey
  • 1,066
  • 9
  • 17
0
votes
2 answers

ggplot2 pch 21 fill within aes not working

I'm trying to make a scatterplot of sorts, where the symbol shape and the symbol fill are set by two different variables. Here is an example of my data: Sample Experiment Replicate EPS Time Group 1 1 1 5 24 Wild-type 2 1 3 4.5 24 …
Ensa
  • 105
  • 1
  • 5
0
votes
0 answers

How can I restart a class added in prefix.pch in my objective c project?

I added a extension class into my prefix.pch. I added some private functions to this class. WHen I call this class from some viewController, this is initialized, but when I call again isn't reinitilized. How could be possible reinitialized this…
user3745888
  • 6,143
  • 15
  • 48
  • 97
0
votes
1 answer

Visual Studio 2017 PCH doesn't improve build time

I enabled PCH for one project. Added all commonly used headers(from C++ std lib and boost) into stdafx.h, added stdafx.cpp and included stdafx.h there. I selected Create in the properties of stdafx.cpp and selected Use in the project settings. Also…
herolover
  • 733
  • 3
  • 9
  • 18
0
votes
1 answer

How to import existing Objective C PCH file in Swift class

I have declared URLs etc in PCH file in objective C project. I am also using swift in same project but not able to get those URLs declared in PCH file. I tried by importing PCH file in bridging header but values are not showing in swift View…
0
votes
2 answers

Default template parameter not found if header is in precompiled header xcode

i have a simple function like this in a test.h header template Dst format(const T&); template Dst format(const T&) { return Dst(); } in test.cpp #include "stdafx.h" #include…
Mihai Sebea
  • 398
  • 2
  • 10
0
votes
2 answers

iOS clang error no file or directory

I''m very unfamiliar with the iOS build process. I was giving a legacy application that hasn't been touched in a few years, it was targeting iOS 5 before I opened it. I'm running into an error Command…
VirtualProdigy
  • 1,637
  • 1
  • 20
  • 40
0
votes
0 answers

PIC error compiling ACE with Clang

I'm tring to compile some ACE lib within my project with PCH support and including only sources that i need I'm on ubuntu 16.04 and i need to use clang but i've this error: error: PIC level differs in PCH file vs. current file I've prepared a…
Joseph
  • 1,029
  • 13
  • 26
0
votes
1 answer

Import a framework on a file to use on all other files in swift

I've started coding in Swift with a game project using SpirteKit I want to import SpriteKit in a file like a .pch file, so all the other files in the project can use and no need to call import SKSpriteKit again. But Swift seems not support .pch…
Scofield Tran
  • 828
  • 1
  • 18
  • 30
0
votes
1 answer

Automatically resizing a custom plotting character?

Hey everybody I am hoping there is someone out there who can help me with plotting a custom made pch in R. In my case I am trying to create a graph relating to water quality over time. One way to monitor water quality is to use a secchi disc, which…
s_scolary
  • 1,361
  • 10
  • 21
0
votes
0 answers

How to ignore certain PCH defines in some classes? (Cannot find interface declaration for)

For example, I created a category UILabel+AALabel.h And has added it into PCH: #import "UILabel+AALabel.h" But this obviously causes an error in my category file (UILabel+AALabel.h), because it attempts to import itself: "Cannot find interface…
0
votes
1 answer

Line markers (pch) are not shown for big datasets using R plot command

I am able to plot data and and everything seems to work. The only problem is that R seems to decide if line markers are inserted or not. I have several different datasets, for the dataset with 1500 the plot works fine and I can see the markers. Any…
0
votes
1 answer

#define in .pch file is not working

I'm trying to define the type of the build by using those 3 variables, but for some reason, it always uses the first one. Any ideas? // Pay attention: only ONE of these modes MUST be chosen. // // #define DEVELOPMENT 0 #define PRODUCTION 1 #define…
ytpm
  • 4,962
  • 6
  • 56
  • 113
0
votes
1 answer

How to Declare Global Variable in Swift?

I am creating an App in which I have to declare some constant as global. in Obj C I could use pch file but I don't know how to define in Swift? For Example in Obj C .pch file if I declare define Red [UIColor redColor] then it works through out…
M Swapnil
  • 2,361
  • 3
  • 18
  • 33
1 2 3
9
10