0

I am typing code from Head First iPhone Development (O'reilly) and Xcode will build and run fine once and then, without any modification to the code, the second build will fail. Why?(I'm using command+R)

EDIT:

the first error was something similar to "can not take an object as an argument."

Moshe
  • 57,511
  • 78
  • 272
  • 425
  • That seems unlikely; do you have some more details? What's the error, for example. – Carl Norum Mar 12 '10 at 04:58
  • Yes, show us an example of the code that fails and at least what the error message your getting is. It will be a lot easier for us to help that way ;) – Jason Coco Mar 12 '10 at 04:59
  • Seems like similar problem to what you asked in http://stackoverflow.com/questions/2430568/frustrated-with-objective-c-code 3 minutes before this. – stefanB Mar 12 '10 at 05:22
  • @StefanB - yes, but this is asking specifically about builds failing after a successful build for no apparent reason. I was afraid to lump it together, because I've seen other posters het flamed for it... – Moshe Mar 12 '10 at 13:23

1 Answers1

0

i think you must miss some proper argument which should be a pointer type in your method declaration.

raaz
  • 12,410
  • 22
  • 64
  • 81