I am not sure if I am doing something completely wrong, but I keep getting the following error in Visual Studio for Mac when trying to sign my Xamarin forms app "No matching profiles found"
A bit of background, I created a Xamarin Forms app for iOS and Android. I followed the steps here to create a provisioning profile etc https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/publishing-to-the-app-store?tabs=macos#:~:text=Xamarin.iOS%20apps-,Create%20and%20install%20an%20App%20Store%20provisioning%20profile,-iOS%20uses%20provisioning
I have removed and re-added my Apple developer account in Visual Studio multiple times, same on Xcode. I've manually downloaded the provisioning profile and double-clicked to install it, no change, still the same error.
I thought it might have been the app I created, so I created a brand new dummy test app, deleted my old provisioning profile and stuff from the Apple developer website, created a new identifier on the Apple developer site, set the BundleID to explicit and gave it the exact same name as the Bundle identifier in my Info.plist for the new dummy app I created. Created a new profile, downloaded with Xcode, manually, signed into and out of my apple developer account in Visual Studio for Mac and Xcode and still I get the same error, even with this new dummy app.
I have deleted the profiles from the ~/Library/MobileDevice/Provisioning Profiles folder too before re-downloading, makes no difference.
Have I missed something or am I doing something wrong? I am trying to set up the app to use TestFlight so I can limited people access it and test it, but at this stage I'm completely blocked by this.
I am using Visual Studio Mac 2022.
Thanks!
I worked out what the problem was by following this tutorial on YouTube. https://www.youtube.com/watch?v=fkBRXzotbzw
Basically I had created the wrong profile type on the Apple site when creating the provisioning profile. I should have selected App Store Distribution but I was selecting App Store Developer I think.
Related
I am using Visual Studio 2019 on Windows, developing an App using Xamarin Forms, for Android and iOS. Everything is the latest version.
I am trying to use Firebase to add Push Notification functionality. I have been able to get this functioning for the Android App, but whatever I do seems to fail / not work for iOS.
I have tried using both Xamarin.Firebase.iOS.CloudMessaging and Plugin.FirebasePushNotification with the same result. Starting from a basic app created in Visual Studio, as soon as I add the basic code for the iOS project, the app stops working and just times out after 17 seconds with running any of the project code (no breakpoints are hit).
I also tried downloading this demo app https://github.com/jfversluis/XFFCMPushNotificationsSample. I created my versions of google-services.json (Android) and GoogleService-Info.plist (iOS). The Android app runs but the iOS app does not (times out after 17 seconds).
Having tried so many different samples, examples, options, etc - I am at a complete loss as to what the issue might be. The situation is not helped by me being new to App development & Xamarin Forms!
I appreciate that I haven't added any "I tried this" code, but I'm hoping someone can help me with debugging this. Visual Studio doesn't appear to show anything, can I get more helpful info from the iPhone?
Edit:
For iOS,
I have created a Key and enabled Apple Push Notifications.
I have uploaded the key to the iOS project in Firebase (Cloud Messaging).
I have downloaded the GoogleService-Info.plist file and added it to the iOS project in Visual Studio, and set it to BundleResource
I have enabled Push Notifications in Entitlements.plist
I have enabled Background Modes & Remote Notifications in Info.plist
I am using Automatic Provisioning
I have checked that Bundle Identifier is correct
I have added FirebaseAppDelegateProxyEnabled to info.plist
EDIT 2:
I have manged to get an error message, which happens during the call to
FirebasePushNotificationManager.Initialize(options, true);
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.FirebasePushNotification.FirebasePushNotificationManager.Initialize (Foundation.NSDictionary options, System.Boolean autoRegistration) [0x00029] in /Users/runner/runners/2.169.1/work/1/s/Plugin.FirebasePushNotification/FirebasePushNotificationManager.ios.cs:141
at MyApp.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00014] in \MyKRing.iOS\AppDelegate.cs:34 }
I have developed a cross platform app with xamarin forms , after I completed development i went on to testing . I successfully deployed to an andriod device and all is good on that platform, but im struggling to deploy the app to my physical iphone iv have searched EVERYWHERE and couldn’t find any help, this is my situation:
I have created free provisioning profiles and all the necessary certification according to the Microsoft guide on free provisioning
I successfully deployed a dummy app to my physical device throught xcode(so that means provisiong was successfull ????)
But my signing ID and provisioning profile is not listed in visual studio 2019
And yes
I did pair to my mac and connected my iphone to the mac AND targeted my iphone in the build scheme
Bundle ID’s also match and my iphone is visible in VS but i my profile is not listed so i cant deploy.
And yes my apple ID is also added under tools > xamarin > apple id
Ive also tried restarting the IDE and my machine Multiple times
PLEASE PLEAAASEE help me
Create new project with your XCode.
Make sure you set the correct Bundle ID.
Try to build your XCode project (for debug and release), if anything work re-start your VS and you will see your provisioning profile.
Trying to run application on my iPhone via usb cable
error 'The application has been signed with a provisioning profile which does not include any devices.'
I've added my device on the developer portal and re-downloaded the provisioning profiles both from xCode and Visual Studio
According to https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/manual-provisioning?tabs=macos :
Go to Apple developer accounts window in Visual Studio.
Mac: Visual Studio > Preferences > Apple Developer Account
Windows: Tools > Options > Xamarin > Apple Accounts
Select the team and click View Details…
Verify that the new profile appears in the Provisioning Profiles list. You may need to restart Visual Studio to refresh the list.
Click Download All Profiles.
I ended up deleting the provisioning profile, creating it again and re-downloading it.
Maybe I did something wrong the first time, I'm not sure but it works now
I am using visual studio mac and xamarin forms. I am trying to debug an app on my iphone but have challenges. I get the following error message: "No installed provisioning profiles match the installed iOS signing identities." When I open info.plist, I cannot activate "Automatically manage signing" because the Team drop-down box is empty. I have already entered my apple developer account via the preferences-->Publishing-->Apple Developer Accounts.
Please help me to find what I have missed.
Cheers,
Alex
See Set Up Device for Development and Launching your App:
"2. Open Xcode and browse to Xcode > Preferences.
3. Under Accounts, use the + button to add your existing Apple ID."
We just started creating cross platform mobile apps using "Visual Studio Tools for Apache Cordova".
I followed the procedures described in Install Tools to Build for iOS and To run your app on an iOS device. Everything works nicely, the app gets deployed on my USB attached iPhone and runs as expected.
I then tried to upload the app to iTunes, to provide the app via TestFlight to testers and to generally see how app-submitting works:
Build the iOS app as "Release" in VS: it builds and deploys to the iPhone nicely
On the Mac: Start Application Loader, click on "Deliver your App" and navigate to "...remote-builds/builds/"xxx-buildnmb"/cordovaApp/plattforms/iOS/build/device/APPNAME.ipa"
Several checks run OK ("verifying assets, etc.), but it then stops with the error
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle xxx.yyyyyy.zzzz [Payload/xxx.yyyyyy.zzzz.app] is invalid. [Missing code-signing certificate.] For more information, visit the iOS Developer Portal."
I then discovered the Xcode Project in ".taco_home/remote-builds/taco-remote/builds/<build-number>/cordovaApp/platforms/ios/" and used Xcode to define the code signing identities in "Build Settings" and the Team information in "General", created the archive via Product-->Archive and submitted it in the Organizer - Archives. And voila it worked!
My questions:
Do I have to use Xcode to submit?
If not, what might I be missing in a) regard to building and signing apps with vs-mda-remote, and b) submitting it with Application Loader?
What are Microsoft's plans in regard to providing access the build settings from within Visual Studio (similar to the ones in Xcode)?
Thanks a lot for any pointers in the right direction.
Thomas
You need to use distribution provisioning profile to sign the package and apps are published to the App Store by using the iTunes Connect website along with the Xcode Archive Tool, which is included with the iOS SDK.