Coder Social home page Coder Social logo

Comments (14)

omer-za avatar omer-za commented on August 17, 2024

@pamidur @kondr1 please let me know what can I do to make it resolved ASAP 🙏

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

As a quick test you can set AspectInjector_Location in your csproj file to (folder_where_aspctInjector_files_are_located)/build/_bin/osx-arm64/AspectInjector
e.g.
/Users/user/.nuget/packages/aspectinjector/2.8.1/build/_bin/osx-arm64/AspectInjector

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

We produce osx-arm64 binary but I don't see any code that would detect running on M1

<PublishForRuntimes>win-x64;win-arm64;linux-x64;linux-musl-x64;linux-arm64;linux-musl-arm64;osx-x64;osx-arm64</PublishForRuntimes>

I need to figure a reliable way to tell M1

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

Please try https://www.nuget.org/packages/AspectInjector/2.8.2-pre1 once it is available

from aspect-injector.

omer-za avatar omer-za commented on August 17, 2024

With 2.8.2-pre1 I get a different error now. it's now choosing osx-arm64 but seems like it crashes :(

/var/folders/0n/s94fzz_95vs9pf6g24m6s8ph0000gn/T/tmpc2d2ee754f1944c1b86c2cd7eb08d38a.exec.cmd: line 2:
2910 Killed: 9               "/Users/user/.nuget/packages/aspectinjector/2.8.2-pre1/buildTransitive/netstandard2.0/../../build/_bin/osx-arm64/AspectInjector" -rf 
"/Users/user/work/jenkins/workspace/automation-browser-ci-mac/ZA.Automation.Allure/obj/Debug/net6.0/ZA.Automation.Allure.dll._asi_refs" 
AspectInjector : error AI_FAIL: Aspect Injector processing has failed. See other errors.

from aspect-injector.

omer-za avatar omer-za commented on August 17, 2024

Issue looks similar to here
dotnet/runtime#49091

from aspect-injector.

omer-za avatar omer-za commented on August 17, 2024

From further look seems that Apple Silicon binaries should be signed in order to be executed
dotnet/runtime#48387

from aspect-injector.

omer-za avatar omer-za commented on August 17, 2024

Confirmed, I executed
codesign -s - /Users/user/.nuget/packages/aspectinjector/2.8.2-pre1/buildTransitive/netstandard2.0/../../user/_bin/osx-arm64/AspectInjector and now it works.
It should be done as part of publishing using enableMacOSCodeSign

See
https://github.com/dotnet/runtime/pull/53913/files#diff-6c584433992a50f29902c96eace64f3fea5b04445aa3cb800d1e993c8b2f884cR41

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

Did you use just selfsigned certificate?

from aspect-injector.

omer-za avatar omer-za commented on August 17, 2024

yes, no special certificate provided

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

Hi @omer-za ,
I'm sorry it took quite some time. Could you please see if 2.8.2-pre2 fixes the issue?
Thank you!

from aspect-injector.

osherdp avatar osherdp commented on August 17, 2024

@pamidur issue still persists, even with 2.8.2-pre2

from aspect-injector.

pamidur avatar pamidur commented on August 17, 2024

from aspect-injector.

osherdp avatar osherdp commented on August 17, 2024

Hi, I have figured the fix already, but wasn't able to implement it yet. Plus I'll need someone willing to test as I don't have a Mac.

On Sun, 12 May 2024, 21:34 Osher De Paz, @.> wrote: @pamidur https://github.com/pamidur issue still persists, even with 2.8.2-pre2 — Reply to this email directly, view it on GitHub <#210 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7HZUCF4OBMOIWZGRVOVRTZB4ZR3AVCNFSM6AAAAAAUNX5VTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGE4DINRTGQ . You are receiving this because you were mentioned.Message ID: @.>

I can help testing it, should be easy enough

from aspect-injector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.