I'm using
string version = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
to get my app's version. It is set to 1.2.0
However the code above returns 1.0. I have already recreated info.plist without success.
I know I used the same code in previous projects, so what changed?
Of course I have already tried to clean and rebuild.
Xamarin Studio Version 4.1.12 (build 6) Installation UUID:
b8bdc5a1-348b-4fad-8e4f-4632ee990c59 Runtime: Mono 3.2.3
((no/8d3b4b7) GTK+ 2.24.20 theme: Raleigh GTK# (2.12.0.0) Package
version: 302030000
Apple Developer Tools Xcode 5.0 (3332.25) Build 5A1413
Xamarin.iOS Version: 7.0.2.7 (Indie Edition) Hash: 57edee2 Branch:
Build date: 2013-04-10 18:05:51-0400
The "Version" entry in the UI actually maps to CFBundleShortVersionString just like Xcode does. The "Build" entry is what maps to CFBundleVersion.
Hope that helps.
Related
I get the following error when I attempt to open a storyboard for a project I created from the "MvvmCross Single Page Native Application" template:
"Project /Users/username/Desktop/MyProject.iOS/obj/Xcode/0/MyProject.iOS.xcodeproj cannot be opened because the project file cannot be parsed."
Everything works fine if I use any of the iOS app templates.
I'm running the following environment:
Visual Studio Community 2017 for Mac (Preview)
Version 7.4 Preview (7.4 build 1026)
Installation UUID: d672627e-29b7-49bc-8b23-bb090208de99
Runtime:
Mono 5.8.0.127 (2017-10/1eac626536b) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 508000127
Xamarin.iOS
Version: 11.8.0.20 (Visual Studio Community)
Hash: 1c6f300e
Branch: d15-6
Build date: 2018-02-07 23:42:40-0500
I'm running preview so that I can target Android 8.1 for another project but I was having the same issue with the stable release.
Thanks for the help.
Upgrade your Visual Studio to Preview 8 , it should can solve the problem.
Refer to here.
I had to make a .NET project in Linux using monodevelop. When I tried monodevelop in Ubuntu I got an error message when I used nuget at certain packages saying my version is 2.8 and I needed 2.12 or earlier.I updated nuget package successfully in terminal but monodevelop uses 2.8 no matter what I do. The nuget package I can't use because of this is Tweetinvi.
In order to solve this I have to either add tweetinvi without using nuget or manage to use nuget 2.12 running from outside monodevelop, which I could not find out how to do.
https://github.com/linvi/tweetinvi
MonoDevelop does not use the NuGet version supplied by Mono that is available from the command line. So updating the command line version of NuGet will not resolve any problems with MonoDevelop.
More recent versions of MonoDevelop use later versions of NuGet.
The last MonoDevelop version 5 release was version 5.10 which supports NuGet 2.8.7.
Support for MonoDevelop 2.12 was added in MonoDevelop 6.0.2. NuGet v3 support was added in MonoDevelop 6.1. Currently MonoDevelop 6 is only available as a FlatPak package unless you build it from source.
If you cannot build MonoDevelop from source you may be able to upgrade NuGet by copying the NuGet.Core.dll from the mono/nuget-binary GitHub repository and copying it into the NuGet addin directory addins/MonoDevelop.PackageManagement, but take a backup copy of the original NuGet.Core.dll before you do that so you can rollback the change if it does not work.
I am the developer of the library and the installation of the library without nuget is not supported on mono because I do not have enough time to look into it.
Tweetinvi supports mono > 4.5 with nuget.
My Cocos2D-x app is working only on android 22+ and crash in lower platforms throwing an exception java.lang.UnsatisfiedLinkError
App config:
Target SDK version 22 (Android Lollipop).
Min SDK is 14.
NDK r10c with eclipse.
Update:
Very useful answer https://stackoverflow.com/a/27093163/3547788
Old solution:
Possible fix by changing the ndkr10 to ndkr9 then the app will work for all android versions, For NDK10:
changing the target & min sdk at the manifest to 14
add APP_PLATFORM := android-14 to application.mk
clean and build.
Well you decide on the minimum version of Android to support and your game is then expected to run on all versions from that version to the latest version.
You cannot, for example, decide to support 2.3, 4.0.4 and 5.0.1, but not 4.4.2 and 5.0.
See <uses-sdk> reference.
I'm using Xamarin Studio Version 4.2.3 on a Mac (Starter Edition; Mono 3.2.6; Xamarin.Android Version 4.12.1; Xamarin.iOS Version 7.2.02).
I created a blank solution. I added an Android application project and an iPhone application project. Both build and run okay. Now I've added a Portable Class Library project which I want to link to from my application projects. However! My Portable Class Library project is showing up an error in my References folder for the .NET Portable Subset reference, as follows:
Framework not installed: .NETPortable,Version=v4.0,Profile=Profile136
How do I resolve this??
Additionally, when I open the Project Options window and navigate to the General section, the only Target Frameworks listed are:
.NET Framework 4,
Silverlight 4,
Windows Phone 7,
Xbox 360.
No Xamarin.Android and no Xamarin.iOS...
Please check you have the Mono MDK, not the MRE.
I installed the MDK (whatever that is??) from the following directory...
http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-3.2.6.macos10.xamarin.x86.pkg
... and that fixed things for me. No need for an uninstall and reinstall of my Xamarin setup.
Note that I had to quit and restart Xamarin Studio for the change to take effect. I also restarted my Mac for good measure!
That's weird. I don't have Xbox as an option on my Mac. I have it as an option on Windows (Xamarin Studio & Visual Studio). What edition of Xamarin do you have installed?
Maybe you need to reinstall it?
My machine:
=== Xamarin Studio ===
Version 4.2.3 (build 60)
Runtime:
Mono 3.2.6 ((no/9b58377)
GTK+ 2.24.23 theme: Raleigh
GTK# (2.12.0.0)
Package version: 302060000
=== Apple Developer Tools ===
Xcode 5.1 (5084)
=== Xamarin.iOS ===
Version: 7.2.0.2 (Business Edition)
Hash: 58c3efa
=== Xamarin.Android ===
Version: 4.12.1 (Business Edition)
=== Xamarin.Mac ===
Xamarin.Mac: Not Installed
What version of MonoTouch is needed to use the newly release Xcode 4.3.2 It seems xCode is now using a different deployment model.
Xcode 4.3 support was introduced in MonoTouch 5.2.5.