Cannot use old NDK (android-ndk-r17c) after Catalina upgrade due to new security

前端 未结 2 866
你的背包
你的背包 2021-02-12 20:34

After upgrading to macOS Catalina, my project won\'t build anymore. This is due to Catalina believing the binaries in \'android-ndk-r17c\' to not be from a trusted developer.

相关标签:
2条回答
  • 2021-02-12 21:17

    To allow apps downloaded from Anywhere on MacOs Catalana do this:

    sudo spctl --master-disable
    
    0 讨论(0)
  • 2021-02-12 21:20

    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. The error will appear again, but this time will ask you to "Open" it. Click "Open"
    6. 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. Build again your project.
    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
    0 讨论(0)
提交回复
热议问题