Hi everyone!
At last I found the solution of my problem with static plugin for iOS. The solution is: set line to your plugin .pro file
@
QMAKE_MOC_OPTIONS += -Muri=com.shav.picfection
@
and you plugin .pro file must looks like:
TEMPLATE = lib
TARGET = PicfectionSDK
QT += qml quick network
ios {
CONFIG += qt plugin c++11 static
}
else
{
CONFIG += qt plugin c++11
}
TARGET = $qtLibraryTarget($TARGET)
uri = com.shav.picfection
QMAKE_MOC_OPTIONS += -Muri=com.shav.picfection #<----- This helped me to solve my problem.
DESTDIR = com/shav/picfection
OBJECTS_DIR = tmp/objects
MOC_DIR = tmp/mocs
SOURCES +=
picfectionsdk_plugin.cpp
picfectionmanager.cpp
Requests/picfectionnetworkmanager.cpp
Requests/picfectionrequest.cpp
Objects/Team/picfectionteam.cpp
Objects/Project/picfectionproject.cpp
Objects/Event/picfectionevent.cpp
Objects/Event/picfectioneventdatas.cpp
Objects/Event/picfectioneventdocument.cpp
Objects/Event/picfectioneventuser.cpp
HEADERS +=
picfectionsdk_plugin.h
picfectionmanager.h
Requests/picfectionnetworkmanager.h
Requests/picfectionrequest.h
Objects/Team/picfectionteam.h
Objects/Project/picfectionproject.h
Objects/Event/picfectionevent.h
Objects/Event/picfectioneventdatas.h
Objects/Event/picfectioneventdocument.h
Objects/Event/picfectioneventuser.h
DISTFILES = qmldir
picfectionsdk.json
!equals(PRO_FILE_PWD, $OUT_PWD) {
copy_qmldir.target = $OUT_PWD/$DESTDIR/qmldir
copy_qmldir.depends = $PRO_FILE_PWD/qmldir
copy_qmldir.commands = $(COPY_FILE) "$replace(copy_qmldir.depends, /, $QMAKE_DIR_SEP)" "$replace(copy_qmldir.target, /, $QMAKE_DIR_SEP)"
sourceQmlTypePath = $_PRO_FILE_PWD_/Picfection.qmltypes
targetQmlTypePath = $OUT_PWD/$DESTDIR/Picfection.qmltypes
copy_qmldir.commands += && $(COPY_FILE) \"$replace(sourceQmlTypePath, /, $QMAKE_DIR_SEP)\" \"$replace(targetQmlTypePath, /, $QMAKE_DIR_SEP)\"
sourceQmlFilesPath = $PRO_FILE_PWD/MslQmlControllerItem.qml
targetQmlFilesPath = $OUT_PWD/$DESTDIR/MslQmlControllerItem.qml
copy_qmldir.commands += && $(COPY_FILE) "$replace(sourceQmlFilesPath, /, $QMAKE_DIR_SEP)" "$replace(targetQmlFilesPath, /, $QMAKE_DIR_SEP)"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $copy_qmldir.target
}
qmldir.files = qmldir
unix {
installPath = $[QT_INSTALL_QML]/$replace(uri, \., /)
qmldir.path = $installPath
target.path = $installPath
INSTALLS += target qmldir
}