FreeCAD on macOS Mojave

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
Kunda1
Posts: 5217
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD on macOS Mojave

Postby Kunda1 » Fri Nov 30, 2018 10:01 am

Maybe we should open a ticket for this on the tracker ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
chrisb
Posts: 17585
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD on macOS Mojave

Postby chrisb » Fri Nov 30, 2018 10:40 am

Kunda1 wrote:
Fri Nov 30, 2018 10:01 am
Maybe we should open a ticket for this on the tracker ?
I have added an entry in the known issues topic.
User avatar
martijnthe
Posts: 8
Joined: Thu Jan 10, 2019 6:39 pm
Contact:

Re: FreeCAD on macOS Mojave

Postby martijnthe » Thu Jan 31, 2019 9:33 am

leonardshelby wrote:
Wed Nov 28, 2018 9:09 pm
A simple workaround for now:

Create an alias to the FreeCAD binary on your Desktop. When started from this alias, it will automatically open from a terminal. This for some reason fixes the freezes.
Works for me too -- Mojave 10.14.2 (18C54) on a MacBook Pro (Retina, 15-inch, Late 2013).
User avatar
martijnthe
Posts: 8
Joined: Thu Jan 10, 2019 6:39 pm
Contact:

Re: FreeCAD on macOS Mojave

Postby martijnthe » Thu Jan 31, 2019 10:05 am

leonardshelby wrote:
Wed Nov 28, 2018 9:09 pm
A simple workaround for now:

Create an alias to the FreeCAD binary on your Desktop. When started from this alias, it will automatically open from a terminal. This for some reason fixes the freezes.
This workaround works for me too.
Looking at the system logs, I suspect it has something to do with the FreeCAD.app not being code-signed.
When launching through Terminal.app (which the shortcut/alias helps doing), the checks are being by-passed.

Launching by double clicking FreeCAD.app:

Code: Select all

standaard	10:37:30.889721 +0100	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier , type: 0: 0x7fad78d00b30 at /Applications/FreeCAD-0.18_pre.app
standaard	10:37:30.889868 +0100	tccd	MacOS error: -67062
standaard	10:37:30.891132 +0100	tccd	MacOS error: -67062
Launching through Terminal or double clicking alias to FreeCAD.app/Contents/MacOS/FreeCAD:

Code: Select all

standaard	10:40:53.214961 +0100	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.apple.Terminal, type: 0: 0x7fad78c04720 at /Applications/Utilities/Terminal.app
standaard	10:40:53.222475 +0100	tccd	Platform binary prompting is 'Allow without Requiring Usage String' because: is Terminal
I'm not very familiar with macOS' codesigning / security architecture, but to test my theory, I tried code-signing the FreeCAD.app.
Miraculously, it helps to get rid of the system freeze!

So, this raises a question with me: should binary macOS releases be signed?
leonardshelby
Posts: 48
Joined: Sat Feb 24, 2018 6:09 pm

Re: FreeCAD on macOS Mojave

Postby leonardshelby » Thu Jan 31, 2019 9:10 pm

If that's possible, they probably should be code signed. I wouldn't be surprised if Apple soon won't allow any unsigned apps at all. I believe the default setting on Mojave is already even stricter: App Store only.

I have tried to disable "gatekeeper", but it does not fix the freezes.
User avatar
Kunda1
Posts: 5217
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD on macOS Mojave

Postby Kunda1 » Sun Feb 10, 2019 3:46 pm

martijnthe wrote:
Thu Jan 31, 2019 10:05 am
leonardshelby wrote:
Wed Nov 28, 2018 9:09 pm
A simple workaround for now:

Create an alias to the FreeCAD binary on your Desktop. When started from this alias, it will automatically open from a terminal. This for some reason fixes the freezes.
This workaround works for me too.
Looking at the system logs, I suspect it has something to do with the FreeCAD.app not being code-signed.
When launching through Terminal.app (which the shortcut/alias helps doing), the checks are being by-passed.

Launching by double clicking FreeCAD.app:

Code: Select all

standaard	10:37:30.889721 +0100	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier , type: 0: 0x7fad78d00b30 at /Applications/FreeCAD-0.18_pre.app
standaard	10:37:30.889868 +0100	tccd	MacOS error: -67062
standaard	10:37:30.891132 +0100	tccd	MacOS error: -67062
Launching through Terminal or double clicking alias to FreeCAD.app/Contents/MacOS/FreeCAD:

Code: Select all

standaard	10:40:53.214961 +0100	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.apple.Terminal, type: 0: 0x7fad78c04720 at /Applications/Utilities/Terminal.app
standaard	10:40:53.222475 +0100	tccd	Platform binary prompting is 'Allow without Requiring Usage String' because: is Terminal
I'm not very familiar with macOS' codesigning / security architecture, but to test my theory, I tried code-signing the FreeCAD.app.
Miraculously, it helps to get rid of the system freeze!

So, this raises a question with me: should binary macOS releases be signed?
User opened issue #3744
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mikilon67
Posts: 9
Joined: Tue Jul 22, 2014 5:31 am

Re: FreeCAD on macOS Mojave

Postby mikilon67 » Wed Aug 07, 2019 3:43 am

Is this issue going anywhere? There have been several releases since 0.18 official one and it still impossible to use FC on mac. Its basically dysfunctional if you need to wait for the machine to unfreeze every time you need to open a file.
looo
Posts: 2746
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD on macOS Mojave

Postby looo » Wed Aug 07, 2019 5:22 am

mikilon67 wrote:
Wed Aug 07, 2019 3:43 am
Is this issue going anywhere?
You can use 0.18.3 from conda-forge:

Code: Select all

conda create -n freecad0.18.3 -c conda-forge
This one is based on qt5.9.
The bundles are only for the lazy people. In the background everything ispackaged with conda.

Also you can use the latest 0.19 bundle which is also based on qt5.9.

Best solution for sure is to avoid Mac at all.
arvid
Posts: 4
Joined: Fri May 16, 2014 6:12 pm
Location: RI, USA
Contact:

Re: FreeCAD on macOS Mojave

Postby arvid » Mon Aug 26, 2019 2:45 pm

Also experiencing this problem.
But at least I can add my voice saying that launching directly from the binary at /Applications/FreeCAD.app/Contents/MacOS/FreeCAD works (either via terminal or an alias).

I made an aplescript app with the code

Code: Select all

do shell script "/Applications/FreeCAD.app/Contents/MacOS/FreeCAD"
and gave it a nice icon by replacing the applet.icns with the freecad .icns file.

My info:

MacOS 10.14.6 (18G87)

FreeCAD 0.19:

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17798 (Git)
Build type: Release
Branch: master
Hash: 7e60631239109c632a8f6cca83f6e7e5502e43a1
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

FreeCAD 0.18:

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.3)
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Arvid Tomayko
Audio Equipment Product Development >>> http://yourheaven.net
Musician, Multimedia Artist >>> http://arvidtomayko.com
chrisb
Posts: 17585
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD on macOS Mojave

Postby chrisb » Mon Aug 26, 2019 3:23 pm

arvid wrote:
Mon Aug 26, 2019 2:45 pm
I made an applescript app
I have added a link to this post to the "Known OS specific issues".