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

Using QMAKE_ASSET_CATALOGS in .pro (qmake) fails with "Unknown platform: "ios-simulator""

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.4.0 RC1, 6.5.0 Beta1
    • 5.15.2, 6.2.4
    • Build tools: qmake
    • None
    • macOS 12.3, Apple Silicon
      XCode 13.3

    • iOS/tvOS/watchOS, macOS
    • e38956e4f7 (qt/qtbase/dev) e38956e4f7 (qt/tqtc-qtbase/dev) cfdf9a19bf (qt/qtbase/6.4) cfdf9a19bf (qt/tqtc-qtbase/6.4) 101b2f055f (qt/qtbase/6.3) 101b2f055f (qt/tqtc-qtbase/6.3)

    Description

      I have the following section in application .pro file:

       

      ios {
        QMAKE_TARGET_BUNDLE_PREFIX = $${APP_ORGANIZATION_DOMAIN}  
        QMAKE_INFO_PLIST = ios/Info.plist
        QMAKE_ASSET_CATALOGS += $$PWD/ios/AppIcons/Assets.xcassets
        DISTFILES += ios/Info.plist
      }
      

      Running qmake in QtCreator 7.0 fails with the following output:

       

      /Applications/Xcode.app/Contents/Developer/usr/bin/actool --app-icon AppIcon --output-partial-info-plist /Users/matejk/git/****/build-****-Qt_5_15_2_for_iOS-Debug/asset_catalog_compiler.Info.plist --platform ios-simulator --minimum-deployment-target 12.0 --compile /Users/matejk/git/****/build-****-Qt_5_15_2_for_iOS-Debug/****.app /Users/matejk/git/****/400096_****/ios/AppIcons/Assets.xcassets
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      	<key>com.apple.actool.errors</key>
      	<array>
      		<dict>
      			<key>description</key>
      			<string>Unknown platform: "ios-simulator".</string>
      		</dict>
      	</array>
      </dict>
      </plist>
      

       If I change value of "simulator.deployment_identifier" from "ios-simulator" to "iphonesimulator" in the files listed below, qmake passes and build succeeds.

      • 5.15.2/clang_64/mkspecs/common/ios.conf
      • 5.15.2/ios/mkspecs/common/ios.conf
      • 6.2.4/ios/mkspecs/common/ios.conf
      • 6.2.4/macos/mkspecs/common/ios.conf

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              matejk Matej Kenda
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes