I am trying to deploy my MonoTouch Application to my iPhone. I have set up the profile on the 开发者_JS百科phone and purchased the MonoTouch license. However when I try to deploy to the iPhone I am getting the following error:
mtouch failed with no output(1)
The compiler is giving this error:
Error: You should provide one root assembly only.
This only appears when I try to deploy the application to the iPhone. If I use the simulator it compiles and runs fine.
Anyone have any ideas how to fix this?
UPDATE:
Actually this error only occurs if I try to Debug on the iPhone. If I use the Release build option it actually deploys fine.
This error occurs when more than one argument to 'mtouch' is not preceded by an option.
If you're using MonoDevelop then this could occur if you added some "Additional mtouch arguments" (in Options | iPhone Build). Since they could be different in Build and Debug it could explain why you have no issue in Release mode. Try matching the Debug arguments to the Release arguments.
If you're using mtouch on the command line then check every one of your arguments. Only one should not be prefixed, and this should be the name of your main assembly.
精彩评论