Unable to sign app bundle using Qt frameworks on OS X 10.10

后端 未结 2 1741
名媛妹妹
名媛妹妹 2021-01-13 04:49

I am having trouble signing Qt Based application un OS X. I am using Qt 5.3.2.

I have read various information source that contain contradictory information.

2条回答
  •  失恋的感觉
    2021-01-13 05:37

    I run a script similar to this after running macdeployqt:

    #!/bin/bash
    
    #copy .plist files to frameworks
    cp "/usr/local/Trolltech/Qt-4.8.5/lib/QtCore.framework/Contents/Info.plist" "SimpleHello.app/Contents/Frameworks/QtCore.framework/Resources/Info.plist"
    #copy folders to proper location
    cp -r "SimpleHello.app/Contents/Frameworks/QtCore.framework/Resources" "SimpleHello.app/Contents/Frameworks/QtCore.framework/Versions/4/Resources"
    #delete old folders
    rm -rf "SimpleHello.app/Contents/Frameworks/QtCore.framework/Resources"
    #create symlinks
    ln -s "Versions/4/Resources" "SimpleHello.app/Contents/Frameworks/QtCore.framework/Resources"
    

    After, I use:

    codesign --deep -f -s
    

    and it works, just add the missing frameworks in a similar fashion. I haven't tried it with qt 5+ but it might work for it to.

提交回复
热议问题