So I built an app in Visual Studio and it's been running perfectly fine in the IOS Simulator.
I'm preparing to push the app out through Test Flight then the AppStore and it seems the only way to do this is through Xamarin Studio?
However, the app doesn't work in Xamarin Studio.
There seems to be multiple issues, maybe all related to file references.
Firstly, I noticed it was failing loading an XML file that I've loaded in as an Embedded Resource. In Visual Studio the files could be referenced via "Todo.iOS.filename.xml". With absolutely zero code changes, running in Xamarin Studio failed. After iterating through the resource manifest, I was able to determine that the path to the files have changed... Now I need to reference them via "Todo.iOS.Data.filename.xml".
Notice the new "Data" part of the resource path.. The files are in a Data folder, but this is the case in Visual Studio, so why the difference in paths?
This worries me as it instills very little confidence in the consistency between code written in Visual Studio and Xamarin Studio.
I want to continue to maintain my code in Visual Studio (and I've paid a pretty penny for the privilege).. But I need to publish out of Xamarin Studio.
After fixing this path issue, the app is still crashing. I noticed before it crashed an icon was missing on the page that made it crash. So I'm a little suspicious that the image paths are also being messed with?
All images are in the Resources folder in the IOS project.. In visual studio they were loaded just by their filename.. eg:
image.Source = FileImageSource.FromFile(imagefilename);
Is this also failing in Xamarin Studio?
Can anyone point me to any resources that can explain these differences between Xamain Studio and Visual Studio running the exact same solution / code?
This is quite frustrating as I was ready to start pushing the app out and I didn't anticipate having such consistency problems with Xamarin Studio. I have people waiting for the app and it's thrown a huge spanner in the works.
FYI, this is a cross-platform app in Xamarin.Forms that I'm deploying to IOS and Android.
It's using a shared project model, which I actually based off the recipe in the Todo Shared sample application (I still haven't refactored the Todo. out of the codebase).