Open amurgshere opened 2 weeks ago
For this to merge we should probably have reviews from different OSX Versions with different releases of codesign so we don't run into another follow up issue.
I would suggest the following OSX releases:
Thanks @Kek5chen ,
I have tested >13.X (MacOS 14.6.1) on Aarch64 and x86_64 (running on an M1 Mac using Rosetta 2) but I don’t have a device on < 13.X so cant test that.
If anyone can help out here that would be great!
also, I can see one of the builds failed when uploading artefacts on this PR, but it looks like it’s just a timeout and not anything to do with my changes, though not 100% sure as it is on the universal macOS build?
Can you tell us the exact version of your system? Because the issue you reported was successfully built on aarch64 15.0.1
Apologies @Kek5chen , it is 14.6.1, I will be upgrading to 15 in the next few weeks or so, so will retest then too. Have updated above comment.
Hmm. Interesting. I wonder what the issue is there then. It looks like the issue you're having specifically is that the custom build of glfw isn't signed. I think though that I might've used a different provided build of glfw from the nix store. Seems like that's the issue. In that case I do think that doing find and signing each is the way to go.
Though I'm not sure if building the libraries for some triggers an automatic code signing process or what the issue with glfw is specifically. Maybe you want to investigate that a bit before so we exactly know where the issue stems from.
If I manually sign that one and try again it then fails on another library , the lib sound one I think it was, so that’s when I added the line just to sign them all then it worked.
Oh yea alright. Sounds good. Find seems like the way to go.
This item fixes issue https://github.com/GreemDev/Ryujinx/issues/210 .
Changes
Reproduction of Issue
1) Clone the repository to an Apple Silicon MAC (MacOS 14.6.1) 2) Run this command from the cloned directory to build, package and sign the app bundles:
./distribution/macos/create_macos_build_ava.sh ./ ./distribution/macos/temp ./distribution/macos/output ./distribution/macos/entitlements.xml 1.0.0 0 Release
ISSUE: x64 version is not signed properly and Universal bundle is not created at all as the x64 signing failed which stops the script. This error is shown:
/Volumes/MACBOOK/ROMS/NSW/Ryujinx/GitHub/Ryujinx/distribution/macos/temp/output_x64/Ryujinx.app: code object is not signed at all In subcomponent: /Volumes/MACBOOK/ROMS/NSW/Ryujinx/GitHub/Ryujinx/distribution/macos/temp/output_x64/Ryujinx.app/Contents/Frameworks/libglfw.3.dylib
EXPECTED OUTCOME: Both the x64 and Universal bundles should be created and signed in the distribution/macOS/output folders.
NOTE: I have not updated "rcodesign" as I do not have this and am not sure how to install it so can't test it.