Solved My first QML app's problem on macOS High Sierra
-
Copy and paste that file to your source files
Do you mean the project's original directory, where the .pro file exists, by "source files", please?
-
@tomy It doesn't really matter where exactly you paste the file. But if you place it besides the pro file (same folder) you can simply write
QMAKE_INFO_PLIST =Info.plist
without specifying an absolute or relative path on your own. -
@J.Hilk said in
After these, I used the "build and then run the current scheme" button on Xcode to install the app on my iPhone. Xcode firstly responded by a message to me that I need to trust the developer (myself) on the iPhone => I did this and re-ran that button (on Xcode). This time it says:
-
@tomy never had this one oO
but check this thread
https://stackoverflow.com/questions/45421179/xcode-9-error-iphone-has-denied-the-launch-requesthas a couple of different solutions offered
-
@J.Hilk said in
I unchecked "product->scheme->edit scheme->info->debug executable" checkbox and Xcode installed the app on the iPhone.
Is it a correct choice, according to your experience, please?
One other problem is, when installing this app on Android its icon is shown on the device, but on my iPhone the icon is not shown:
-
@tomy that is because for android, you define the icon inside the AndroidManifest.xml in iOS you define the icon via th info.plist
for example:
<key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>AppIcon20x20</string> <string>AppIcon29x29</string> <string>AppIcon40x40</string> <string>AppIcon60x60</string> </array> <key>CFBundleIconName</key> <string>AppIcon</string> </dict> </dict>
how ever Xcode has a nice drag and drop handling for the icons,
-
@J.Hilk Hi, thank you.
I put two .png files for LaunchImage (1792 X 828) and AppIcon (size: 120X120), as shown below:
When installing the app was finished by hitting the play button on Xcode, the AppIcon is set nicely on the app on my iPhone 5s, but the LaunchImage doesn't appear when running the app!
Where have I made a mistake as the reason for this please?
-
@tomy mmh
I'm unsure.
Personal I use a LaunchScreen.storyboard for that
Here an example from stack overflow on how to create that:
https://stackoverflow.com/questions/37951817/launch-screen-storyboard-with-centered-image-ios/2 -
@J.Hilk
Thank you. I will follow that, but why didn't you write that there? ;) -
I used the page with screenshots and although height and width weren't automatically adjusted using the menu (when setting the values), but manually, the launch screen was properly centralized. I also suspect there will be a way to set a "launch screen" for Android too, but what I found was all of "splash screen" in lieu of "launch screen"on Android apps.
One strange thing throughout this succeeded iOS launch screen applying process was that I always get the error "xcodefaild" when I build the app using the iOS kit on Qt Creator. I'm not certain whether or not it takes place for other develpers and it's common for that stage.