Argument invalid with every build in Xcode?

孤人 提交于 2019-12-22 11:27:31

问题


No matter what I try, I get an Argument is Invalid error in Xcode when I try to build to my iPhone. It works fine in the simulator. The problem is not specific to one project, it happens with any project, even when I create a new one. When I run the console it displays this

I tried deleting and re-adding the provisioning profiles, and I've gone through every setting to look for spaces because I heard these can cause this error. Can anyone help? I don't know what else to try.


回答1:


If you have a symbolic link (ln -s) in your project directory, it will work on the simulator, but cause a “The argument is invalid” error if the target is a real iOS device. (Xcode 4.5.2)




回答2:


You may check if you have a space somewhere in the settings, such as the product name or so. These cause these kind of errors in many cases....

Also sometimes a symlink in your bundle can be the reason - depending on how you set up your file structures in the app bundle...




回答3:


Actually this looks like and xcode error because it cant find those .m files. So here is a post that responded to hopefully it helps. It looks like you are gonna have to do some installation and reinstallation. XCode Update - iOS Link Error



来源:https://stackoverflow.com/questions/7576127/argument-invalid-with-every-build-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!