Skip to content

Instantly share code, notes, and snippets.

@Nikoogle
Last active November 28, 2020 22:04
Show Gist options
  • Save Nikoogle/a5e26c031f7dea24b5c3e2ca9a011f2d to your computer and use it in GitHub Desktop.
Save Nikoogle/a5e26c031f7dea24b5c3e2ca9a011f2d to your computer and use it in GitHub Desktop.
OSX High Sierra [EXC_CRASH (Code Signature Invalid)]

Sooo, Big Sur is out! M1 is out! Congrats.

Unfortunately tho, something happened in early November of 2020, that made most(if not all apps) fail, when installed via the Apple Store.

Applications are failing with Code Signature Invalid.

Before Shot: https://prnt.sc/vrwudb

How to solve (in some cases)

Option 1:

Based on: https://discussions.apple.com/thread/252037712?answerId=253982651022#253982651022

Credits to user SoftMusic.

Download this, and place(unzip if you have to) in your Desktop:

MediaFire 1: http://www.mediafire.com/file/m2ky3mrnon6jy49/valid.sqlite3.zip/file

MediaFire 2(in case link one does not work): http://www.mediafire.com/file/9heurc0l3ygw6za/valid.sqlite3/file

Once downloaded:

sudo killall -9 trustd; sudo cp ~/Desktop/valid.sqlite3 /Library/Keychains/crls/valid.sqlite3

This should do it.

Option 2:

Based on: https://discussions.apple.com/thread/252030900

Disable Gatekeeper ( THIS IS DANGEROUS be very aware, this makes you succeptible to malware, if you install things from random sources.)

sudo spctl --master-disable

Install XCode

xcode-select install

Sign App Yourself (example given with Pages)

sudo codesign --deep -fs - /Applications/Pages.app

After Shot: https://prnt.sc/vrwv3n

NB!: I am looking for ways to fix applications that install helpers (think Docker and MacOS Server), because one seems unable to self-sign the helpers.

DISCLAIMER

THE SAMPLE CODE ON THIS GIST IS PROVIDED “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PAGERDUTY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) SUSTAINED BY YOU OR A THIRD PARTY, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ARISING IN ANY WAY OUT OF THE USE OF THIS SAMPLE CODE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment