PDA

View Full Version : Apple Store invalid signature



guidupas
4th July 2014, 15:03
Hi all!

I am having a problem when sending my .pkg to apple store. It shows me the message of invalid signature.

I am using Qt 5.3 and Mac OSX 10.9 (Mavarick)

Here is my .pro file


#-------------------------------------------------
#
# Project created by QtCreator 2013-07-17T11:28:39
#
#-------------------------------------------------

QT += core gui
QT += xml
QT += printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = SwotGut
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp \
spinboxdelegate.cpp \
desabilitaselecaodelegate.cpp

HEADERS += mainwindow.h \
spinboxdelegate.h \
desabilitaselecaodelegate.h

FORMS += mainwindow.ui

RESOURCES += \
icones.qrc

macx{
APPCERT = \"3rd Party Mac Developer Application: Guilherme Dupas\"
INSTALLERCERT = \"3rd Party Mac Developer Installer: Guilherme Dupas\"
BUNDLEID = com.GuilhermeDupas.SwotGut

MACDEPLOYQT = "/Users/guilhermedupas/Qt5.3.0/5.3/clang_64/bin/macdeployqt"

PROJECTDIR = "SwotGut"
PLIST = "SwotGut.plist"
ICON = "icone.icns"
ENTITLEMENTS = "MyEntitlements.plist"

QMAKE_CFLAGS += -gdwarf-2
QMAKE_CXXFLAGS += -gdwarf-2

QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_INFO_PLIST = SwotGut.plist
OTHER_FILES += $${PLIST} $${ENTITLEMENTS}

codesign.depends += all
codesign.commands += $${MACDEPLOYQT} \"$${TARGET}.app\" -verbose=3;

codesign.commands += dsymutil \"$${TARGET}.app/Contents/MacOS/$${TARGET}\" -o \"$${TARGET}.app.dSYM\";

codesign.commands += codesign -f -s $${APPCERT} -i $${BUNDLEID} \"$${TARGET}.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore\";
codesign.commands += codesign -f -s $${APPCERT} -i $${BUNDLEID} \"$${TARGET}.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui\";
codesign.commands += codesign -f -s $${APPCERT} -i $${BUNDLEID} \"$${TARGET}.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport\";
codesign.commands += codesign -f -s $${APPCERT} -i $${BUNDLEID} \"$${TARGET}.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets\";

codesign.commands += codesign -f -s $${APPCERT} -v --entitlements ../$${PROJECTDIR}/$${ENTITLEMENTS} \"$${TARGET}.app\";

product.depends += all

product.commands += productbuild --component \"$${TARGET}.app\" /Applications --sign $${INSTALLERCERT} \"$${TARGET}.pkg\";

QMAKE_EXTRA_TARGETS += codesign product
}