Missing h-files and Assistant Editor not working b

2019-02-23 06:09发布

问题:

I am missing the .h-files when I just started my HelloWorld in MonoTouch/MonoDevelop. I have the same question as this guy, but the answer provided did not help me.

I just installed everything needed for MonoTouch on a MacBook running Lion. I followed the steps/instructions to install (see here) and then created a new solution.

But since there are no .h-files, this means that whem I use the interface Builder in Xcode, I only get the "No Assistant Result" when I open the "Assistant Builder".

I have tried to create the HelloWorlsViewController.h file manually, but it doesnt seem to help either.

EDIT Here is a screencast on DailyMotion that shows the problem: http://www.dailymotion.com/waggerdagger#videoId=xok9gs

回答1:

Try Closing down XCode and MonoDevelop completely and then reopen MonoDevelop. That worked for me.



回答2:

How are you opening the xib file in Xcode?

You need to double-click the xib file from within MonoDevelop so that MonoDevelop creates a fake project (with header files) for Xcode to use.



回答3:

Problem for me was that I had moved Xcode out of Application folder to another folder. Moving it back fixed it for me.