I am working on a .NET MAUI project targeting .NET 8 for both Android and iOS. The app builds and runs fine in debug mode on both platforms, and I can test it locally in the simulators without issues.
However, when I try to publish the iOS app, I encounter the following error:
The provisioning profile has been created correctly, and the certificate is properly linked to it through Keychain Access on the Mac. I can see the signing certificate listed in Keychain Access, and when I run the command security find-identity -v -p codesigning in the terminal, the signing certificate is displayed correctly.
I’m using the command dotnet publish .\EduPay\EduPay.csproj -f:net8.0-ios to publish the app. The same error also occurs when I try publishing through the GUI interface.
Environment Details:
Visual Studio: 17.14.16
macOS: Tahoe 26.0
Xcode: 16.4
Windows machine: .NET 8 and .NET 9 installed
Mac: .NET 8 installed
I also attempted upgrading the Mac to .NET 9 and tried publishing again, but the issue still persists.
I’d be very grateful if anyone could provide a suitable solution or an alternative method for publishing an iOS application using a .NET MAUI project.