I just upgraded to the latest 4.3 Xcode. I have my plist.which is preprocessed and compared to 4.2 does not seem to work anymore.
I set Info.plist other pre-processor
flag -traditional
(to be able to skip //
considered as a comment).
I set
#define MYSERVER http://127.0.0.1:1234/
and in my plist
<key>myhost</key>
<string>MYSERVER</string>
When I check in the new Xcode 4.3 I see inside NSDictionary *bundle = [[NSBundle mainBundle] infoDictionary];
myhost = "http:/ /127.0.0.1:1234/"
I have a quick hack for it.
NSString *hack = [[[[NSBundle mainBundle] infoDictionary] objectForKey:@"myhost"] stringByReplacingOccurrencesOfString:@" " withString:@""];
url = [NSURL URLWithString:hack];
This is making my app working again, but I would like to have a clean solution. Any ideas?
-traditional
is here: developer.apple.com/library/mac/technotes/tn2175/_index.html – Guava