[MonoTouch] Header file for view controller not created

Kroan kvince83 at gmail.com
Thu Mar 29 12:50:46 UTC 2012


Hello,

I have the same problem as Marcus. Shortly after the last update there are
no header files for my .xib files anymore. 

I tried the build you posted, but unfortunately this doesn't solve the
problem. It actually makes matter worse; it doesn't even generate any header
file anymore. Not even the default (?) UIView.h. 

I removed the obj and bin folder multiple times and also restarted the
system several times, without success. Further more I also tried to revert
my project to the state from which I know the header files were still being
generated (through SVN). Unfortunately that didn't help either. 

Lastly, I checked that all xib-files have a corresponding C# class. I have
to note though that they don't have the same name, since all my C# classes
are Universal Controllers. (i.e.: Login.cs, Login_iPad.xib and
Login_iPhone.xib . These are created through the New File-wizard of
MonoDevelop)

Versions:
MonoDevelop 2.8.6.5 (or 2.8.8.1 if I install the version you linked)
Mono 2.10.8
XCode 4.2
Mac OS X: 10.7.3

Any help would be much appreciated. Thanks in advance.

Sincerly,
Vincent Jünemann


Jeff Stedfast wrote
> 
> Hi Marcus,
> 
> Do you have a C# class with the same name as the .xib?
> 
> If not, then this isn't a bug; MonoDevelop doesn't create header files
> from
> .xibs, it creates them from C# classes.
> 
> If you do have an associated C# class, then you are likely hitting the
> same
> bug others have reported. This bug seems to be some sort of race condition
> because neither I nor anyone in our QA department has been able to
> reproduce this yet. I've implemented a possible fix for 2.8.8 but have no
> way of testing that it solves it.
> 
> If you'd like, try downloading and installing this build of MonoDevelop:
> 
> http://files.xamarin.com/~jeff/MonoDevelop-7f7438379ac6335725b411d0a0f96b817c626f7b.dmg
> 
> Hope that helps,
> 
> Jeff
> 
> On Wed, Mar 7, 2012 at 7:46 AM, ozRocker <marcusmilne@> wrote:
> 
>> This question is the same as this Missing h-files and Assistant Editor
>> not
>> working because of it (monoTouch/MonoDevelop) but none of the answers
>> work
>> for me. When I double-click the XIB file from monodevelop no header file
>> is
>> created in XCode 4.2, even after I edit the XIB in Xcode and re-save, or
>> when I quit Xcode and monodevelop and re-open. I have expanded every
>> folder
>> in Xcode and there is no ViewController.h file anywhere.
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4453165.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> MonoTouch mailing list
>> MonoTouch at .ximian
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
> 
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at .ximian
> http://lists.ximian.com/mailman/listinfo/monotouch
> 


--
View this message in context: http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4515331.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list