MacOS code signing with "dotnet publish" #2201
-
Hi there, When I started using Eto Forms, I had to make little modifications in the source code to make it work for my project. So I downloaded the source code and included it in my project instead of referencing the Nuget package. Now, all the issues I had seem to have been solved and I am trying to use the Nuget package again. I use this command on my Azure pipeline (this works in my machine and on Azure with my modified copy of Eto):
And I get this error with Eto 2.6.1 (from Nuget):
Anyone has any idead what could have changed that makes my build on Azure fail? Thanks! Edit: I had missinterpreted the source of my error. I have updated the error message. Sorry |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
Not sure what is going on with the error, but in any case notarization doesn't work with .NET Core 3.1 anyway due to the way they build the executables. You must use .NET 5 or later to pass notarization. It could also be the later updates to the build scripts that fix the error(s) you are using that aren't in 2.6.1. You could try one of the 2.6.2 CI nuget packages from myget to see if that resolves the above issue (see the readme for the myget source link). |
Beta Was this translation helpful? Give feedback.
-
Thank you Curtis for you answer. I had missinterpreted the source of my error and it works fine on my machine (Monterey, NET6), but fails on my Azure pipeline. I will keep digging into this, but if anyone has any idea what could be causing this, I would much appreciate it |
Beta Was this translation helpful? Give feedback.
-
Are you installing your apple developer certificate on the azure pipeline? |
Beta Was this translation helpful? Give feedback.
-
Yes, I am
…On Wed, Apr 27, 2022, 17:01 Curtis Wensley ***@***.***> wrote:
Are you installing your apple developer certificate on the azure pipeline?
—
Reply to this email directly, view it on GitHub
<#2201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYT3LUGIBD7FLWYUDOVWZDVHFJETANCNFSM5UITLNDQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Could you generate a binlog of the build and send it over? ( Also, are you using the .NET 5 or 6 SDK? Even though you're targeting netcoreapp3.1, you can still use the newer sdks. I have not tested with the .NET Core 3.1 sdk specifically. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sending the binlog file. Looks like you have set |
Beta Was this translation helpful? Give feedback.
-
I did some tests and added to my mac64 project: I was only able to build it us doing: No luck doing just
Now I am back to having the code signing error. I will email you the log in case you have time to take a look. Much appreciated!! Thank you!! |
Beta Was this translation helpful? Give feedback.
-
For future reference: I did as suggested (simply Problem fixed. Thank you so much Curtis for your time and patience!! |
Beta Was this translation helpful? Give feedback.
-
Yes, sure. I will email it to you on Monday (I just went on holiday yoday).
I am using Net6.
Thank you so much for your valuable time!
…On Wed, Apr 27, 2022, 18:23 Curtis Wensley ***@***.***> wrote:
Could you generate a binlog of the build and send it over? (/bl command
line option) You can email it to me at curtis dot wensley at picoe dot ca
if it has any sensitive data.
Also, are you using the .NET 5 or 6 SDK? Even though you're targeting
netcoreapp3.1, you can still use the newer sdks. I have not tested with the
.NET Core 3.1 sdk specifically.
—
Reply to this email directly, view it on GitHub
<#2201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYT3LWB4BYTGCM6YCLBFCLVHFSXFANCNFSM5UITLNDQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Thanks for sending the binlog file. Looks like you have set
MacAutoPublishBundle
to false in your project, which is required to be true. Also you don't need to usedotnet publish
, justdotnet build
with theRelease
configuration. Hope this helps!