FreeCAD / FreeCAD-Bundle

Stand-alone repo to Build and Deploy installable FreeCAD images. Do not open general FreeCAD issues here.
https://freecad.org
GNU Lesser General Public License v2.1
312 stars 63 forks source link

ARM build 31483 is not working under macOS Sonoma #181

Closed mecProject closed 1 year ago

mecProject commented 1 year ago

Hi,

The following build is unfortunately not working under macOS Sonoma. I'm using a MacBook Pro M2 Max. On Ventura 13.4, it is working fine.

During installation, a message appear that the application requires rosetta 2. Then other error message that the application cannot open. FreeCAD_weekly-builds-31483-2022-12-31-conda-macOS-arm-py311.dmg

luzpaz commented 1 year ago

Full About info please

mecProject commented 1 year ago

It is not possible since the app didn't launch.

Screenshot 2023-06-11 at 21 18 11
mecProject commented 1 year ago

I also tried to open it from terminal (also clicked open FreeCAD in privacy and security settings). This is what I get:

The application /Applications/FreeCAD.app cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600001dee190 {Error Domain=NSPOSIXErrorDomain Code=162 "Unknown error: 162" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

luzpaz commented 1 year ago

@PLChris can you reproduce on macOS ?

makialnooh commented 1 year ago

@mecProject I am getting the very same message .. any solution yet?

mecProject commented 1 year ago

No, it is still not working. I hope this can be solved soon.

JohnOCFII commented 1 year ago

One Comment

macOS Sonoma is an early Beta of a release that isn't likely to ship until fall 2023. I'd expect many of the dependancies used to build FreeCAD won't be updated for a few months yet, based on experiences over the past few years.

https://en.wikipedia.org/wiki/MacOS_Sonoma#:~:text=The%20successor%20to%20macOS%20Ventura,located%20in%20California%27s%20Sonoma%20County.

adrianinsaval commented 1 year ago

does this new build work? https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-33447-2023-06-26-conda-macOS-arm-py310.dmg

mecProject commented 1 year ago

unfortunately not. same issue.

adrianinsaval commented 1 year ago

Ok, is apple providing any documentation on what is changing on that release? Are older apps even expected to be compatible at this moment?

JohnOCFII commented 1 year ago

Ok, is apple providing any documentation on what is changing on that release? Are older apps even expected to be compatible at this moment?

An Apple-focused developer builds their work life around the annual WWDC (World Wide Developers Conference) which just happened a few weeks back. There Apple has a couple of general sessions covering the highpoints of changes (Platform State of the Union is key here). After that, they have many, many breakout videos on new features. All videos are free. During this week early developer Betas are released, with the final new OS versions available in late Fall - October timeframe. During this 5-month period developers usually download the new Beta OS releases and start testing. Most apps aren't expected to actually work against the new Beta's until late in the cycle. It is not uncommon for large applications to not work with the new OS releases for a few months AFTER final release in the fall. https://developer.apple.com/wwdc23/

mecProject commented 1 year ago

Actually, I didn't have any issue with other apps like Blender, Inkscape, GIMP. They are working fine.

Velaba commented 1 year ago

Hi,

The following build is unfortunately not working under macOS Sonoma. I'm using a MacBook Pro M2 Max. On Ventura 13.4, it is working fine.

During installation, a message appear that the application requires rosetta 2. Then other error message that the application cannot open. FreeCAD_weekly-builds-31483-2022-12-31-conda-macOS-arm-py311.dmg

I was having this issue and couldn't figure out why. I hadn't been on the app in a little while so I did a fresh download, but ran into the same issue.

It didn't dawn on me that it could be a macOS Sonoma beta problem at first, so I right clicked the application in finder, selected "Show Packaged Contents" and within the macOS directory, I found a unix executable file. I ran that and waited a little bit and sure enough, I got the freeCAD window open.

I hope this helps in case someone hasn't already found another solution to get it working.

Screenshot 2023-06-28 at 12 34 11 AM
PLowran commented 1 year ago

Yo! @Velaba This Worked for Me 100%!!

adrianinsaval commented 1 year ago

could it be because the app is not signed?

PLowran commented 1 year ago

could it be because the app is not signed?

I'm not positive: I went thru the settings and trusted the Vendor ID: The Pop-Up Error window shown above will pop up, while at the same time a Dialog box will appear showing the File Vault attempting to open it. Once you click ok on the Error Pop-up, it just Nulls out. I followed @Velaba idea with Success on the first atempt

mecProject commented 1 year ago

@Velaba solution works fine for me. Thanks!

cbenhagen commented 1 year ago

This happens as well with the x86_64 version. Code signing and notarization do not seem to be the issue. I signed the app bundle with my certificate and get the following output:

codesign --verify --deep --verbose /Applications/FreeCAD.app
/Applications/FreeCAD.app: valid on disk
/Applications/FreeCAD.app: satisfies its Designated Requirement
spctl --assess --verbose /Applications/FreeCAD.app
/Applications/FreeCAD.app: accepted
source=Developer ID

Here are some relevant log entries though:

AMFI: Launch Constraint Violation (enforcing), error info: c[1]p[1]m[1]e[13], (Constraint not matched) launching proc[vc: 1 pid: 19150]: /usr/bin/env, launch type 3, failure proc [vc: 1 pid: 19150]: /usr/bin/env
ASP: Security policy would not allow process: 19150, /Applications/FreeCAD.app/Contents/MacOS/FreeCAD

@adrianinsaval any ideas? Do you have a macOS 14 machine to test?

adrianinsaval commented 1 year ago

Unfortunately I don't have a mac

edgardmello commented 1 year ago

You guys can use Raycast app with the resource quick link using this path /Applications/FreeCAD.app/Contents/MacOS/FreeCAD and open with terminal

This will do the job and open freecad by terminal with no issues and faster than going to finder, right click, etc etc.

lagnat commented 1 year ago

This is resolved with the latest Sonoma beta.

adrianinsaval commented 1 year ago

Excellent, I'm closing the issue then.