Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. help with otools needed
Forum Updated to NodeBB v4.3 + New Features

help with otools needed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
12 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SherifOmran
    wrote on last edited by
    #1

    Hello guys,

    i have built my application with Qt, created the Xcode file and compiled the file with Xcode, signed it correctly and created the Appstore package.
    The package fails to load for some reason which i still don't understand, it seems
    the rpath ... etc

    When i give otool -l -v i see the followings

    Sherif:MacOS sherifomran$ otool -l -v ArabicTypingTutor 
    ArabicTypingTutor:
    Load command 0
          cmd LC_SEGMENT_64
      cmdsize 72
      segname __PAGEZERO
       vmaddr 0x0000000000000000
       vmsize 0x0000000100000000
      fileoff 0
     filesize 0
      maxprot ---
     initprot ---
       nsects 0
        flags (none)
    Load command 1
          cmd LC_SEGMENT_64
      cmdsize 712
      segname __TEXT
       vmaddr 0x0000000100000000
       vmsize 0x000000000046a000
      fileoff 0
     filesize 4628480
      maxprot rwx
     initprot r-x
       nsects 8
        flags (none)
    Section
      sectname __text
       segname __TEXT
          addr 0x0000000100003b70
          size 0x00000000000a7548
        offset 15216
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0
     reserved2 0
    Section
      sectname __stubs
       segname __TEXT
          addr 0x00000001000ab0b8
          size 0x0000000000000fe4
        offset 700600
         align 2^1 (2)
        reloff 0
        nreloc 0
          type S_SYMBOL_STUBS
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0 (index into indirect symbol table)
     reserved2 6 (size of stubs)
    Section
      sectname __stub_helper
       segname __TEXT
          addr 0x00000001000ac09c
          size 0x0000000000001a78
        offset 704668
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0
     reserved2 0
    Section
      sectname __gcc_except_tab
       segname __TEXT
          addr 0x00000001000adb14
          size 0x000000000001fd10
        offset 711444
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __const
       segname __TEXT
          addr 0x00000001000cd830
          size 0x0000000000391a7e
        offset 841776
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __cstring
       segname __TEXT
          addr 0x000000010045f2ae
          size 0x0000000000007900
        offset 4584110
         align 2^0 (1)
        reloff 0
        nreloc 0
          type S_CSTRING_LITERALS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __unwind_info
       segname __TEXT
          addr 0x0000000100466bb0
          size 0x000000000000299c
        offset 4615088
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __eh_frame
       segname __TEXT
          addr 0x0000000100469550
          size 0x0000000000000aa8
        offset 4625744
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Load command 2
          cmd LC_SEGMENT_64
      cmdsize 712
      segname __DATA
       vmaddr 0x000000010046a000
       vmsize 0x0000000000006000
      fileoff 4628480
     filesize 24576
      maxprot rwx
     initprot rw-
       nsects 8
        flags (none)
    Section
      sectname __got
       segname __DATA
          addr 0x000000010046a000
          size 0x0000000000000070
        offset 4628480
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_NON_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 678 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __nl_symbol_ptr
       segname __DATA
          addr 0x000000010046a070
          size 0x0000000000000010
        offset 4628592
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_NON_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 692 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __la_symbol_ptr
       segname __DATA
          addr 0x000000010046a080
          size 0x0000000000001530
        offset 4628608
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 694 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __mod_init_func
       segname __DATA
          addr 0x000000010046b5b0
          size 0x0000000000000050
        offset 4634032
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_MOD_INIT_FUNC_POINTERS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __const
       segname __DATA
          addr 0x000000010046b600
          size 0x0000000000004108
        offset 4634112
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __data
       segname __DATA
          addr 0x000000010046f708
          size 0x0000000000000080
        offset 4650760
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __common
       segname __DATA
          addr 0x000000010046f790
          size 0x0000000000000431
        offset 0
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_ZEROFILL
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __bss
       segname __DATA
          addr 0x000000010046fbc4
          size 0x0000000000000004
        offset 0
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_ZEROFILL
    attributes (none)
     reserved1 0
     reserved2 0
    Load command 3
          cmd LC_SEGMENT_64
      cmdsize 72
      segname __LINKEDIT
       vmaddr 0x0000000100470000
       vmsize 0x000000000001e000
      fileoff 4653056
     filesize 120368
      maxprot rwx
     initprot r--
       nsects 0
        flags (none)
    Load command 4
                cmd LC_DYLD_INFO_ONLY
            cmdsize 48
         rebase_off 4653056
        rebase_size 512
           bind_off 4653568
          bind_size 9592
      weak_bind_off 4663160
     weak_bind_size 48
      lazy_bind_off 4663208
     lazy_bind_size 27784
         export_off 4690992
        export_size 32
    Load command 5
         cmd LC_SYMTAB
     cmdsize 24
      symoff 4693392
       nsyms 812
      stroff 4711872
     strsize 28456
    Load command 6
                cmd LC_DYSYMTAB
            cmdsize 80
          ilocalsym 0
          nlocalsym 1
         iextdefsym 1
         nextdefsym 1
          iundefsym 2
          nundefsym 810
             tocoff 0
               ntoc 0
          modtaboff 0
            nmodtab 0
       extrefsymoff 0
        nextrefsyms 0
     indirectsymoff 4706384
      nindirectsyms 1372
          extreloff 0
            nextrel 0
          locreloff 0
            nlocrel 0
    Load command 7
              cmd LC_LOAD_DYLINKER
          cmdsize 32
             name /usr/lib/dyld (offset 12)
    Load command 8
         cmd LC_UUID
     cmdsize 24
        uuid C09B8EC9-D1BA-3720-BF3B-D23EDB1D6D80
    Load command 9
          cmd LC_VERSION_MIN_MACOSX
      cmdsize 16
      version 10.11
          sdk 10.11
    Load command 10
          cmd LC_SOURCE_VERSION
      cmdsize 16
      version 0.0
    Load command 11
           cmd LC_MAIN
       cmdsize 24
      entryoff 32416
     stacksize 0
    Load command 12
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1.0.0
    compatibility version 1.0.0
    Load command 13
              cmd LC_LOAD_DYLIB
          cmdsize 72
             name /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1.0.0
    compatibility version 1.0.0
    Load command 14
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name /usr/local/opt/qt/lib/QtCore.framework/Versions/4/QtCore (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 4.8.7
    compatibility version 4.8.0
    Load command 15
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name /usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 4.8.7
    compatibility version 4.8.0
    Load command 16
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name /usr/local/opt/qt/lib/QtNetwork.framework/Versions/4/QtNetwork (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 4.8.7
    compatibility version 4.8.0
    Load command 17
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name /usr/local/opt/qt/lib/QtSql.framework/Versions/4/QtSql (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 4.8.7
    compatibility version 4.8.0
    Load command 18
              cmd LC_LOAD_DYLIB
          cmdsize 48
             name /usr/lib/libc++.1.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 120.1.0
    compatibility version 1.0.0
    Load command 19
              cmd LC_LOAD_DYLIB
          cmdsize 56
             name /usr/lib/libSystem.B.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1226.10.1
    compatibility version 1.0.0
    Load command 20
              cmd LC_RPATH
          cmdsize 72
             path @executable_path/../Frameworks/libcrypto.1.0.0.dylib (offset 12)
    Load command 21
              cmd LC_RPATH
          cmdsize 64
             path @executable_path/../Frameworks/libssl.1.0.0.dylib (offset 12)
    Load command 22
              cmd LC_RPATH
          cmdsize 80
             path @executable_path/../Frameworks/QtCore.framework/Versions/A/QtCore (offset 12)
    Load command 23
              cmd LC_RPATH
          cmdsize 80
             path @executable_path/../Frameworks/QtSql.framework/Versions/A/QtSql (offset 12)
    Load command 24
              cmd LC_RPATH
          cmdsize 80
             path @executable_path/../Frameworks/QtGui.framework/Versions/A/QtGui (offset 12)
    Load command 25
              cmd LC_RPATH
          cmdsize 88
             path @executable_path/../Frameworks/QtNetwork.framework/Versions/A/QtNetwork (offset 12)
    Load command 26
          cmd LC_FUNCTION_STARTS
      cmdsize 16
      dataoff 4691024
     datasize 2368
    Load command 27
          cmd LC_DATA_IN_CODE
      cmdsize 16
      dataoff 4693392
     datasize 0
    Load command 28
          cmd LC_CODE_SIGNATURE
      cmdsize 16
      dataoff 4740336
     datasize 33088
    Sherif:MacOS sherifomran$ 
    
    

    if i give otool -L -v i get the following

    ArabicTypingTutor:
    	/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/local/opt/qt/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.7)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.7)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/local/opt/qt/lib/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.7)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/local/opt/qt/lib/QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.7)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
    	time stamp 2 Thu Jan  1 01:00:02 1970
    Sherif:MacOS sherifomran$ 
    
    

    The frameworks exist in the Framework folder
    Sherif:Contents sherifomran$ ls Frameworks/
    QtCore.framework QtNetwork.framework libcrypto.1.0.0.dylib
    QtGui.framework QtSql.framework libssl.1.0.0.dylib
    Sherif:Contents sherifomran$

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What error are you getting exactly ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SherifOmran
        wrote on last edited by SherifOmran
        #3

        kill 9
        failed to load library
        here is the file, feel free to test with it

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You didn't run macdeployqt on the application bundle, did you ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SherifOmran
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Your application executable doesn't have its dependencies path setup to search within the bundle (what is done for you by macdeployqt).

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SherifOmran
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What if you build it using Qt Creator and telling it to use your publishing account ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What if you build it using Qt Creator and telling it to use your publishing account ?

                    S Offline
                    S Offline
                    SherifOmran
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SherifOmran
                      wrote on last edited by
                      #10

                      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$ 
                      
                      
                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SherifOmran
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SherifOmran
                          wrote on last edited by
                          #12

                          I think there is a way to do it manually

                          Package release by Xcode:
                          otool -L ArabicTypingTutor

                          Sherif: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 ArabicTypingTutor

                          ArabicTypingTutor.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)
                          
                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved