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

iOS: projects tries to link agains cocoa and fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.7.0 Beta
    • 5.7.0 Beta
    • Build tools: qmake
    • None
    • iOS/tvOS/watchOS
    • 50e257de2642fc980d4e82fb99d455ca784f11bd

    Description

      Testing package: qt-enterprise-mac-x64-android-ios-5.7.0-beta_310.dmg

      When trying to build any application for iOS (including a new project from creator), it will try to link against cocoa and fail. Build output:

      16:38:43: Running steps for project test_package_widgets...
      16:38:43: Starting: "/Users/richard/Qt5.7.0-beta-310/5.7/ios/bin/qmake" /Users/richard/dev/projects/test_package_widgets/test_package_widgets.pro -r -spec macx-ios-clang CONFIG+=iphonesimulator CONFIG+=qml_debug
      Info: creating stash file /Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/.qmake.stash
      16:38:45: The process "/Users/richard/Qt5.7.0-beta-310/5.7/ios/bin/qmake" exited normally.
      16:38:45: Starting: "/usr/bin/make" 
      xcodebuild build -scheme test_package_widgets  -sdk iphonesimulator  -configuration Debug  -destination "id=AF4E27B6-BAA1-4363-8D5B-7685CDF1C264" -destination-timeout 1
      Build settings from command line:
          SDKROOT = iphonesimulator9.3
      ...
      ...
      Ld Debug-iphonesimulator/test_package_widgets.app/test_package_widgets normal x86_64
          cd /Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug
          export IPHONEOS_DEPLOYMENT_TARGET=6.0
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/Debug-iphonesimulator -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/lib -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/plugins/imageformats -F/Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/Debug-iphonesimulator -filelist /Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/test_package_widgets.build/Debug-iphonesimulator/test_package_widgets.build/Objects-normal/x86_64/test_package_widgets.LinkFileList -mios-simulator-version-min=6.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -headerpad_max_install_names -stdlib=libc++ -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/richard/Qt5.7.0-beta-310/5.7/ios/plugins/imageformats -lz -lm -lqios_iphonesimulator_debug -framework Foundation -framework QuartzCore -framework AudioToolbox -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5Widgets_iphonesimulator_debug -lqdds_iphonesimulator_debug -lqicns_iphonesimulator_debug -lqico_iphonesimulator_debug -lqmacjp2_iphonesimulator_debug -framework Cocoa -framework Carbon -framework IOKit -framework ImageIO -lQt5PlatformSupport_iphonesimulator_debug -lQt5DBus_iphonesimulator_debug -lqtfreetype_iphonesimulator_debug -lqtga_iphonesimulator_debug -lqtiff_iphonesimulator_debug -lqwbmp_iphonesimulator_debug -lqwebp_iphonesimulator_debug -lQt5Gui_iphonesimulator_debug -lqtharfbuzzng_iphonesimulator_debug -lQt5Core_iphonesimulator_debug -lqtpcre_iphonesimulator_debug -Xlinker -dependency_info -Xlinker /Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/test_package_widgets.build/Debug-iphonesimulator/test_package_widgets.build/Objects-normal/x86_64/test_package_widgets_dependency_info.dat -o /Users/richard/dev/projects/build-test_package_widgets-iphonesimulator_clang_Qt_5_7_0_for_iOS-Debug/Debug-iphonesimulator/test_package_widgets.app/test_package_widgets
      ld: framework not found Cocoa
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
      ** BUILD FAILED **
      
      

      Attachments

        Activity

          People

            vestbo Tor Arne Vestbø
            richard Richard Moe Gustavsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: