Xamarin.iOS: bundle bundle not copied to Simulator / Device for Debug / Release

I am binding to the native Objective-C library with Xamarin custom bindings.
I got the whole application running in Visual Studio with the generated DLL.
I also added the package (from the library I'm attaching to) and marked the images and nib inside it as "Bundle Resources."

But when I launch the application, it is not copied to Simulator / Device at all.
I know that the application / binding is fine, because if I manually copy the nib and images, the application works as expected.

I already tried to configure several places for the package folder, but none of them worked:
 - VSProjectFolder / Resources / miAssetKit.bundle / *
 - VSProjectFolder / Resources / *
 - VSProjectFolder / miAssetKit.bundle / *

(I also edited the csproj file to add the resource link "miAssetKit.bundle" instead of the resources in this last attempt.)

This is the error I get when using "VSProjectFolder / Resources / miAssetKit.bundle /" location

2014-08-07 12: 01: 42.832 KPIBindingiOS [4771: 70b] @monotouch: Objective-C exception thrown. Name: NSInternalInconsistencyException Cause: Failed to load the NIB bundled: 'NSBundle (not loaded yet)' named 'miKpiValueViewController'

Looking at mtbserver.log, I have this error:

[07--2014 14:40:32] : /Users/Manish/Library/Caches/Xamarin/mtbs/builds/KPIBindingiOS/decba 649-b058-4744-bbb3-22ca560a321e/output/Debug/iPhoneSimulator/KPIBindingiOS.app/miScatterPlotPopView.nib : /Users/Manish/Library/Caches/Xamarin/mtbs/builds/KPIBindingiOS/decba 649-b058-4744-bbb3-22ca560a321e/bundle/KPIBindingiOS.app/miScatterPlotPopView.nib [07--2014 14:40:32] : : System.IO.FileNotFoundException /Users/Manish/Library/Caches/Xamarin/mtbs/builds/KPIBindingiOS/decba 649-b058-4744-bbb3-22ca560a321e/output/Debug/iPhoneSimulator/KPIBindingiOS.app/miScatterPlotPopView.nib

+4
1

.xib iOS " ". .

0

All Articles