xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.43k stars 505 forks source link

iOS projects with RuntimeIdentifiers don't build correctly #19262

Open rolfbjarne opened 9 months ago

rolfbjarne commented 9 months ago

We should test an iOS project with RuntimeIdentifiers (and not RuntimeIdentifier) and see if it works with our tooling.

Potential known issues:

Example 1: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1901519

Error:

error : MessagingRemoteException: An error occurred on client Build190102 while executing a reply for topic xvs/build/1.9.0.102/execute-task/appname/8d34b29002fMergeAppBundles error : AggregateException: One or more errors occurred. (The method or operation is not implemented.)

Looks like the MergeAppBundles task doesn't support being executed remotely.

Example 2: https://github.com/xamarin/xamarin-macios/issues/19141#issuecomment-1769045425

Looks like VSMac doesn't quite work with RuntimeIdentifiers?

Example 3: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/2036400

Error:

MessagingRemoteException: An error occurred on client Build1728053 while executing a reply for topic xvs/build/17.2.8053/execute-task/{AppName}/b23186c002fWriteAppManifest

Looks like the WriteAppManifest task doesn't support being executed remotely.

cullub commented 2 months ago

This issue also caused the following error message for me:

MessagingRemoteException: An error occurred on client Build1728053 while executing a reply for topic xvs/build/17.2.8053/execute-task/{AppName}/b23186c002fWriteAppManifest
ArgumentNullException: Value cannot be null.
Parameter name: path2

And replacing the <RuntimeIdentifiers> (plural) tag with <RuntimeIdentifier> (singular) tags fixed the issue.