help with otools needed
-
Hi,
What error are you getting exactly ?
-
kill 9
failed to load library
here is the file, feel free to test with it -
You didn't run macdeployqt on the application bundle, did you ?
-
I ran macdeployqt first on it, and found the plugins and frameworks needed, then compiled with Xcode and copied the required files internally with Xcode.
-
Your application executable doesn't have its dependencies path setup to search within the bundle (what is done for you by macdeployqt).
-
Correct, you are right. But how can i solve it?
Apple support does not help. The problem i have after building the archive (Xcode), which is using the developer account, it produces a package that runs correct but when creating the package (APPSTORE) it fails. -
What if you build it using Qt Creator and telling it to use your publishing account ?
-
There is a problem in building with Qt Creator. Macdeploy qt creates the framework in another format that Apple does not like it. Also, after creating the app bundle, it needs to undergo the verification process that is done by Xcode and then upload. I know we can upload with app loader after creating a package but Xcode should do it all in one.
-
if i give make codesign i get the following
Sherif:build-login-QT_4_8_7-Release sherifomran$ make codesign Makefile:700: warning: overriding commands for target `ui_login.h' Makefile:669: warning: ignoring old commands for target `ui_login.h' /Developer/Tools/QT/macdeployqt "ArabicTypingTutor.app" -verbose=3; dsymutil "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" -o "ArabicTypingTutor.app.dSYM"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -f -s "3rd Party Mac Developer Application: Sherif Omran" -v --entitlements ../TypingTutor/MyEntitlements.entitlements "ArabicTypingTutor.app"; Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libcrypto.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libssl.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqgenericbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqcncodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqjpcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqkrcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqtwcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqgif.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqico.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqjpeg.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqmng.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtga.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtiff.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib" WARNING: WARNING: Could not find any external Qt frameworks to deploy in "ArabicTypingTutor.app" WARNING: Perhaps macdeployqt was already used on "ArabicTypingTutor.app" ? WARNING: If so, you will need to rebuild "ArabicTypingTutor.app" before trying again. Log: Log: Deploying plugins from "/Developer/Applications/Qt/plugins" WARNING: WARNING: "ArabicTypingTutor.app/Contents/Resources/qt.conf" already exists, will not overwrite. WARNING: To make sure the plugins are loaded from the correct location, WARNING: please make sure qt.conf contains the following lines: WARNING: [Paths] WARNING: Plugins = PlugIns ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ../TypingTutor/MyEntitlements.entitlements: cannot read entitlement data make: *** [codesign] Error 1 Sherif:build-login-QT_4_8_7-Release sherifomran$ pwd /Volumes/DATA/Activate Software/typing tutor MAC/build-login-QT_4_8_7-Release Sherif:build-login-QT_4_8_7-Release sherifomran$ ls ../.. typing tutor MAC Sherif:build-login-QT_4_8_7-Release sherifomran$ pwd /Volumes/DATA/Activate Software/typing tutor MAC/build-login-QT_4_8_7-Release Sherif:build-login-QT_4_8_7-Release sherifomran$ make codesign Makefile:700: warning: overriding commands for target `ui_login.h' Makefile:669: warning: ignoring old commands for target `ui_login.h' /Developer/Tools/QT/macdeployqt "ArabicTypingTutor.app" -verbose=3; dsymutil "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" -o "ArabicTypingTutor.app.dSYM"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -f -s "3rd Party Mac Developer Application: Sherif Omran" -v --entitlements ../TypingTutor/MyEntitlements.entitlements "ArabicTypingTutor.app"; Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libcrypto.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libssl.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqgenericbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqcncodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqjpcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqkrcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqtwcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqgif.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqico.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqjpeg.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqmng.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtga.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtiff.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib" WARNING: WARNING: Could not find any external Qt frameworks to deploy in "ArabicTypingTutor.app" WARNING: Perhaps macdeployqt was already used on "ArabicTypingTutor.app" ? WARNING: If so, you will need to rebuild "ArabicTypingTutor.app" before trying again. Log: Log: Deploying plugins from "/Developer/Applications/Qt/plugins" WARNING: WARNING: "ArabicTypingTutor.app/Contents/Resources/qt.conf" already exists, will not overwrite. WARNING: To make sure the plugins are loaded from the correct location, WARNING: please make sure qt.conf contains the following lines: WARNING: [Paths] WARNING: Plugins = PlugIns ArabicTypingTutor.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ../TypingTutor/MyEntitlements.entitlements: cannot read entitlement data make: *** [codesign] Error 1 Sherif:build-login-QT_4_8_7-Release sherifomran$ make codesign Makefile:700: warning: overriding commands for target `ui_login.h' Makefile:669: warning: ignoring old commands for target `ui_login.h' /Developer/Tools/QT/macdeployqt "ArabicTypingTutor.app" -verbose=3; dsymutil "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" -o "ArabicTypingTutor.app.dSYM"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -s "3rd Party Mac Developer Application: Sherif Omran" -i com.PCfone.ArabicTypingTutor "ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork"; codesign -f -s "3rd Party Mac Developer Application: Sherif Omran" -v --entitlements ../TypingTutor/MyEntitlements.entitlements "ArabicTypingTutor.app"; Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libcrypto.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/Frameworks/libssl.1.0.0.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/bearer/libqgenericbearer.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqcncodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqjpcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqkrcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/codecs/libqtwcodecs.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqgif.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqico.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqjpeg.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqmng.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtga.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/imageformats/libqtiff.dylib" Log: Using otool: Log: inspecting "ArabicTypingTutor.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib" WARNING: WARNING: Could not find any external Qt frameworks to deploy in "ArabicTypingTutor.app" WARNING: Perhaps macdeployqt was already used on "ArabicTypingTutor.app" ? WARNING: If so, you will need to rebuild "ArabicTypingTutor.app" before trying again. Log: Log: Deploying plugins from "/Developer/Applications/Qt/plugins" WARNING: WARNING: "ArabicTypingTutor.app/Contents/Resources/qt.conf" already exists, will not overwrite. WARNING: To make sure the plugins are loaded from the correct location, WARNING: please make sure qt.conf contains the following lines: WARNING: [Paths] WARNING: Plugins = PlugIns ArabicTypingTutor.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork: is already signed ArabicTypingTutor.app: code object is not signed at all In subcomponent: /Volumes/DATA/Activate Software/typing tutor MAC/build-login-QT_4_8_7-Release/ArabicTypingTutor.app/Contents/Frameworks/libcrypto.1.0.0.dylib make: *** [codesign] Error 1 Sherif:build-login-QT_4_8_7-Release sherifomran$
-
I can compile the Application with XCode using developer account and the final app works fine. I need to create the pkg and sign it with the distributor account. Could you help me doing it. I read there is a way using the Package or Iceberg program
-
I think there is a way to do it manually
Package release by Xcode:
otool -L ArabicTypingTutorSherif:MacOS sherifomran$ otool -L ArabicTypingTutor ArabicTypingTutor: @executable_path/../Frameworks/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/qt/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.7) /usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.7) /usr/local/opt/qt/lib/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.7) /usr/local/opt/qt/lib/QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.7) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
Package released by macdeployqt
otool -L ArabicTypingTutorArabicTypingTutor.app/Contents/MacOS/ArabicTypingTutor: @executable_path/../Frameworks/QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.7) @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.7) @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.7) @executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.7) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 915.0.0)