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
1
vote
0 answers

iOS Dev using XCode5 - Precompile of .pch failing, appears to be building in c context rather than ObjC

I have a project for an iOS app that Ive used in the past, the app is on the store. In attempting a recent update after using the source in Xcode 5 for the first time I find the pch precompile is failing like this: Duplicate protocol definition of…
McMac
  • 21
  • 2
1
vote
2 answers

Assigning pch symbols in plot

I have a plot of many omega values within which I want to highlight about 40 points among the many others. The plot argument I am using is: plot( log( dog[ order( dog$gbm.dog ) , 8 ] ), pch = ifelse( dog$refseq_mrna %in%…
Marcus
  • 55
  • 5
1
vote
1 answer

xcode searches for prefix.pch file in wrong directory

i made a xcode project and changed the name of the folder in xcode as well as in finder. then i proceeded to relink them via the method shown here: Renaming xcode 4 project and the actual folder so originally the folder was weatherScan2 which i…
snapfish
  • 175
  • 1
  • 14
1
vote
1 answer

Plotting different shapes for data points belonging to different groups in R

I am trying to plot the first two columns against each other of a matrix Y, and assigning different data points different shapes and colors according to which group they belong to in the 12th column of my data set. Below is my code: X <-…
user2976477
1
vote
0 answers

pch prefix clang error

I have my prefix pch file but I don't know why its giving me this error. Please help. clang: error: no such file or directory: '/Users/djtakeuchi/Documents/Xcode Projects/Xcode Supplied Source…
1
vote
2 answers

Inserting pch data point symbols into axis labels in R

I have combined two data sets into one graph and I would like to add the corresponding pch symbols right into the axis labels. Now, I know that solutions using text() instead of xlab and ylab and Hershey vector fonts (instead of citing a pch=16,…
Brian
  • 349
  • 4
  • 16
1
vote
1 answer

How to prevent the need for importing a framework in each class?

I have a framework called Parse, which is used in almost each Viewcontroller that I have. How can I prevent the need to put an import statement in each class, like #import Parse/Parse.h ?? I heard you should include it in the PCH file, but somehow…
Rudolf J
  • 517
  • 4
  • 10
1
vote
0 answers

imports of *.pch files are ignored for new classes - why?

I have a project created with Xcode 3 and now want to update it using Xcode 4.3. I used a *.pch file which works great - however on all the new classes I create now in Xcode4.3 this pch is ignored and I need to write the imports manually for these…
user387184
  • 10,953
  • 12
  • 77
  • 147
1
vote
1 answer

Objective-C NSLog variant: __FILE__ without fullpath and output without datetime

For debugging purposes I've added this code to my .pch. Although I'm pretty satisfied with the output, I would like to improve the way I print the filename (without the full path) when I use __FILE__ in the DLog definition. I'm using [[NSString…
microspino
  • 7,693
  • 3
  • 48
  • 49
0
votes
1 answer

Xcode 4 gcc failure on Archive build: skips precompile step? (also after cleanup)

as many others i face the problem that my xcode (4.3.2) tells me: cc1obj: warning:…
thedanielhanke
  • 730
  • 1
  • 6
  • 22
0
votes
1 answer

Lots of imports in .pch file

I've started working on a project that has a shed load of imports in the pch file. Why would someone do this? Lazyness? I guess if I refactor them out, I could potentially decrease compile times..... is that so?
bandejapaisa
  • 26,576
  • 13
  • 94
  • 112
0
votes
0 answers

Build input file cannot be found: After Creating Bridging Header

I add some Objective-C libraries to my SwiftUI project using bridging header, Now am facing an error: Build input file cannot be found: '/Users/.../../QPos-iOS/QPos-iOS-Bridging-Header'. Did you forget to declare this file as an output of a script…
Nisar Ahmad
  • 885
  • 1
  • 10
  • 25
0
votes
0 answers

How can I use precompiled headers from a header file?

distilled.cpp #include "distilled.hpp" int main() { } distilled.hpp #include "stdafx.h" batch cl distilled.cpp /Yustdafx.h /Fpstdafx.pch /I include /std:c++20 /EHsc -DDEBUGMODE=true /c This is the ideal setup but generates compiler…
Logos King
  • 121
  • 1
  • 6
0
votes
1 answer

Forcing specific plot symbols for points in R ggplot2

I am trying to specify manually, the shape of data points in r ggplot2 but can't seem to get it to work. Below is a sample example p.est<- c(1.65, 1.55, 0.70, 1.61, 1.25) lcl<-c(1.25, 1.10, 0.50, 1.20, 1.02) ucl<-c(2.20, 2.05, 0.90, 2.20,…
Kay Jay
  • 57
  • 4
0
votes
1 answer

Applying `set_property` on source file generated for CMake precompiled headers without hardcoding PCH path

I am using CMake's target_precompile_headers to generate a precompiled header from a PCH.hpp file in a project I'm contributing to. I need to ensure that the resultant generated source file has the exact same compilation and warning flags as the…
Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416