Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException on macOS Universal Builds #98

Open
emretokerler-pk opened this issue Oct 24, 2024 · 1 comment
Open

DllNotFoundException on macOS Universal Builds #98

emretokerler-pk opened this issue Oct 24, 2024 · 1 comment

Comments

@emretokerler-pk
Copy link

I'm having DllNotFoundException when trying to trigger a grpc call on macOS universal builds:

Error: Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. DllNotFoundException: Unable to load DLL 'Cysharp.Net.Http.YetAnotherHttpHandler.Native'. Tried the load the following dynamic libraries: Unable to load dynamic library 'Cysharp.Net.Http.YetAnotherHttpHandler.Native'

In seperate builds for silicon and intel, both are working fine. At this point, I noticed there are two prebuilt libraries (one for intel, one for silicon) as shown:

Screenshot 2024-10-24 at 17 07 59
Screenshot 2024-10-24 at 17 08 15

But there's no library included to be used for universal builds marked as "CPU=Any CPU"

How to solve this?

@Last8Exile
Copy link

Unity does not support separate per platform libraries for universal macOS builds.

You choices:

  1. Make 2 separate builds.
  2. Merge 2 libraries into single universal dylib using xcode and set this merged library as AnyCPU.

Second option could be implemented in this repo by modifying build pipeline so it will export universal macOS library as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants