#create app to use it on mac without Qt /5.3/clang_64/bin/macdeployqt .app -verbose=1 -qmldir=/qml/ -executable=.app/Contents/MacOS/ #remove not needed folder with plugin rm -rf .app/Contents/Resources/qml/com #copy info plist form frameorks cp /5.3/clang_64/lib/QtQuick.framework/Contents/Info.plist .app/Contents/Frameworks/QtQuick.framework/Resources/ cp /5.3/clang_64/lib/QtQml.framework/Contents/Info.plist .app/Contents/Frameworks/QtQml.framework/Resources/ cp /5.3/clang_64/lib/QtNetwork.framework/Contents/Info.plist .app/Contents/Frameworks/QtNetwork.framework/Resources/ cp /5.3/clang_64/lib/QtGui.framework/Contents/Info.plist .app/Contents/Frameworks/QtGui.framework/Resources/ cp /5.3/clang_64/lib/QtCore.framework/Contents/Info.plist .app/Contents/Frameworks/QtCore.framework/Resources/ cp /5.3/clang_64/lib/QtPrintSupport.framework/Contents/Info.plist .app/Contents/Frameworks/QtPrintSupport.framework/Resources/ cp /5.3/clang_64/lib/QtWidgets.framework/Contents/Info.plist .app/Contents/Frameworks/QtWidgets.framework/Resources/ cp /5.3/clang_64/lib/QtXml.framework/Contents/Info.plist .app/Contents/Frameworks/QtXml.framework/Resources/ #create dSYM file dsymutil .app/Contents/MacOS/ -o .app.dSYM #sign all *.dylib find .app/Contents -name *.dylib | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "3rd Party Mac Developer Application: Team ID" $ #sign Qt frameworks find .app/Contents -name Qt* -type f | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "3rd Party Mac Developer Application: Team ID" $ #sign app codesign -vvvv --force --verify --deep --verbose --entitlements Entitlements.plist --sign "3rd Party Mac Developer Application: Team ID" .app #create product package productbuild --component ".app" /Applications --sign "3rd Party Mac Developer Installer: Team ID" --product ".app/Contents/Info.plist" .pkg