xamarin.ios

Xamarin iOS IPv6 App Store Rejection

和自甴很熟 提交于 2020-01-11 10:31:52
问题 We have been building a iOS app that is about Client - Server App. We are using an SQL connection and WCF web services in the iOS app with Xamarin. SQL Connection Code : String ips = "10.0.0.1" ; //Example. SqlConnection con = new SqlConnection(@"Data Source=" + ips + "; initial Catalog="x";user id =y;password = z;"); Apple decided to use only ipv6 on iOS9, so they published a document about IPv6 compatibility - IPv6 Documentation Xamarin published a blog post about this too - Making Your iOS

Custom bindable control in a MvvmCross Touch project

做~自己de王妃 提交于 2020-01-11 10:27:12
问题 I have a MvxBaseBindableCollectionViewCell which loads a xib that contains a custom button. I would like to be able to pass this custom button a ViewModel to bind to. Is this possible? I'm trying to acheive something like MyButton.ViewModel = ViewModel.ChildViewModel and have ViewModel.ChildViewModel.Name show as the button title. 回答1: If you want to custom bind a cell, then there's a tutorial on this in http://slodge.blogspot.co.uk/2013/01/uitableviewcell-using-xib-editor.html If you want to

iOS simulator not starting up

断了今生、忘了曾经 提交于 2020-01-11 09:45:28
问题 I am trying to run the sample example for Xamarin.Forms. I have made the sample application. I have added the required packages in the project.But for some reason I am getting the the error Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path: /Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib): not found. error MT1008: Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path: /Applications/Xcode8beta.app

How to work out which frameworks are triggering privacy-sensitive .plist issues

限于喜欢 提交于 2020-01-11 07:14:51
问题 I've got the classic problem of iTunes rejecting my .ipa because it's missing a bunch of .plist entries for 'privacy-senstive data' (in my case calendar, contacts, microphone, Apple Music and Siri!), despite my app having nothing to do with these frameworks. I want to work out which 3rd party frameworks in my app are triggering this problem, rather than take the easy way out and just add the .plist entries. Is there a way to analyse your .ipa or the files it contains to work out which 3rd

Use UIActivityViewController to share all types of files

蓝咒 提交于 2020-01-11 04:12:07
问题 I want to use UIActivityViewController to share files from my iOS app. The main question for me is how do I handle different file types. What I'v got so far: Images public void OpenInExternalApp(string filepath) { if (!File.Exists(filepath)) return; UIImage uiImage = UIImage.FromFile(filepath); // Define the content to share var activityItems = new NSObject[] { uiImage }; UIActivity[] applicationActivities = null; var activityController = new UIActivityViewController(activityItems,

How to use Xamarin's IOS Remoting Simulator

南笙酒味 提交于 2020-01-10 20:06:33
问题 Apparently the new Xamarin iOS remoting simulator for Windows is available in the Xamarin Alpha channel for Visual Studio on Windows. However, there seems to be no mechanism by which it will appear. There seems to be no buttons or options to show this new iOS simulator in Windows. There is zero documentation online, or videos or forum answers relating to this If anyone from Xamarin is following this tag, can you please elaborate. Thanks 回答1: iOS Simulator (for Windows) Preview Installer:

iPhone application crashes with Mprotect failed error (MonoTouch)

Deadly 提交于 2020-01-09 08:02:31
问题 I have a problem with my iPhone application developed with MonoTouch. I am developing an application that contacts a WCF Service, and when the WCF Service answer back, I update an UITableView with the returned data, when this is done it sends a new WCF async call, and when it answer back it updates the table again and so on. The problem is that when it has done this in a variable amount of time, it crashes with an Mprotect failed error 12. This only happens when the application is running

xamarin IOS designer cannot constraint to super view edges?

亡梦爱人 提交于 2020-01-07 06:17:10
问题 I just updated my Xamarin version and I found that I cannot constraint to the leading edge or trailing edge of the Container View. However, I can only constraint to the Leading margin or Trailing margin(Picture Attached). Is there a way to let me constraint to the edges of a super view not the margin? 回答1: Here's my workaround for the time being: Set the constraint in the designer, then save and close it. Open the storyboard in a text editor and update the constraint element's attribute from

Xamarin Forms Error Handling - Messaging Center Alert not displaying from model

瘦欲@ 提交于 2020-01-07 04:21:22
问题 I'm trying to implement error trapping functionality from the view model to the view controler, so if there is an error, a message is displayed. Here is the code i'm using: ItemsPage View Model async Task ExecuteCommand() { ... try { } catch (Exception ex) { Debug.WriteLine(ex); MessagingCenter.Send(new MessagingCenterAlert { Title = "Error", Message = "Unable to load services.", Cancel = "OK" }, "message"); } finally { IsBusy = false; } ItemsPage.XAML.cs File In the constructor for the page.

ERROR ITMS-90045: Invalid Code Signing Entitlements. Xamarin Studio

随声附和 提交于 2020-01-07 03:51:09
问题 This error popped up when I tried to upload my .ipa to the App Store. I tried to Clean the project in Xamarin and regenerate all the provision files but still, doesn't solve the issues. 回答1: change Entitlements.plist to this <plist version="1.0"> <dict> <key>aps-environment</key> <string>production</string> </dict> </plist> 回答2: This fix worked for me using Visual Studio for Mac v7.7 Your provisioning profile and signing identity must be set up on IDE correctly: Go to Project Options -> iOS