Visual Studio 2019 or 2022 doesn't recognize active provision profiles for Xamarin.iOS. My activities to resolve the issue:
Here are all the steps you can try: 1.Modify the "Scheme" to "Automatic Provisioning" and check if it works.
2.Clear all provisioning profiles under path ~/Library/MobileDevice/Provisioning Profiles.
3.Check if the bundle ID in the Mac is consistent with the bundle ID of your project.
4.Follow the document Manual provisioning for Xamarin.iOS to create new profiles.
6.Update the VS to the latest.
5.If all the steps doesn't work, try to report a problem on Developer Community .
I resolved the issue of updating provisioning profiles as follows:
For for Release profiles:
Bundle ID must be the same like in Visual Studio project in Info.plist .
<key>CFBundleIdentifier</key>
<string>com.your_identifier</string>
Xamarin.iOS: https://aka.ms/xvs/pkg/macios/15.0.0.18
Xamarin.Mono: https://aka.ms/xvs/pkg/mono/6.12.0.107
For Debug provision profile:
Developer profile was not recognized, and I choose "Automatic Provisioning" in Visual studio.
The project was successfully launched for debugging. A very important problem remained - push notifications did not work in debug and release mode. The problem was resolved when I removed Xamarin folder from cache on Mac OS:
~/Library/Caches/Xamarin
When I rebuilt the application, push messages began work in debug and release.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.