Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132830

Building for 'iOS-simulator', but linking in object file built for 'iOS'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.13, 6.8.1
    • Build System: CMake
    • None
    • MacOS Sonoma Version 14.7.1 (23H222)
      Qt Creator on screenshot
    • iOS/tvOS/watchOS

    Description

      When trying to build for iOS Simulator this project https://github.com/FalsinSoft/QSQLite3MultipleCiphers have this kind of error:

      Ld /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/Binary/libQSQLite3MultipleCiphers.dylib normal arm64 (in target 'QSQLite3MultipleCiphers' from project 'QSQLite3MultipleCiphers')    cd /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios16-simulator -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk -O0 -L/Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/EagerLinkingTBDs/Debug-iphonesimulator -L/Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/sqldrivers/Debug -F/Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/EagerLinkingTBDs/Debug-iphonesimulator -F/Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/sqldrivers/Debug -iframework /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib -filelist /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/QSQLite3MultipleCiphers.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/QSQLite3MultipleCiphers_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_warn_duplicate_libraries -Wl,-headerpad_max_install_names /Users/alexandr/Tools/QtCommercial/6.8.1/ios/plugins/sqldrivers/objects-Debug/QSQLiteDriverPlugin_init/QSQLiteDriverPlugin_init.cpp.o /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib/QtCore.framework/QtCore_debug -framework Security /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/SQLite3MultipleCiphers/Debug-iphonesimulator/libsqlite3mc_static.a /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib/QtSql.framework/QtSql_debug /Users/alexandr/Tools/QtCommercial/6.8.1/ios/plugins/sqldrivers/libqsqlite_debug.a /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib/QtSql.framework/QtSql_debug /Users/alexandr/Tools/QtCommercial/6.8.1/ios/plugins/sqldrivers/libqsqlite_debug.a /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib/QtCore.framework/QtCore_debug -lz -framework IOKit -framework CoreFoundation -framework Foundation -framework UniformTypeIdentifiers -lm /Users/alexandr/Tools/QtCommercial/6.8.1/ios/lib/libQt6BundledPcre2_debug.a -framework MobileCoreServices -framework UIKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/lib/libz.tbd -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/libQSQLite3MultipleCiphers.dylib-Simulated.xcent -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __ents_der -Xlinker /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/libQSQLite3MultipleCiphers.dylib-Simulated.xcent.der -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/QSQLite3MultipleCiphers_dependency_info.dat -o /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/Binary/libQSQLite3MultipleCiphers.dylibld: building for 'iOS-simulator', but linking in object file (/Users/alexandr/Tools/QtCommercial/6.8.1/ios/plugins/sqldrivers/objects-Debug/QSQLiteDriverPlugin_init/QSQLiteDriverPlugin_init.cpp.o) built for 'iOS'clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sqlite3mc_static_autogen' from project 'QSQLite3MultipleCiphers')note: Run script build phase 'Generate SQLite3MultipleCiphers/CMakeFiles/sqlite3mc_static_autogen' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'sqlite3mc_static_autogen' from project 'QSQLite3MultipleCiphers')warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'ZERO_CHECK' from project 'QSQLite3MultipleCiphers')note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'QSQLite3MultipleCiphers')warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'ALL_BUILD' from project 'QSQLite3MultipleCiphers')note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'QSQLite3MultipleCiphers')warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sqlite3mc_static' from project 'QSQLite3MultipleCiphers')** BUILD FAILED **
      
      The following build commands failed:	Ld /Users/alexandr/Tools/QSQLite3MultipleCiphers/QSQLite3MultipleCiphers/build/Qt_6_8_1_for_iOS_Simulator/build/QSQLite3MultipleCiphers.build/Debug-iphonesimulator/Objects-normal/arm64/Binary/libQSQLite3MultipleCiphers.dylib normal arm64 (in target 'QSQLite3MultipleCiphers' from project 'QSQLite3MultipleCiphers')(1 failure)23:26:23: The process "/Users/alexandr/Tools/QtCommercial/Tools/CMake/CMake.app/Contents/bin/cmake" exited with code 65.23:26:23: Error while building/deploying project QSQLite3MultipleCiphers (kit: Qt 6.8.1 for iOS Simulator)23:26:23: When executing step "Build"23:26:23: Elapsed time: 00:14.
       

       For MacOS and iOS - all is Ok

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              bogong Alexandr KIRILOV
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes