Search Unity

clang cannot be opened

Discussion in 'Editor & General Support' started by fabiotgarcia, Oct 13, 2019.

  1. fabiotgarcia

    fabiotgarcia

    Joined:
    Apr 28, 2017
    Posts:
    32
    After Update to MacOS Catalina I'm got this message when building on 2018.4.11 - NDK 16r

    “clang++” cannot be opened because the developer cannot be verified.

    How can we fix this?

    Best Regards,

    Fabio
     
  2. Billionaire91

    Billionaire91

    Joined:
    Jun 13, 2019
    Posts:
    2
    Same issue here.
     
  3. Billionaire91

    Billionaire91

    Joined:
    Jun 13, 2019
    Posts:
    2
    I just found the solution.

    It's a tedious process but:
    1. MacOS: Open up System Preferences
    2. MacOS: Go to Security & Privacy (keep this one open, you'll need it for the entire process)
    3. Unity: Go and build your project. When the error appears click "Cancel"
    4. MacOS: In the Security & Privacy window - go and click "Allow" near the "clang" error - so that the MacOS system will recognize the app and utilise it.
    5. Unity: The error will appear again, but this time will ask you to "Open" it. Click "Open"
    6. Unity: The build will fail several times due to various dependencies, but it will fail with different files that you will need to allow as in the previous steps.
    7. Unity: Build again your app.
    8. If it fails, do the steps again, until it stops failing. Every single error you get with the file not being recognized will be different each time
     
    unitydevelopers-greg likes this.
  4. TerrenceRao

    TerrenceRao

    Joined:
    Jun 19, 2015
    Posts:
    5
    Indeed Catalina is more strict about the permission of software, especially for those that you've downloaded from internet. MacOS Catalina is requiring participation in Apple's developer program specifically.
    so try this:

    Code (Shell):
    1. sudo spctl --master-disable
    to allow apps downloaded from Anywhere
     
    phong-genix likes this.
  5. fabiotgarcia

    fabiotgarcia

    Joined:
    Apr 28, 2017
    Posts:
    32
    The solution I found:

    Download Unity 2019.2.9 with Android SDK & NDK Tools + OpenJDK

    Open it and set the External Tools.

    Now you can open Unity 2018.4.11 and use the same paths.
     
    SweatyChair likes this.
  6. Squirenetic

    Squirenetic

    Joined:
    Nov 8, 2016
    Posts:
    4
    Easier way to go about it:

    Search in finder for clang & clang++ . You might find a couple of instances of each. Alt-option right-click on the file and press open. You will be presented with the same warning, but with the option to run the file anyway. From now on, it will run without warnings
     
  7. fabiotgarcia

    fabiotgarcia

    Joined:
    Apr 28, 2017
    Posts:
    32
    Thank you!
     
  8. phong-genix

    phong-genix

    Joined:
    Oct 28, 2015
    Posts:
    108
    Thank you.