Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4 says, "Argument Invalid" on attempt to run project

Tags:

xcode

iphone

I had a project initially created in XCode 3 and used it successfully in XCode 4 Developer Preview version.

After upgrading to XCode 4 release, any time I try to run the project on the device, I get a "Argument Invalid" dialog. Except it doesn't tell me what argument.

How does one figure out what is wrong and why I can't run the app on my device any more?

Base SDK is set to 4.3 Deployment target set to: iOS 4.2

like image 522
Jonas Anderson Avatar asked Mar 09 '11 23:03

Jonas Anderson


2 Answers

Ok, I have just managed to sort this out as I was having the same issue. This may not help you, but for me it was because I had a symlink inside a folder included in the project. I've removed this, and now it all works fine. Interestingly it works fine on the simulator in this case.

I've filed a bug with Apple on the issue (#9168893).

like image 80
Ben Clayton Avatar answered Oct 26 '22 10:10

Ben Clayton


Just clean your producto

Menu>Product>Clean (Shift+Cmd+K)

like image 27
CesareoAguirre Avatar answered Oct 26 '22 10:10

CesareoAguirre