Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

macdeployqt Codesign signing error: errSecInternalComponent



  • In case anyone else is having this problem:

    martin@petrel:~/camcops/build-camcops-Mac-Release$ ~/workspace/qt_local_build/qt_macos_x86_64_install/bin/macdeployqt camcops.app -verbose=3 -dmg -codesign="Apple Development: Martin Burchell (XXXXXXXXXX)" -appstore-compliant
    Log: Argument found: "-dmg"
    Log: Argument found: "-codesign=Apple Development: Martin Burchell (XXXXXXXXXX)"
    Log: Argument found: "-appstore-compliant"
    Log: Using otool:
    Log:  inspecting "/Users/martin/camcops/build-camcops-Mac-Release/camcops.app/Contents/MacOS/camcops"
    WARNING:
    WARNING: Could not find any external Qt frameworks to deploy in "camcops.app"
    WARNING: Perhaps macdeployqt was already used on "camcops.app" ?
    WARNING: If so, you will need to rebuild "camcops.app" before trying again.
    Log: Using strip:
    Log:  stripped "/Users/martin/camcops/build-camcops-Mac-Release/camcops.app/Contents/MacOS/camcops"
    Log:
    Log: Signing "camcops.app" with identity "Apple Development: Martin Burchell (XXXXXXXXXX)"
    Log: Using otool:
    Log:  inspecting "/Users/martin/camcops/build-camcops-Mac-Release/camcops.app/Contents/MacOS/camcops"
    Log: codesign "/Users/martin/camcops/build-camcops-Mac-Release/camcops.app/Contents/MacOS/camcops"
    ERROR: Codesign signing error:
    ERROR: "/Users/martin/camcops/build-camcops-Mac-Release/camcops.app/Contents/MacOS/camcops: errSecInternalComponent\n"
    Log: Finished codesigning  "camcops.app" with identity "Apple Development: Martin Burchell (XXXXXXXXXX)"
    ERROR: codesign verification error:
    ERROR: "camcops.app: code object is not signed at all\nIn architecture: x86_64\n"
    

    The problem was that I was running this on the Mac over SSH. When I tried the same command on the Mac directly it worked without error.


Log in to reply