Does your project open in the Xcode fro Rider? You may want to check it by right-clicking on the project name > Open in Xcode. Do you have a Developer profile set up there?
Also, here is the instruction on how to use iOS publishing from Rider:
SUPPORT-A-712 How to publish MAUI applications using Rider