iOS
35 TopicsMaui.NET and XCode validation
My application is developed on a Windows PC using Visual Studio 2022 (ver. 17.12.1) and .NET MAUI framework (ver. 9). After a successful build and testing using a virtual iPhone interface, Visual Studio connects remotely to the MacBook (Mac OS 15.1) sending the necessary project files to Xcode 16.1 targeting iOS version 18. The files are sent to Xcode successfully. However, Xcode validation fails with 4 errors. No matter what I change, the same errors persist. These validation errors are preventing me from deploying the code to TestFlight. Apple support refuses to help stating it is a problem with Visual Studio compilation of the package for Xcode. While I am not 100% confident, I suspect that the entries in the plist.info file contained within the project do not agree with where the files are physically located (even though they appear correct. However, I cannot see the key values in the plist file in the Xcode IPA package. I also notice that Maui opted to create entries in the plist.info file for “Assets.xcassets/AppIcon.appiconset”, but according to apple this is not how it should be done anymore. Could anyone provide thespecific changes in detail that need to happen to this project to have a successful XCode validation? I have been at this for two weeks with no solution in site. Below is a link to the referenced resources. Screenshots and Error documents Your help is greatly appreciated53Views0likes0CommentsUnique Device Identifier in MAUI
I am looking for a way to get a device identifier in NET MAUI that is cross platform compliant between Android/iOS/Windows. I originally had this code working in Xamarin Forms with the following: Android Context context = Application.Context; id = Settings.Secure.GetString(context.ContentResolver, Settings.Secure.AndroidId); iOS UIDevice.CurrentDevice.IdentifierForVendor.AsString().Replace("-", ""); Is there anything currently or planned in the future for use in NET MAUI. Thanks In Advance, Stuart Ferguson11KViews3likes1CommentSynchronizing Photos and Data with Xamarin, Asp.Net Core, and MSSQL
Good day! I am in the process of developing an internal application for merchandising purposes, intended not for the general user base. However, I'm encountering an issue: our employees often find themselves in locations with either no internet connection or a very poor one, which hinders their ability to upload necessary photos for their tasks. The development is utilizing Xamarin, Asp.Net Core for the API and MSSQL as the database. My question to the community is: how can we implement functionality that would allow employees to collect the required data throughout the day and upload it at the touch of a "Upload" button at the end of the day when internet access becomes available? Are there proven approaches or tools that could facilitate the implementation of such a solution? Your advice and experience would be incredibly valuable in overcoming this challenge.227Views0likes0CommentsHow can I publish my Xamarin App to the App Store?
Hello everyone, I tried to publish my application in the App Store, but during this process I've faced an issue. I already prepared everything I need for the distrubution. I have a certificate, an identifier with the same bundleID like my application and a provisioning profile. Anytime I try to build my application, everything worked fine until the distribution process. I already defined the build options of my IOS project, I selected the distribution certificate and the provisioning profile I generated and I included the property list file (info.plist) into the build options. So anytime I try to publish the application through the visual studio assistant it gets to the point, an .ipa file gets generated and afterwards it complains with the message "unable to validate archive". My next try was opening the created archive file with XCode and trying to publish the application with XCode itself. Even there anything worked without issues, until I had to choose a provisioning profile for the distribution. After selecting the created provisioning profile XCode complained about missing entitlements inside the provision profile, although I already defined them inside the property list file of my Xamarin IOS project. Inside my Apple Development account I don't have the opportunity to set any entitlements like in the property list. I also tried to contact the Apple Development Support, whether they can give me a permission to edit those entitlements inside the provisioning profile. But they rejected my request, due to the fact that I use a thrid party plattform (visual studio) for the distribution. Now my question is, how can I solve the conflict between the missing entitlements inside the provisioning profile and the property list I've already included into my build options? Or is there another possibility to add such entitlements inside the provisioning profile? If anyone knows how to solve that issue or knows what I could have missed during this process, please let me know. Thanks in advance.469Views0likes0CommentsMigrating Xamarin app to MAUI Startup Much Slower
I am migrating a Xamarin iOS / Android app to MAUI. When I start the MAUI app using Visual Studio for Mac on either Android or iOS, the startup time is about 12 seconds longer. This is near the beginning soon after loading all of the debug DLLs. I initially show a LoadingPage that is a simple ContentPage by setting App.MainPage = new LoadingPage(). I then pause for about 1 second to allow that to finish loading and set App.MainPage = new MainPage(). MainPage is also a ContentPage and has many views as children. One of its children is ContentView called MainView. These are all XAML files with simple code behind and then ViewModels to implement all binding. When starting up the MAUI version of my app, there are about 12 additional seconds where the screen is just blank between the loading page and the main page. I am not asking here for someone to know the answer without all my code. I am asking here for suggestions on where to look and how to diagnose this startup issue...455Views0likes0CommentsTwo .NET MAUI Build Questions
I am using the latest version of VS 2022 for Mac. I appreciate it if you could help me with the two questions below: 1 - When I build a solution for release, with the device-specific builds option turned off, does VS build the solution both for iOS and Android at the same time? I've always been under the impression that the target platform would be whatever is selected on the top/left dropdown, however recently I noticed that when I build for Android the build log includes lots of iOS-related references. In short, can I build once and then separately package for each platform? 2 - I'd like to build using the command line, I tried: dotnet build \ -f net8.0-android \ -c Release It builds fine, but it seems to be taking less than Visual Studio and I felt like the resultant application was running slower on the physical device. This can be purely psychological however, how can I make sure my command line does exactly the same as VS, including all the release-related improvements such as code shrinking etc ? Or better is it possible for you to share the CLI commands you use to build for IOS and Android before you release an application ? Many thanks, Ali288Views0likes0CommentsMAUI Firebase iOS not building
Hi, I am trying to implement and compile with Visual Studio 2022 in Windows 11 with push notifications in my MAUI application for both Android and iOS. I receive the following error when building: "Unable to copy file "D:\p\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsErrors.h" to "bin\Debug\net8.0-ios\iossimulator-x64\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsErrors.h". Could not find a part of the path 'bin\Debug\net8.0-ios\iossimulator-x64\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FIRInstallationsErrors.h'" I have already a custom Nuget configuration with a minimal path (D:\p), enabled long paths in the registry and in the 'Local Group Policy Editor'. Tried to implement Plugin.Firebase --> path too long Tried to implement Plugin.Firebase.CloudMessaging and Plugin.Firebase.Core --> can't build without errors because the path is too long840Views0likes0Comments.NET MAUI CommunityToolkit.Maui.Views.MediaElement taking too much time to load the url-video in IOS
<Grid RowDefinitions="Auto,*" BackgroundColor="Transparent"> <toolkit:MediaElement Grid.RowSpan="2" x:Name="VideoView" ShouldKeepScreenOn="True" ShouldShowPlaybackControls="False" ShouldLoopPlayback="True" ShouldAutoPlay="True" StateChanged="VideoView_StateChanged" Source="{Binding Question.GetQuestionReel,Mode=OneWay}" Aspect="Fill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" > </toolkit:MediaElement> <ActivityIndicator BackgroundColor="Transparent" IsRunning="True" IsVisible="False" x:Name="Buffering" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" Grid.RowSpan="2"/> <StackLayout Orientation="Horizontal" HorizontalOptions="CenterAndExpand" Margin="0,15,0,0" BackgroundColor="Transparent"> <Frame BackgroundColor="Transparent" BorderColor="White" Padding="15,10" HeightRequest="40" CornerRadius="20" HorizontalOptions="FillAndExpand"> <Label TextColor="White" FontSize="12" HorizontalOptions="Center" VerticalOptions="Center" Padding="0" Margin="0"> <Label.Text> <MultiBinding StringFormat="{}{0} of {1}"> <Binding Path="CurrentQuestionNumber"/> <Binding Path="TotalQuestions"/> </MultiBinding> </Label.Text> </Label> </Frame> </StackLayout> </Grid>450Views0likes0CommentsMAUI project iOS simulator startup failed MT7091
onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/onnxruntime File format not recognized I have a MAUI project. When I tried to start using the iOS emulator, an error occurred. VS was able to connect to the MAC machine normally, but the emulator failed to start. The error is as follows I tried to search for related errors on the internet, but I couldn't find a similar situation, and I couldn't find any relevant information about MT7091 either。 My VS version is as follows:439Views0likes0CommentsASMX web service client .NET 6 (IOS)
Hello, We need to migrate own Xamarin iOS application to .NET 6 iOS. But we can't call ASMX web services (available with Xamarin iOS). Web References is not available with visual studio for .NET 6 projects. We have only Connected Services but it's not supported. Have you an idea for that? Connected services will be supported? You will find more information here:https://docs.microsoft.com/en-us/answers/questions/689592/asmx-web-service-client-net-6-ios.html?childToView=6921193KViews0likes6Comments