Questions tagged [prefixheader.pch]

In Xcode, you add imports of the header files you want in a “prefix header,” and enabling Precompile Prefix Header so they get precompiled. But the idea behind a prefix header is different from precompiling. Precompiled headers were invented to make compiling faster. Rather than parsing the same header files over and over, these files get parsed once, ahead of time.

3 questions
5
votes
1 answer

Reference class definition from prefix header in swift

I'm adding swift code to an existing Objective-C project. I'm having problems referencing a definition from the existing prefix header. I have a class called MyClass, defined in Objective-C with .h: @interface…
0
votes
0 answers

Xcode 10 error PrefixHeader.pch.gch' is not a valid precompiled PCH file

I have a project on objective-c and am trying to launch it in Xcode 10. I get this error PrefixHeader.pch.gch 'is not a valid precompiled PCH file In Xcode 9.4, everything worked without errors. How I tried to solve the problem: clean…
Alena Alen
  • 13
  • 3
0
votes
2 answers

How to define a macro to perform an action in ios

I'm trying to write a custom macro that performs some action when called it. Here is my constants file: #ifdef __OBJC__ #import #import #endif #define SHOW_VIEW [(AppDelegate*)[UIApplication…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109