Search code examples
c#.netmacosmaui

.net Maui package for mac catalyst bundle identifier does not match specified provisioning profile


I'm currently building a package to deliver my .net maui app for mac catalyst. I followed this guide for publihing my outside the app store, i generate all my profiles, bundle identifier and installed them in my computer.

Publish guide

But when i run on of the last commands to generate the package: dotnet build -f net7.0-maccatalyst -c Release

I get the following error:

/usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/16.4.7090/tools/msbuild/iOS/Xamarin.Shared.targets(1714,3): error : Project bundle identifier 'fr.myCompany.appName (explicit)' does not match specified provisioning profile 'bundleIDName' [/Users/me/Desktop/myCompany/myCompany.Maui/myCompany.Maui.csproj::TargetFramework=net7.0-maccatalyst]
/usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/16.4.7090/tools/msbuild/iOS/Xamarin.Shared.targets(1714,3): error :          [/Users/me/Desktop/badgemanager/BadgeManager.Maui/BadgeManager.Maui.csproj::TargetFramework=net7.0-maccatalyst]

I tried alot of possibilities for this bundle identifier but always the same result. I created a new blank project to test if it was my fault but luckily i get exactly the same error in the brand new project.

In hope of a clue or a solution. Have a great day.


Solution

  • Found out the solution to my problems. The bundle identifier was configured like it should but the target in the info.plist was missleading, i just deleted the line in the info.plist and just put the right target in the .csproj file.

    Thanks for the quick responses.