Forums

OverviewV-Play 2 Support (Qt 5) › undefined symbols

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #13001

    Bas

    hi i get these errors during linking:

    i am not shure why i get these errors

     

    Undefined symbols for architecture arm64:

    “_OBJC_METACLASS_$_XCTestCase”, referenced from:

    _OBJC_METACLASS_$_QtTestLibWrapper in libQt5Test.a(qxctestlogger.o)

    _OBJC_METACLASS_$_QtTestLibTest in libQt5Test.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestDriver”, referenced from:

    objc-class-ref in libQt5Test.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestCase”, referenced from:

    _OBJC_CLASS_$_QtTestLibWrapper in libQt5Test.a(qxctestlogger.o)

    _OBJC_CLASS_$_QtTestLibTest in libQt5Test.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestSuite”, referenced from:

    objc-class-ref in libQt5Test.a(qxctestlogger.o)

    _OBJC_CLASS_$_QtTestLibTests in libQt5Test.a(qxctestlogger.o)

    “_OBJC_METACLASS_$_XCTestSuite”, referenced from:

    _OBJC_METACLASS_$_QtTestLibTests in libQt5Test.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestProbe”, referenced from:

    objc-class-ref in libQt5Test.a(qxctestlogger.o)

    ld: symbol(s) not found for architecture arm64

    #13002

    Günther
    V-Play Team

    Hi Bas!
    Which target kit are you building and on which OS?
    And does this also happen for a standard Qt Quick Application or only for V-Play projects? (You can create and build a Qt Quick App or Empty V-Play App with the Qt Creator file wizards).

    Best, Günther

    #13003

    Bas

    i am using 5.6 with v-play 2.8.1 and want to create a ios debug or release build

    and i get errors from the maintenance tool.

    i re install v-play.

    #13004

    Bas

    after reinstalling v-play i get same errors

     

    Undefined symbols for architecture x86_64:

    “_OBJC_CLASS_$_XCTestCase”, referenced from:

    _OBJC_CLASS_$_QtTestLibWrapper in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    _OBJC_CLASS_$_QtTestLibTest in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestDriver”, referenced from:

    objc-class-ref in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestProbe”, referenced from:

    objc-class-ref in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    “_OBJC_CLASS_$_XCTestSuite”, referenced from:

    objc-class-ref in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    _OBJC_CLASS_$_QtTestLibTests in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    “_OBJC_METACLASS_$_XCTestCase”, referenced from:

    _OBJC_METACLASS_$_QtTestLibWrapper in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    _OBJC_METACLASS_$_QtTestLibTest in libQt5Test_iphonesimulator_debug.a(qxctestlogger.o)

    “_OBJC_METACLASS_$_XCTestSuite”, referenced from:

    _OBJC_METACLASS_$_QtTestLibTests in libQt5Test_iphonesimulator_debug.a(qxctestlogger.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 **

    The following build commands failed:

    Ld Debug-iphonesimulator/PlusPuzzels.app/PlusPuzzels normal x86_64

    (1 failure)

    make: *** [xcodebuild-debug-iphonesimulator] Error 65

    07:52:46: The process “/usr/bin/make” exited with code 2.

    Error while building/deploying project PlusPuzzels (kit: iphonesimulator-clang Qt 5.6.0 for iOS)

    When executing step “Make”

    07:52:46: Elapsed time: 00:10.

    #13005

    Bas

    blank v-play project works, no errors.

    the project i try to compile is an older project, but never had any trouble, i am using google analytics an facebook plugin.

    #13006

    Bas

    what can i do rebuild project?

    projects should be backwards compatible right?

    • This reply was modified 10 months, 2 weeks ago by  zzzax.
    #13008

    Bas
    #13009

    Bas

    here is the complete linker output:

     

    Ld Debug-iphoneos/PlusPuzzels.app/PlusPuzzels normal arm64

        cd /Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release

        export IPHONEOS_DEPLOYMENT_TARGET=6.0

        export PATH=”/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin”

        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release/Debug-iphoneos -L/Users/baslentfert/qtprojects/PlusPuzzels/ios/FacebookSDK -L/Users/baslentfert/V-PlaySDK/5.6/ios/lib -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtMultimedia -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/VPlayPlugins/googleanalytics -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/VPlayPlugins/facebook -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Controls -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Window.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Particles.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtGraphicalEffects/private -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Layouts -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQml/Models.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Extras -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Dialogs -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt/labs/folderlistmodel -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt/labs/settings -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Dialogs/Private -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtTest -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt3D/Core -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt3D/Render -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Scene3D -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/LocalStorage -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtLocation -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtPositioning -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/mediaservice -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/audio -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/playlistformats -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/imageformats -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/qmltooling -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/bearer -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/sqldrivers -F/Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release/Debug-iphoneos -F/Users/baslentfert/qtprojects/PlusPuzzels/ios/FacebookSDK -filelist /Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release/PlusPuzzels.build/Debug-iphoneos/PlusPuzzels.build/Objects-normal/arm64/PlusPuzzels.LinkFileList -miphoneos-version-min=6.0 -dead_strip -Xlinker -no_deduplicate -headerpad_max_install_names -stdlib=libc++ -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -lc++ -F/Users/baslentfert/qtprojects/PlusPuzzels/ios/FacebookSDK -L/Users/baslentfert/V-PlaySDK/5.6/ios/lib -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -framework MobileCoreServices -framework OpenGLES -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtMultimedia -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/VPlayPlugins/googleanalytics -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/VPlayPlugins/facebook -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Controls -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Window.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Particles.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtGraphicalEffects/private -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Layouts -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQml/Models.2 -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Extras -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Dialogs -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt/labs/folderlistmodel -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt/labs/settings -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Dialogs/Private -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtTest -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt3D/Core -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/Qt3D/Render -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/Scene3D -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtQuick/LocalStorage -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtLocation -L/Users/baslentfert/V-PlaySDK/5.6/ios/qml/QtPositioning -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/mediaservice -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/audio -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/playlistformats -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/imageformats -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/qmltooling -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/bearer -L/Users/baslentfert/V-PlaySDK/5.6/ios/plugins/sqldrivers -lz -lm -framework FacebookSDK -lVPlay -lqios_debug -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport_debug -lQt5DBus_debug -lqtfreetype_debug -framework Security -framework SystemConfiguration -lQt5WebSockets_debug -lqtquick2plugin_debug -ldeclarative_multimedia_debug -lQt5MultimediaQuick_p_debug -lqmlgoogleanalyticsplugin_debug -lGoogleAnalyticsPlugin_debug -lqmlfacebookplugin_debug -lFacebookPlugin_debug -lVPlayBasePlugin_debug -lqtquickcontrolsplugin_debug -lwindowplugin_debug -lparticlesplugin_debug -lQt5QuickParticles_debug -lqtgraphicaleffectsprivate_debug -lqquicklayoutsplugin_debug -lmodelsplugin_debug -lqtquickextrasplugin_debug -ldialogplugin_debug -lqmlfolderlistmodelplugin_debug -lqmlsettingsplugin_debug -ldialogsprivateplugin_debug -lqmltestplugin_debug -lQt5QuickTest_debug -lQt5Test_debug -lquick3dcoreplugin_debug -lquick3drenderplugin_debug -lQt53DQuickRender_debug -lQt53DQuick_debug -lqtquickscene3dplugin_debug -lQt53DInput_debug -lQt53DRender_debug -lQt53DCore_debug -lQt5OpenGLExtensions_debug -lQt5Concurrent_debug -lqmllocalstorageplugin_debug -ldeclarative_location_debug -lQt5Location_debug -lpoly2tri_debug -ldeclarative_positioning_debug -lQt5Positioning_debug -lqavfcamera_debug -framework AudioToolbox -framework CoreAudio -framework AVFoundation -framework CoreMedia -framework CoreVideo -lqavfmediaplayer_debug -lQt5MultimediaWidgets_debug -lQt5OpenGL_debug -lQt5Widgets_debug -lqtmedia_audioengine_debug -lqtaudio_coreaudio_debug -lqtmultimedia_m3u_debug -lQt5Multimedia_debug -lqdds_debug -lqicns_debug -lqico_debug -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lqmldbg_debugger_debug -lqmldbg_inspector_debug -lQt5Quick_debug -lqmldbg_local_debug -lqmldbg_native_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lqmldbg_profiler_debug -lqmldbg_server_debug -lqmldbg_tcp_debug -lQt5Qml_debug -lqgenericbearer_debug -lQt5Network_debug -lqsqlite_debug -lQt5Sql_debug -lQt5Core_debug -lqtpcre_debug -Xlinker -dependency_info -Xlinker /Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release/PlusPuzzels.build/Debug-iphoneos/PlusPuzzels.build/Objects-normal/arm64/PlusPuzzels_dependency_info.dat -o /Users/baslentfert/qtprojects/build-PlusPuzzels-iphoneos_clang_Qt_5_6_0_for_iOS-Release/Debug-iphoneos/PlusPuzzels.app/PlusPuzzels

    Undefined symbols for architecture arm64:

      “_OBJC_METACLASS_$_XCTestCase”, referenced from:

          _OBJC_METACLASS_$_QtTestLibWrapper in libQt5Test_debug.a(qxctestlogger.o)

          _OBJC_METACLASS_$_QtTestLibTest in libQt5Test_debug.a(qxctestlogger.o)

      “_OBJC_CLASS_$_XCTestDriver”, referenced from:

          objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)

      “_OBJC_CLASS_$_XCTestCase”, referenced from:

          _OBJC_CLASS_$_QtTestLibWrapper in libQt5Test_debug.a(qxctestlogger.o)

          _OBJC_CLASS_$_QtTestLibTest in libQt5Test_debug.a(qxctestlogger.o)

      “_OBJC_CLASS_$_XCTestSuite”, referenced from:

          objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)

          _OBJC_CLASS_$_QtTestLibTests in libQt5Test_debug.a(qxctestlogger.o)

      “_OBJC_METACLASS_$_XCTestSuite”, referenced from:

          _OBJC_METACLASS_$_QtTestLibTests in libQt5Test_debug.a(qxctestlogger.o)

      “_OBJC_CLASS_$_XCTestProbe”, referenced from:

          objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    #13010

    Günther
    V-Play Team

    Thanks for testing and your research!
    We will also have a look into the issue and check if everything is correct with our current Plugin libraries.

    We’ll get back to you once we know more,

    Best, Günther

    #13011

    Bas
    #13014

    Bas

    can i somehow roll back to a previous version of v-play to test if i get the same errors?

    #13030

    Bas

    i think it is in google analytics plugin, in a small test project i added ga and got same results

    without ga it worked fine

    #13034

    Günther
    V-Play Team

    Hi Bas!

    I just ran a few tests: everything seems to be ok with the plugins from our side.
    It’s also strange that the Google Analytics plugin causes the issue, as it is very easy to integrate (there are no additional libraries to add that may cause troubles).

    Do you still have errors with the MaintenanceTool after re-installing?
    Please also make sure that the plugins are re-installed too (add plugin repository to maintenance tool and check plugin components) and that xCode is up-to-date. You can also have a look in the <install-dir>/5.6/ios/lib directory if the libGoogleAnalyticsPlugin files are present.

    If everything is set up correctly it should work, one thing left to try is too make sure to get a fresh and clean build:
    – Delete the build directory (see the Qt Creator “Projects” tab for the configuration)
    – In Qt Creator, right-click the project and select “Clean”, then right-click and select “Run qmake”.
    – Delete the previously installed version of the app from the device/simulator
    – Try to build and run the project again.

    Best,
    Günther

    #13035

    Bas

    ok i created a new project with just the plugins i needed and it works fine.

    do i have to create a new license file for my application when i upgraded to latest v-play sdk?

    #13036

    Günther
    V-Play Team

    I guess you mean the licenseKey (not file)?

    It is not required to create a new license key when V-Play is updated, a new license key is only necessary if:
    – You change the app/bundle identifier
    – The app version changes (e.g. when you want to release an update with an incremented version code)
    – New plugins shall be included, that were not part of the old license key.

    Best,
    Günther

Viewing 15 posts - 1 through 15 (of 19 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support