(1) Warning: "used as the previous parameter rather than as part the selector"
Sometimes,we write method using Objective-C.For example: - (void) setRGB: (CGFloat) r : (CGFloat) g : (CGFloat) b;
The correct way to write the method using Objective-C is like this:
- (void) setRGBrValue: (CGFloat) r : gValue (CGFloat) g : bValue: (CGFloat) b;
When we using the old way to do,the Xcode(Version 4.6) will give the warning.We can add a line follow:
#pragma clang diagnostic ignored "-Wmissing-selector-name"You can put this line to the .pch file,like this all the file can remove the warning.
reference link:http://stackoverflow.com/questions/14579197/how-to-disable-new-xcode-4-6-warning-for-whole-project-used-as-the-name-of
(2) If you want to output the address of an Object,you can using "%p",this format can output the object's memory address,if you using the other way,like "%8X" etc,the Xcode (version 4.6) will give the warning.
reference link:http://stackoverflow.com/questions/7555143/nslog-an-objects-memory-address-in-overridden-description-method
http://www.cocoachina.com/bbs/read.php?tid=134596
-----2013/02/26
(3) When you caught a issue that the "The file "XXXX-XXXX-XXX..." couldn't be opened because there is no such file",you will can not see any error in the console,so how to fix this issue?
the way is to "Clean" your project,then you run the app,and your app will stop in the correct location causing this crash issue.
(4) How to make your app stop in the correct location caused crash bug?
Please do like this:
- Please show the Breakpoint navigator;
- click the tiny button in the right-left of Xcode;
- click "Add Exception Breakpoint";
- click "Done".
Then your app will stop in the right location when it occur a bug.
-----2013/05/24 Portland OR US
Continue...