Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from:
Forum Updated to NodeBB v4.3 + New Features

What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from:

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 3 Posters 1.5k 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
    senmx
    wrote on last edited by senmx
    #1
    Undefined symbols for architecture x86_64:
        "_OBJC_CLASS_$_CAMetalLayer", referenced from:
            objc-class-ref in libqios_debug.a(quiview.o)
        "___isPlatformVersionAtLeast", referenced from:
            QIOSTheme::initializeSystemPalette() in libqios_debug.a(qiostheme.o)
            -[QIOSDocumentPickerController initWithQIOSFileDialog:] in libqios_debug.a(qiosdocumentpickercontroller.o)
            +[QUIMetalView layerClass] in libqios_debug.a(quiview.o)
            QRhiMetal::beginPass(QRhiCommandBuffer*, QRhiRenderTarget*, QColor const&, QRhiDepthStencilClearValue const&, QRhiResourceUpdateBatch*) in libQt5Gui_debug.a(qrhimetal.o)
            QMetalSwapChain::release() in libQt5Gui_debug.a(qrhimetal.o)
            QMetalSwapChain::buildOrResize() in libQt5Gui_debug.a(qrhimetal.o)
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
       BUILD FAILED 
    

    Qt 5.15.2 for iOS
    xcode 10.1
    macOS 10.13.6

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

      @senmx said in What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from::

      isPlatformVersionAtLeast

      From the looks of it, your version of Xcode is too old.

      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
      • S senmx
        Undefined symbols for architecture x86_64:
            "_OBJC_CLASS_$_CAMetalLayer", referenced from:
                objc-class-ref in libqios_debug.a(quiview.o)
            "___isPlatformVersionAtLeast", referenced from:
                QIOSTheme::initializeSystemPalette() in libqios_debug.a(qiostheme.o)
                -[QIOSDocumentPickerController initWithQIOSFileDialog:] in libqios_debug.a(qiosdocumentpickercontroller.o)
                +[QUIMetalView layerClass] in libqios_debug.a(quiview.o)
                QRhiMetal::beginPass(QRhiCommandBuffer*, QRhiRenderTarget*, QColor const&, QRhiDepthStencilClearValue const&, QRhiResourceUpdateBatch*) in libQt5Gui_debug.a(qrhimetal.o)
                QMetalSwapChain::release() in libQt5Gui_debug.a(qrhimetal.o)
                QMetalSwapChain::buildOrResize() in libQt5Gui_debug.a(qrhimetal.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          
           BUILD FAILED 
        

        Qt 5.15.2 for iOS
        xcode 10.1
        macOS 10.13.6

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @senmx "Undefined symbols" means that linker can't find definitions for some symbols. Usually this means that some object files are not linked or used libs are not compatible with the architecture (like in this case with x86_64).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        0
        • jsulmJ jsulm

          @senmx "Undefined symbols" means that linker can't find definitions for some symbols. Usually this means that some object files are not linked or used libs are not compatible with the architecture (like in this case with x86_64).

          S Offline
          S Offline
          senmx
          wrote on last edited by
          #3

          @jsulm Tks. But I don't know where it is caused, and this error message seems to be impossible to troubleshoot.

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

            Hi,

            Which version of Qt are you building ?
            On which version of macOS ?
            Using which version of Xcode ?

            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

              Hi,

              Which version of Qt are you building ?
              On which version of macOS ?
              Using which version of Xcode ?

              S Offline
              S Offline
              senmx
              wrote on last edited by
              #5

              @SGaist
              Qt 5.15.2
              xcode 10.1
              macOS 10.13.6

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

                @senmx said in What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from::

                isPlatformVersionAtLeast

                From the looks of it, your version of Xcode is too old.

                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

                  @senmx said in What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from::

                  isPlatformVersionAtLeast

                  From the looks of it, your version of Xcode is too old.

                  S Offline
                  S Offline
                  senmx
                  wrote on last edited by senmx
                  #7

                  @SGaist Tks. After I downgraded the Qt version, there was no problem.

                  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