最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - No matching profiles found in Visual Studio after renewing an expiring provisioning profile using Xcode 16 - Stack Overflo

programmeradmin0浏览0评论

I'm building an iOS app using .Net MAUI in Visual Studio 2022 for Mac and Xcode 16.2. My existing provisioning profile for an app was about to expire. So, I did install a renewed version of the profile. However, Visual Studio fails to detect it and throws this error "No matching profiles found" when I try to build the app.

I've checked if the renewed profile is valid and have verified the App ID and expiration date. I also tried reinstalling Visual Studio but the issue persists.

Interestingly, I have some other iOS apps whose profiles were installed before and Visual Studio can recognise those just fine. The issue seems to be only with the new profiles I'm installing.

I'm building an iOS app using .Net MAUI in Visual Studio 2022 for Mac and Xcode 16.2. My existing provisioning profile for an app was about to expire. So, I did install a renewed version of the profile. However, Visual Studio fails to detect it and throws this error "No matching profiles found" when I try to build the app.

I've checked if the renewed profile is valid and have verified the App ID and expiration date. I also tried reinstalling Visual Studio but the issue persists.

Interestingly, I have some other iOS apps whose profiles were installed before and Visual Studio can recognise those just fine. The issue seems to be only with the new profiles I'm installing.

Share Improve this question edited Feb 1 at 9:49 swainsusrut asked Jan 31 at 15:42 swainsusrutswainsusrut 171 silver badge4 bronze badges 2
  • What makes this extraordinarily tricky is that Apple not only expires your old profile, they seem to have changed the rules about what it takes to get a new one to replace it. The "new way" is to get an API key and your .csproj provisioning now looks something like <CodesignKey>Apple Development: Created via API (xxxxxxxxxx)</CodesignKey>. – IV. Commented Jan 31 at 15:43
  • 1 What also plays here (the tag is visual-studio-mac) is that Visual Studio for Mac is officially Retired so it's hard to say whether the "new way" is even supported on that side of the pond or whether this question is answerable. – IV. Commented Jan 31 at 15:46
Add a comment  | 

1 Answer 1

Reset to default 1

This issue is happening because Xcode 16 changed the default location where provisioning profiles are installed. Visual Studio is still looking at the old path, so it fails to detect the newly installed profiles.

• Before Xcode 16, provisioning profiles were stored in:

~/Library/MobileDevice/Provisioning Profiles

• Xcode 16 moved them to:

~/Library/Developer/Xcode/UserData/Provisioning Profiles

So, whenever I try to install the renewed profile, its getting installed in the new location. To fix this, you can create a symlink that redirects Visual Studio to the new profile location.

Steps:

  1. Quit Xcode before proceeding.

  2. Be sure your folder ~/Library/MobileDevice is totally empty, without a folder.

  3. Open Terminal and run the following command.

    ln -s ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles ~/Library/MobileDevice

  4. Restart Visual Studio and try building your app again.

This command ensures that provisioning profiles stored in Xcode’s directory are also accessible under ~/Library/MobileDevice, making them available to other tools and processes that expect them there.

Alternatively, If you don’t want to use a symlink, you can also manually copy profiles from the new location to the old one. Again, ensure Xcode is closed while doing this else it would auto delete the copied profiles.

Hope this helps!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论