0
votes
1answer
27 views

How to convert warnings on iOS for “may not respond to XXX” warnings into error?

When i don't define functions in headers, i get this warning on iOS (as normally). However, i would like the compiler to stop compiling and give me error for this one, so i can find it quickly. Is ...
3
votes
4answers
178 views

Xcode Warning: Ignoring file libxml2.2.dylib, built for unsupported file format which is not the architecture being linked

I have been given the task of adding a few features to an iOS app. I checked out the source on SVN to be greeted with over 100 warnings (argh), thankfully I'm down to the last one, which is: (The ...
1
vote
1answer
103 views

Xcode 4.5 project warning - “Upgrade Compiler configuration to LLVM”

I moved a project originally coded in XCode 4.2 to XCode 4.5 and now I am getting the following warning when i build - The compiler configuration is set to 'com.apple.compilers.llvmgcc42'. This ...
1
vote
2answers
668 views

“Direct comparision of a string literal” warnings since last Xcode update

Since the last update of Xcode (to v4.6) I've got a bunch of the following warnings: "Direct comparison of string a literal has undefined behavior" This is when a NSString property is compared with ...
0
votes
0answers
31 views

Error in code to dismiss TextBox

I followed a previous question here on how to dismiss the keyboard when the user presses the return key (can't seem to find exact question anymore). I've implemented the Resign First Responder code ...
4
votes
1answer
91 views

How to find inadvertent object pointer comparisons?

Quick question - Is there a good way to find uses of == with objects instead of isEqual:? Full story: I had a bunch of code kind of like this: typedef long DataKey; DataKey x; DataKey y; if (x == ...
0
votes
1answer
76 views

Why don't I get any compiler warnings in Xcode 4.5?

I recently switched to Xcode 4.5 and I no longer receive realtime compiler warnings. I only receive the warnings after building my project. I can literally type in "laskjflskdjf" and get no errors ...
4
votes
3answers
3k views

Dealing with deprecated methods in iPhone

How do you deal with deprecated methods in iPhone that require you to use a newer method, not available in older versions? Consider the case of setStatusBarHidden:animated:, which was deprecated in ...
1
vote
1answer
166 views

Can I ignore Cora Data warning regarding too many attributes?

I'm using Core Data (with sqlite) in an iOS app and currently adding some new attributes to an entity. I'm up to around 110 attributes. I realise this is a lot, but when I tried to organise the data ...
1
vote
1answer
591 views

Conformance to UIImagePickerControllerDelegate protocol not being seen by the compiler

I'm missing something. This code functions fine, but I like to clear up all compiler warnings. Sending 'GSBBuilderImageButton *const __strong' to parameter of incompatible type ...
2
votes
2answers
621 views

Fix warning: cannot pair a synthesized setter/getter with a user defined setter/getter

I use in my application QHTTPOperation.{h/m} found here all work properly but I got 8 warnings as follow: Writable atomic property 'acceptableStatusCodes' cannot pair a synthesized setter/getter ...
0
votes
4answers
1k views

Semantic Issue: Incompatible pointer warning

I've enabled ARC, In my didFinishLaunchingWithOptions method, I wrote the following code: AppDelegate.h: @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, ...
0
votes
3answers
288 views

UIAlertView causing warning message on startup

nilMy app needs to run a few checks then maybe display a UIAlertView any time my application becomes active. To do this I have registered for didBecomeActiveNotification and run my check here. The ...
1
vote
3answers
187 views

Restructure code block so that Unused warning is eliminated

Having inherited a project from an Outsourced development company, I've been asked to modify the application and add some features. Being a bit of a perfectionist (but still relatively new) I'm ...
0
votes
2answers
313 views

New compiler warning in iOS 5 SDK about initializing with incompatible pointer types

This statement drawTimebar *drawView = [drawTimebarView initWithFrame:drawTimebarView.frame]; was working just fine in iOS 4, but with the iOS 5 SDK gives a warning: Incompatible pointer types ...

1 2
15 30 50 per page