Linked Questions

133 votes
4 answers
91k views

In Objective-C it was sometimes useful to use static string constants to define alternate API keys (for example to differentiate between RELEASE and DEBUG keys for analytics packages, like MixPanel, ...
Richard D's user avatar
  • 5,770
54 votes
6 answers
55k views

If I added a user-defined setting in my build configuration, how can I read that setting in my Objective-C code? I have two files in my project, debug.plist and release.plist. I want my MainApp.m ...
The Lazy Hiker's user avatar
43 votes
2 answers
70k views

Probably this is pretty simple, but I can't find a way to define a preprocessor macro for a target in Xcode 6.
user1051307's user avatar
22 votes
5 answers
7k views

I have existing users of a paid for app on the App Store. I'd like to transition the app to a free app with unlock-able features. Is there a way to roll my existing users into this new free version ...
Meltemi's user avatar
  • 38.4k
5 votes
3 answers
6k views

I'm writing a Cocoa app in Objective C that's communicating with a webservice and I want it to connect to a sandbox in debug mode and to the real webservice in release mode. All I need is to change on ...
Christian's user avatar
  • 1,027
7 votes
1 answer
8k views

I want to know if it is possible to select different parts of my Fortran 95 routine to compile. For example, if I pass certain flag to gfortran, then the compiler chooses which section to use for a ...
Nando's user avatar
  • 190
9 votes
1 answer
767 views

I have a Xcode5 project (A) that is dependent on another XCode5 project (B). Project B is contained as sub-project in Project A. Project B needs to be passed a preprocessor define from project A, but ...
user3756504's user avatar
3 votes
1 answer
295 views

I'm used to Visual C++ which makes it very clear in an #ifdef block if the block is going to be compiled or not. Does Xcode (3) do this too, I couldn't see how?
Mr. Boy's user avatar
  • 64.5k
1 vote
4 answers
153 views

I have many constants in my application used by many classes of my project. These constants have to be set at compilation time (they are not modified later). For now, I use #define statements at the ...
kheraud's user avatar
  • 5,308
0 votes
1 answer
512 views

How can the product bundle identifier of an OS X app be used for an error domain? Are there any pitfalls of using it so? It doesn't seem to be defined as a macro; I tried: NSErrorDomain BSDomain = ...
outis's user avatar
  • 77.7k
1 vote
1 answer
300 views

I am trying to follow a tutorial for interfacing Game Center, that uses the Apple Documentation and Matt Gallagher's "singleton" document. However, XCode is emitting polite but vehement protests, ...
Kheldar's user avatar
  • 5,399
0 votes
0 answers
207 views

I'm trying to run this code in Xcode. I get the error for the following function call mvaddwstr(row, col, shade); Cannot initialize a parameter of type 'const char *' with an lvalue of type 'const ...
user_185051's user avatar