ILStrip error when build iOS release

I get error:

C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.0.527\targets\Xamarin.Shared.Sdk.targets(754,3): error : ILStrip failed for C:/Nuget/syncfusion.maui.listview/20.3.56/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.ListView.resources.dll: File '/Users/MyName/Library/Caches/Xamarin/mtbs/builds/MyApp/bb5878591f4226b95d8559ab4e1bfdb756ba2d6dfab525afcbfa20d3e4fe2014/C:/Nuget/syncfusion.maui.listview/20.3.56/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.ListView.resources.dll' not found.

I using:

- Visual Studio 17.4 (windows)

- XCode 14

How can I fix this issue.

Thank you.



3 Replies

SY Suthi Yuvaraj Syncfusion Team November 11, 2022 01:23 AM UTC

We have checked the reported crash “ILStrip error when build iOS release” , we are unable to reproduce the crash at our end .  we have checked the Syncfusion.Maui.ListView version 20.3.0.56 in iOS 15.0 version are unable to reproduce the crash. Please share the below details which would be more helpful for us to find the solution as soon as possible.

  1. Code snippet related to SfListview and related events if any
  2. Code snippet related to datapopulation
  3. As you have mention Visual Studio 17.4 (windows) , please confirm us that you have facing this crash , while deploying the application on iOS  by hosting it from windows


AR Andreas Reitberger January 8, 2023 02:01 PM UTC

Seeing the same errors while building for iOS in Release mode.


4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.1.1481\targets\Xamarin.Shared.Sdk.targets(758,3): error : ILStrip failed for D:/Nugets/syncfusion.maui.listview/20.4.42/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.ListView.resources.dll: File '/Users/andreasreitberger/Library/Caches/Xamarin/mtbs/builds/MoonrakerRemoteControl/494d0486b1b449afd66597ca7e4adfd5234c8deee70c6813c09e40e88d93441a/D:/Nugets/syncfusion.maui.listview/20.4.42/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.ListView.resources.dll' not found.
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.1.1481\targets\Xamarin.Shared.Sdk.targets(758,3): error : ILStrip failed for D:/Nugets/syncfusion.maui.scheduler/20.4.42/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.Scheduler.resources.dll: File '/Users/andreasreitberger/Library/Caches/Xamarin/mtbs/builds/MoonrakerRemoteControl/494d0486b1b449afd66597ca7e4adfd5234c8deee70c6813c09e40e88d93441a/D:/Nugets/syncfusion.maui.scheduler/20.4.42/lib/net6.0-ios13.6/en-US/Syncfusion.Maui.Scheduler.resources.dll' not found.


@ Banh Thanh Vi

How have you solvedfixed this issue? If I open the path from the log, the file is there.


Edit: Nevermind, found a fix for it. Just add this to the .csproj file


<!-- https://stackoverflow.com/questions/73970553/release-build-of-ios-maui-failed-with-msb3191-incorrectly-combined-path -->

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)'=='Release|net7.0-ios'">

<EnableAssemblyILStripping>False</EnableAssemblyILStripping>

</PropertyGroup>



SY Suthi Yuvaraj Syncfusion Team January 9, 2023 02:25 PM UTC

Hi Andreas,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.

Regards,

Suthi Yuvaraj.


Loader.
Up arrow icon