I've tried to figure out how to add the icon of app and launch image following this guide (https://doc.qt.io/qt-5/ios-platform-notes.html#launch-images), but without any success.
I do not understand several, maybe the simplest, moments:
1) Where should the folder "ios" with Info.plist file be located? In root folder of project or in "Resource" folder? A little example or screenshot would be useful.
2) Can I change Info.plist directly in .pro-file before it will be generated by Qt? Or it is necessary to compose Info.plist manually and locate it in pre-created "ios"-folder?
3) Maybe, there is another way to set the launch image and app icon? Without touching .pro-file.
Will be glad of any help. Thank in advance.
By your questions:
This folder you may create manually and then put default Info.plist into.
Also you could edit default Info.plist in Xcode and the put them into ios folder (or other).
Follow the https://doc.qt.io/qt-5/ios-platform-notes.html#information-property-list-files you need add this code to your pro-file (instead Qt Creator will replace Info.plist):
ios {
QMAKE_INFO_PLIST = ios/Info.plist
}
Yes you can.
More of that - no best-practices-way to edit it maximally right by Qt tools. In first answer I wrote that you may edit default Info.plist in Xcode directly. (but don't forget copy it in your Qt-project)
To change app-icon of launch images no need to edit .pro file. You need to edit Info.plist generally.
You can do it in Xcode directly. But you need to do it every time after you make changes in your qt-project. I don't think that is correct way.
I answered to your several, simples questions. Hope thats helps!
Related
I need to programmatically set the Launch Images Source setting in XCode 7 for my app project to Don't use asset catalogs. As I will be using a storyboard.
Important By "programmatically" I do not mean at runtime. It is actually at build time where I have a script file which runs some code that needs to rearrange the project. I knw you might not like this, but this is the requirement/challenge here.
I searched in my project's .plist file but it seems there is no trace of that setting. Where can I find it? Which file is hosting this setting?
It's in the project.pbxproj file.
There's a ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME property that gets set to the name of the file you select.
This isn't possible. The launch images will be stored somewhere in the main bundle and those files can not be changed at run time.
I am trying to submit my app to the app store. I have looked at a half a dozen questions similar to this one yet none have helped.
Here is the error:
Things I know. The file exist and had the correct path in the Build Settings.
It also exist in Finder.
Here is what is inside of the info.plist
Any idea what I am doing wrong? I cleaned and build cleaned the project. Even restarted my computer.
EDIT
Here is what the build log looks like when I search for .plist
The file is found in the project file
EDIT 2
Here is what the build file looks like.
EDIT 3
here is a photo from inside the app
Have you tried making sure the project has added the info.plist file on the backend? Sometimes, when you create a project, some of the files decide not to be added to the project on their own.
In this image example, I haven't opened by main.storyboard file yet, so it's red (indicating it "doesn't exist"). To fix this, you press the + button and add the file from your project:
This may not show up the info.plist file, however. As you can see in the second picture, it allows me to add in the info.plist file, but my main.storyboard file is currently unavailable.
If this is so, you'll have to select the 'Add Other' button. It'll bring up a finder window and you can select the file directly.
If this doesn't work, comment the results, please.
EDIT: IT WON'T ALLOW ME TO ADD THE IMAGES BECAUSE OF MY LOW REPUTATION ON THIS ACCOUNT
I have this file structure:
But Xcode doesn't see file for :#import "VKSdk.h" , because it's in another project, what do I need to do:
Perhaps consider looking into how to work with workspaces in Xcode. It offers great features when working with multiple interconnected projects.
Check this out
https://developer.apple.com/library/ios/featuredarticles/XcodeConcepts/Concept-Workspace.html
VK guid said to add only sdk.xcodeproj file, so it didn't see all the files in this added project, but when I tried to cope these files into the project, it failed to launch.
I added $(PROJECT_DIR)/DatingService/3d\ Party/VKAPI/sdk into Header Search Paths of Build Settings and now it works.
Try to clean your project. I hope it helps
File is not present make sure you are writing right class name
Make sure file is present over there.
If you are adding file from somewhere it is recommended to tick the check box copy item into destination folder.
Fix: you need to update User Header Search Paths in Build Settings like this ../**
Look at the image: https://www.dropbox.com/s/beytwz8ev262l53/header_vksdk_fix.png
I am trying to distribute my iOS app, and I got the following error message during xCode validation.
"storyboard file 'Main_iPhone~iphone.storyboardc' was not found please ensure the specified file is included in the bundle with any required device modifiers appended to the filename". Need some advices...
Remove the storyboard from the plist file if you use iPad
<key>UIMainStoryboardFile</key>
<string>Main</string>
or if you use iPhone
<key>UIMainStoryboardFile~ipad</key>
<string>Main</string>
I solved it by going to Target -> Build Phases -> Copy bundle resources, and add the Main_iPhone.storyboard file.
You can just write the exact name of the storyboard according to apple guidelines default name is :- Main_iPhone.storyboard but i think you can change the name of the storyboard default to 'Main_iPhone~iphone.storyboardc' but they find the default name of storyboard in the bundle.
Thanks, this helped me too.
I modified the ProgramFile-Info.plist under the Supporting Files folder. I found two columns with Main storyboard file base name. I deleted the iPad one that I was getting the error on and then I was able to submit.
Using xCode 6.0.1 I got this error. None of the other solutions listed here fixed it. I resolved it by deleting the storyboard in question from the project (Removing references only -- not moving to trash), then putting it back in via Add Files.
In your Build Phases -> Copy Bundle Resources make sure your main storyboard is included. For example main.storyboard. It will show up red. Some people think that because it's red it should be deleted. But without it, you will get this error when you try to submit to iTunes.
I guess you accidentally deleted a storyboard file. In my case, I solved this like by creating a new storyboard file with a different name. Then copy paste all controllers from Main_iPhone~iphone to this and edit the plist and other places with the new file name. This will work
Editing the plist file solved it for me.
Go to Targets -> Info
To delete a field, hover over the up/down arrow icon next to the key you want to delete, and press the minus.
Or, if you need to add a field, hover over any up/down icon and press the plus.
I had a bug where it was looking for an iPad storyboard, even though I was only targeting iPhones. I simply had to delete the corresponding key/value pair from here.
I've looked for similar questions, but this must have been asked before. Either way, please point me in the right direction.
I've localized an app for the first time. It seems to work ok, but I have two sets of .lproj files. One set is in the settings bundle, and the other is in the main project directory.
It also appears that some settings are affected by one .lproj file content and other settings are affected by the other.
Should I leave "well enough" alone? Should I combine somehow? If so, where is the correct place?
If I find this has already been answered, please forgive. I will either delete this question, or point it to the existing response.
Thanks
That is really OK to have lproj's all over the project. What is more important - to keep translated files inside of Xcode file tree. You can easily localize your nibs and any other files just by selecting file you need to localize and by adding File localization in File Inspector.