What is this: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CAMetalLayer", referenced from:
-
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 -
@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.
-
@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).
-
Hi,
Which version of Qt are you building ?
On which version of macOS ?
Using which version of Xcode ? -
@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.