You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS: Publish failed with "_GenerateDSym" failure if specify "-o:{path to custom directory}" #17496
$ dotnet new ios
The template "iOS Application" was created successfully.
$ dotnet publish -o pubdir -p:RuntimeIdentifier=ios-arm64
MSBuild version 17.4.0+18d5aef85 for .NET
Determining projects to restore...
Restored /Users/rolf/test/dotnet/publishwithoutputdir/publishwithoutputdir.csproj (in 111 ms).
Detected signing identity:
Code Signing Key: "Apple Development: Rolf Kvinge (CZ9YXM2X9A)" (14BDF186AB46C5467379D161A3ACA6844E4A5003)
Provisioning Profile: "iOS Team Provisioning Profile: *" (19aa9163-62ce-4f0c-b7d6-28d7e429edec)
Bundle Id: com.companyname.publishwithoutputdir
App Id: TGFVQHFHZF.com.companyname.publishwithoutputdir
publishwithoutputdir -> /Users/rolf/test/dotnet/publishwithoutputdir/bin/Debug/net7.0-ios/ios-arm64/publishwithoutputdir.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Created the package: /Users/rolf/test/dotnet/publishwithoutputdir/pubdir/publishwithoutputdir.ipa
Workload updates are available. Run `dotnet workload list` for more information.
$ ls -la pubdir
total 8312
drwxr-xr-x 3 rolf staff 96 Feb 13 07:26 .
drwxr-xr-x 14 rolf staff 448 Feb 13 07:26 ..
-rw-r--r-- 1 rolf staff 4255441 Feb 13 07:26 publishwithoutputdir.ipa
Please add the -bl:msbuild.binlog flag to your dotnet publish command (dotnet publish -bl:msbuild.binlog ...) to get a binary build log, and then upload that build log here.
error: cannot parse the debug map for '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Anteater.Intercom.Maui/e60d9e32c4922fb0e68e4b0b509bf9869f8318130e0d0f43ac00da02dce6e78a/bin/Release/net7.0-ios/ios-arm6
4/Anteater.Intercom.Maui.app/Anteater.Intercom.Maui': No such file or directory
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.2.1024\tools\msbuild\iOS\Xamarin.Shared.targets(2612,3): error : dsymutil exited with code 1: [D:\WORK\Anteater\Anteater.Intercom\src\Anteater.Intercom.Maui
Anteater.Intercom.Maui.csproj::TargetFramework=net7.0-ios]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.2.1024\tools\msbuild\iOS\Xamarin.Shared.targets(2612,3): error : error: cannot parse the debug map for '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Antea
ter.Intercom.Maui/e60d9e32c4922fb0e68e4b0b509bf9869f8318130e0d0f43ac00da02dce6e78a/bin/Release/net7.0-ios/ios-arm64/Anteater.Intercom.Maui.app/Anteater.Intercom.Maui': No such file or directory [D:\WORK\Antea
ter\Anteater.Intercom\src\Anteater.Intercom.Maui\Anteater.Intercom.Maui.csproj::TargetFramework=net7.0-ios]`
ghost removed
need-infoWaiting for more information before the bug can be investigated
I was having this error as well, using Maui 9 doing dotnet publish from Windows. Removing the -o fixed it. It was be great if this was fixed, since being able to control all of the build from windows makes our build process much simpler.
But I'd also like to say I don't think its that much of an unreasonable expectation that dotnet publish -o <outputdir> work consistently no matter what you're publishing. Certainly it should not result in a cryptic error message where the fix is "set this property instead of using -o" or moving some other properties from the command line to the csproj file (which is what got me past this error when I was first trying to move to Maui 8)
I agree -o ... should work, but it looks like it's rather complicated to fix, the particular problem with the _GenerateDSym target is just the top of the iceberg, so I'm suggesting an alternative solution for your particular scenario that will hopefully work for you.
Sorry, I didn't mean to sound like I don't appreciate your help getting past this by suggesting a work around, I do very much appreciate it, and I realize there's no other way to help. Just was venting a bit as this has been another in a long list of cryptic error messages I've had to deal with converting from Xarmin to Maui, some of which apparently have also been around for a while now.
Unfortuatenly /p:IpaPackagePath also results in an error; it looks like its adding the value of that to the path on the Mac where the IPA is being built, which creates a path that doesn't exist when creating the zip (IPA I assume)
I was able to get it to work though if I drop the -o parameter and then look for an IPA in .\bin\Release\* of the Windows machine after the build finishes, so I think I can move on from this issue now.
Sorry, I didn't mean to sound like I don't appreciate your help getting past this by suggesting a work around, I do very much appreciate it, and I realize there's no other way to help. Just was venting a bit as this has been another in a long list of cryptic error messages I've had to deal with converting from Xarmin to Maui, some of which apparently have also been around for a while now.
I completely understand how running into bugs can be a really frustrating experience, so no worries.
Unfortuatenly /p:IpaPackagePath also results in an error; it looks like its adding the value of that to the path on the Mac where the IPA is being built, which creates a path that doesn't exist when creating the zip (IPA I assume)
That's a bummer, I'll see if we can get at least that fixed.
I was able to get it to work though if I drop the -o parameter and then look for an IPA in .\bin\Release\* of the Windows machine after the build finishes, so I think I can move on from this issue now.
Activity
PureWeen commentedon Feb 9, 2023
Issue moved from dotnet/maui#13231
From @jsuarezruiz on Thursday, February 9, 2023 7:08:04 PM
Could you share more info?, more detailed output logs?
rolfbjarne commentedon Feb 13, 2023
This worked fine for me:
Please add the
-bl:msbuild.binlogflag to yourdotnet publishcommand (dotnet publish -bl:msbuild.binlog ...) to get a binary build log, and then upload that build log here.eshvatskyi commentedon Feb 13, 2023
binlog https://drive.google.com/file/d/1EBz2BGJm3nkIj_htKUjI-saIIp2LHtOJ/view?usp=sharing
`0.3/lib/net6.0-ios15.4/Firebase.Installations.resources/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/ /Users/admin/Library/Caches/Xamarin/mtbs/builds/src/Anteater.Intercom.Mau
i/bin/Release/net7.0-ios/ios-arm64/Anteater.Intercom.Maui.app/Frameworks/FirebaseInstallations.framework --arch arm64
Tool xcrun execution finished (exit code = 1).
error: cannot parse the debug map for '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Anteater.Intercom.Maui/e60d9e32c4922fb0e68e4b0b509bf9869f8318130e0d0f43ac00da02dce6e78a/bin/Release/net7.0-ios/ios-arm6
4/Anteater.Intercom.Maui.app/Anteater.Intercom.Maui': No such file or directory
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.2.1024\tools\msbuild\iOS\Xamarin.Shared.targets(2612,3): error : dsymutil exited with code 1: [D:\WORK\Anteater\Anteater.Intercom\src\Anteater.Intercom.Maui
Anteater.Intercom.Maui.csproj::TargetFramework=net7.0-ios]
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.2.1024\tools\msbuild\iOS\Xamarin.Shared.targets(2612,3): error : error: cannot parse the debug map for '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Antea
ter.Intercom.Maui/e60d9e32c4922fb0e68e4b0b509bf9869f8318130e0d0f43ac00da02dce6e78a/bin/Release/net7.0-ios/ios-arm64/Anteater.Intercom.Maui.app/Anteater.Intercom.Maui': No such file or directory [D:\WORK\Antea
ter\Anteater.Intercom\src\Anteater.Intercom.Maui\Anteater.Intercom.Maui.csproj::TargetFramework=net7.0-ios]`
rolfbjarne commentedon Feb 14, 2023
Binlog: msbuild.binlog.zip
Looks like this is only a problem when building from Windows, it works fine when building from Mac.
AlleSchonWeg commentedon Jan 17, 2025
@rolfbjarne
I have the same problem. See linked issue. I think a fix is still far away. ;)
ajohnstone-ks commentedon May 7, 2025
I was having this error as well, using Maui 9 doing dotnet publish from Windows. Removing the -o fixed it. It was be great if this was fixed, since being able to control all of the build from windows makes our build process much simpler.
rolfbjarne commentedon May 7, 2025
Could you explain exactly which outputs you need to show up in the directory you pass to
-o? Is it the .ipa (and .dSYM) or anything else?ajohnstone-ks commentedon May 7, 2025
@rolfbjarne Just the IPA, so that we can upload it later to be available to our testers or to the AppStore via Transporter.
rolfbjarne commentedon May 7, 2025
@ajohnstone-ks using the
IpaPackagePathproperty might work in that case:ajohnstone-ks commentedon May 7, 2025
@rolfbjarne Thank you, I will try that.
But I'd also like to say I don't think its that much of an unreasonable expectation that
dotnet publish -o <outputdir>work consistently no matter what you're publishing. Certainly it should not result in a cryptic error message where the fix is "set this property instead of using -o" or moving some other properties from the command line to the csproj file (which is what got me past this error when I was first trying to move to Maui 8)rolfbjarne commentedon May 7, 2025
I agree
-o ...should work, but it looks like it's rather complicated to fix, the particular problem with the_GenerateDSymtarget is just the top of the iceberg, so I'm suggesting an alternative solution for your particular scenario that will hopefully work for you.ajohnstone-ks commentedon May 7, 2025
Sorry, I didn't mean to sound like I don't appreciate your help getting past this by suggesting a work around, I do very much appreciate it, and I realize there's no other way to help. Just was venting a bit as this has been another in a long list of cryptic error messages I've had to deal with converting from Xarmin to Maui, some of which apparently have also been around for a while now.
Unfortuatenly
/p:IpaPackagePathalso results in an error; it looks like its adding the value of that to the path on the Mac where the IPA is being built, which creates a path that doesn't exist when creating the zip (IPA I assume)I was able to get it to work though if I drop the
-oparameter and then look for an IPA in.\bin\Release\*of the Windows machine after the build finishes, so I think I can move on from this issue now.rolfbjarne commentedon May 8, 2025
I completely understand how running into bugs can be a really frustrating experience, so no worries.
That's a bummer, I'll see if we can get at least that fixed.
That's good to hear!