Hi Dave Mkheyan,
Here you need to specify separate provisioning profiles for each target, especially for the extension (ShareExt.NET.iOS.csproj
).
To fix this, pass target-specific provisioning profile UUIDs using dotnet publish
with CodesignProvision
and CodesignKey
properties per project.
Get UUIDs of both provisioning profiles:
- One for the main app (
KYChat.Maui.iOS
) - One for the notification extension (
ShareExt.NET.iOS
)
Here is the YAML file split into two publish steps:
- task: Bash@3
displayName: Build iOS Legit App
inputs:
targetType: 'inline'
script: |
cd KYChat.Maui/KYChat.Maui.iOS
dotnet publish -f net8.0-ios -c Release \
/p:CodesignKey='$(MAIN_APP_SIGNING_ID)' \
/p:CodesignProvision='$(MAIN_APP_PROV_UUID)'
- task: Bash@3
displayName: Build Notification Extension
inputs:
targetType: 'inline'
script: |
cd ../../Sharing/ShareExtNative
dotnet publish -f net8.0-ios -c Release \
/p:CodesignKey='$(EXT_SIGNING_ID)' \
/p:CodesignProvision='$(EXT_PROV_UUID)'
Also, define the variables:
-
MAIN_APP_SIGNING_ID
-
MAIN_APP_PROV_UUID
-
EXT_SIGNING_ID
-
EXT_PROV_UUID
Hope it helps!
Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.