-
Notifications
You must be signed in to change notification settings - Fork 549
Closed
Labels
bugIf an issue is a bug or a pull request a bug fixIf an issue is a bug or a pull request a bug fixregressionThe issue or pull request is a regressionThe issue or pull request is a regression
Milestone
Description
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
Visual Studio 17.14.18
Description
After migrating a .NET MAUI solution from .NET 8 to .NET 9, I am unable to build the iOS project when it includes an app extension (e.g. Share Extension / Widget Extension).
- If I remove the app extension project reference from the main MAUI project, the build succeeds.
- The app extension project also builds successfully on its own.
- The failure only occurs when building the main MAUI iOS project with the app extension included as a Project Reference.
The build appears to fail during the _CollectCodesigningData MSBuild task:
Target _CollectCodesigningData:
Task "ReadItemsFromFile"
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: The "ReadItemsFromFile" task failed unexpectedly.
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: System.Xml.XmlException: Root element is missing.
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at Xamarin.MacDev.Tasks.ReadItemsFromFile.Execute() in /Users/builder/azdo/_work/1/s/macios/msbuild/Xamarin.MacDev.Tasks/Tasks/ReadItemsFromFile.cs:line 45
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_26.0\26.0.9752\tools\msbuild\Xamarin.Shared.targets(2367,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Done executing task "ReadItemsFromFile" -- FAILED.
Steps to Reproduce
Build a MAUI solution with an iOS app extension referenced in the main MAUI project with valid code-signing and entitlements on both.
Did you find any workaround?
No response
Build logs
No response
Metadata
Metadata
Assignees
Labels
bugIf an issue is a bug or a pull request a bug fixIf an issue is a bug or a pull request a bug fixregressionThe issue or pull request is a regressionThe issue or pull request is a regression