View Single Post
Old 04-09-2017, 03:28 PM   #69
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,961
Karma: 6361444
Join Date: Nov 2009
Device: many
This is so frustrating .... Mac OSX Sierra Gatekeeper Path Randomization is killing me.

I removed the -E flag from PluginRunner and added both environment variables to specify the plugin path.

I build this on my own machine and run it, it all works. But if install Sigil.app on my own laptop and try to run it I get thefollowing totally nonsense error message:

Code:
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "/Applications/Sigil.app/Contents/PlugIns/platforms".

Available platform plugins are: cocoa (from /Applications/Sigil.app/Contents/PlugIns/platforms).

Reinstalling the application may fix this problem.

Launcher process crashed
Notice it says it exactly where the cocoa plugin truly is!

I changed things so that only pyc are used in Sigil.app, made sure nothing else gets written to the app, deep codesigned both the app and the dmg. Copy the dmg to my laptop via a usb key. Verify that everything is still properly codesigned, and then copy it to /Applications and again verify that all if properly codesigned.

Then I fire it up and because of some strange path randomization, then entire thing comes back with an insane message.

Forced path randomization is for the birds!

This is so strange! According to the Gatekeeper docs, I have done everything I should have. I have properly codesigned deeply the app and the dmg. I have manually copies Sigil.app from the dmg image into /Applications. And according ot the following test I have properly codesigned things:

Code:
cd /Applications
codesign --verify --deep --verbose=2 ./Sigil.app

./Sigil.app: valid on disk
./Sigil.app: satisfies its Designated Requirement



codesign --verify --deep --verbose=2 ./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.5/Resources/Python.app

./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.5/Resources/Python.app: valid on disk
./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.5/Resources/Python.app: satisfies its Designated Requirement
So it should no longer be translocating (path randomized) Sigil.app or its internal Python.app but it does!
KevinH is online now   Reply With Quote