-
Pick the "Ad-Hoc" build configuration.
-
Change the provisioning profile in "project options -> iOS Bundle Signing" to an AppStore provisioning profile.
-
Rebuild the project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you uninstall the "Xamarin Shell" extension from "Tools -> Extensions and Updates" in Visual Studio, you will get a "'ShellPackage' package did not load correctly" error even after uninstalling and re-installing both Xamarin VS extensions. | |
## Cause | |
Uninstalling the "Xamarin Shell" from "Tools -> Extensions and Updates" sets a value on [1] named "Mono.VisualStudio.Shell,1.0", with the data: | |
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\XAMARIN\SHELL\1.0.0\ | |
[1] Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\ExtensionManager\PendingDeletions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<metadata> | |
<!-- warning BG8401: Skipping Com.Flurry.Sdk.Cf.D, due to a duplicate field, method or nested type name--> | |
<!-- warning BG8401: Skipping Com.Flurry.Sdk.Cf.F, due to a duplicate field, method or nested type name--> | |
<!-- warning BG8401: Skipping Com.Flurry.Sdk.Cf.G, due to a duplicate field, method or nested type name--> | |
<remove-node path="/api/package[@name='com.flurry.sdk']/class[@name='cf']" /> | |
<!-- warning BG8401: Skipping Com.Flurry.Sdk.Eh.A, due to a duplicate field, method or nested type name--> | |
<remove-node path="/api/package[@name='com.flurry.sdk']/class[@name='eh']" /> | |
<!-- Warning BG8C00: For type Com.Flurry.Sdk.Bx, base interface com.flurry.sdk.cl.a does not exist. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Obtaining the subnet mask of network interfaces on Xamarin.iOS and Xamarin.Mac | |
// | |
// On Xamarin.iOS and Xamarin.Mac, `NetworkInterface.OperationalStatus` always | |
// returns: `OperationalStatus.Unknown` | |
// https://github.com/mono/mono/blob/f48ceb9860676c342f4c91fbc2e34ea600d839c6/mcs/class/System/System.Net.NetworkInformation/NetworkInterface.cs#L552-L556 | |
// | |
// Additionally, on all "Linux-like" platforms, including iOS and Mac, | |
// `UnicastIPAddressInformation.IPv4Mask` is not implemented | |
// https://github.com/mono/mono/blob/f48ceb9860676c342f4c91fbc2e34ea600d839c6/mcs/class/System/System.Net.NetworkInformation/UnicastIPAddressInformation.cs#L165-L167 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recommendation: use the Xamarin.Android.Support.* components instead of the Mono.Android.Support.* libraries | |
As discussed on [1], the Xamarin.Android.Support.* components are now recommended over the Mono.Android.Support.* libraries. One reason for this is that the Xamarin.Android.Support components can be updated more frequently to keep pace with new releases from Google. Eventually, the Mono.Android.Support will be removed from Xamarin.Android. All new code should use the Xamarin.Android.Support libraries. | |
[1] https://bugzilla.xamarin.com/show_bug.cgi?id=15205 | |
## Xamarin.Android.Support components in binding projects | |
At the moment, there's a limitation with using Xamarin.Android.Support components in Xamarin.Android Java binding projects. Specifically, the bindings projects do not yet "know" how to automatically reference the `.jar` files used by the components. This leads to error messages like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FetchRepositoriesWithCompletionArgs { | |
public bool Arg1 { get; set; } | |
public NSError Arg2 { get; set; } | |
public NSArray Arg3 { get; set; } | |
public FetchRepositoriesWithCompletionArgs (bool arg1, NSError arg2, NSArray arg3) { | |
this.Arg1 = arg1; | |
this.Arg2 = arg2; | |
this.Arg3 = arg3; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FetchRepositoriesWithCompletionArgs { | |
public bool Success { get; set; } | |
public NSError Error { get; set; } | |
public NSArray Repositories { get; set; } | |
public FetchRepositoriesWithCompletionArgs (bool success, NSError error, NSArray repositories) { | |
this.Success = success; | |
this.Error = error; | |
this.Repositories = repositories; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var plistFile = System.IO.File.OpenRead("/Users/anyuser/Library/Safari/History.plist"); | |
NSPropertyListFormat format = NSPropertyListFormat.Binary; | |
NSError error; | |
NSData plistXml = NSData.FromStream(plistFile); | |
plistFile.Close(); | |
var plistObject = (NSDictionary)NSPropertyListSerialization.PropertyListWithData ( | |
plistXml, | |
NSPropertyListReadOptions.MutableContainersAndLeaves, |
"Error Application Name is not set in iOS Application Property Page"
"Error Identifier is not set in iOS Application Property Page"
To fix this problem, open the Project Properties, and under the "iOS Application" tab, fill in the "Application Name", "Identifier", and "Version" fields (see also the screenshot of the "Project Properties" -> "iOS Application" settings in the Xamarin docs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir google-play-services_lib | |
cd google-play-services_lib | |
xcopy C:\Users\_your_username_\AppData\Local\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib . | |
C:\Users\_your_username_\AppData\Local\Android\android-sdk\tools\android update project -p . | |
REM Get Ant from http://ant.apache.org/bindownload.cgi | |
set PATH="%PATH%";"C:\Program Files (x86)\Java\jdk1.6.0_39\bin" | |
C:\_path_\_to_\ant.bat release |