Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use name with whitespace for qmake TARGET variable

iOS/OS X application names usually contains spaces (like "App Store.app"). But when i'm trying to use such name in my Qt/ios project like this:

ios: TARGET = "My Cool App"

build process failed with strange error in the autogenerated by Qt Bash script.

Am i doing something wrong, or such whitespaces in names just don't supported?

UPD the problem first time occurs in qmake-generated shell script:

#!/bin/sh
cp -r $BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME /Users/eraxillan/Projects/<PROJECT_DIR>

If $FULL_PRODUCT_NAME contains spaces, then script just fails.

Script generated and executed only in case of custom DESTDIR project variable value - my case.
So, looks like a bug in qmake-generated script to copy project build artefacts to custom output directory.

Workarounds:

  • Remove spaces from target name (My Cool App --> my-cool-app)
  • Do not use custom DESTDIR value at all

Hope this will be helpful

like image 877
eraxillan Avatar asked Dec 12 '25 03:12

eraxillan


1 Answers

This should work:

TARGET = My" "Cool" "App

like image 175
IGHOR Avatar answered Dec 13 '25 16:12

IGHOR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!