put icons under Resources subfolder - objective-c

When I tried to archive one of my iOS projects, I got this warning message:
Validate MyApp.app ...in ....
Icon specified in the Info.plist not found under the top level app wrapper: Images/icon.png
I have put all images files under Resources/Images and created folder reference to Images folder in the project. What value I should give to Info.plist for icons images under a folder reference?
This is my current values:

Make sure that folder reference is setup properly. This can happen when the folder path is not specified correctly in relation to the project folder.
Just noticed, where is the itunesartwork.png file? I see it listed in your plist, but not in the folder.

Related

cordova-ios: plist file not copied from Resources to xcarchive

I'm putting a custom plist file (GoogleService-Info.plist) into my Resources directory, but it isn't getting copied into my built project. I can go into XCode and manually add it through "Copy Bundle Resources", but I need to get this running without manual steps.
I can't just use <resource-file src="src/GoogleService-Info.plist" /> in my plugin.xml because I'm building for a couple different widgetIds - I have 2 versions of this file that I switch out, depending on my widgetId. I have the copying and renaming automated with a hook to get the right file into Resources/GoogleService-Info.plist.
How can I get the file I put into Resources included?
The cordova-ios project has code to get the resource files included in the XCode project files, and you could replicate that, but I ended up with a workaround:
Copied my file to a consistent name in a before_prepare hook
Used a resource-file tag for the new name in my plugin.xml

Xcode creates a duplicate of my project's root folder with build info, how to disable that

I'm quite new in iOS development and I'm observing that next to the root folder of my project (let's say its name is 'Foo') another folder is created with a cryptic name (like 'Foo-gobovuchatrabdsdfg...'). In it some information about builds and simulator debugging is stored.
How can stop Xcode creating that folders or if not possible, how can I specify a different path for that folder?
The folder with a cryptic name is your derived data folder, which contains the files Xcode creates when it builds your project. If you don't want the derived data folder inside your project folder, change the derived date folder location to the default location. Refer to the following question to learn how to change the derived data location:
Xcode DerivedData folder

Specify paths for Icons

OK, so here's my situation :
My app graphics are not copied into the Bundle's resources folder, but into a subfolder (e.g. Resources/Graphics)
I need to properly set the icons - either for the app icon, or the document types associated with the app - in the info.plist
However, here's the issue :
If I set CFBundleIconFile = "myicon"; and myicon.icns is in the Resources bundle folder, it works fine.
If myicon.icns is in the Graphics subfolder, then - even if I set a path like CFBundleIconFile = "Graphics/myicon"; or CFBundleIconFile = "Graphics/myicon.icns"; - it doesn't seem to pick it up.
So, any ideas how this can be fixed? (obviously without telling me to copy the .icns in the Resources folder).
Subfolder doesn't matter in this case, so you dont need to set the full path, only file name, without extension.
CFBundleIconFile = "myicon";
this line will be enough for the app to load the correct file from the bundle.
You aren't allowed to have several icon files with same name in one project/bundle.
You aren't required to copy the files into Resources folder, only thing is that the file must be added to the project.

File not found error in xcode

I have imported the folder containing SUPQueueConnection.h to the project and to the project root too. Still it is showing the same error SUPQueueConnection.h file not found.
And we imported all such needed .h and .m files to the project root.
Is there any other way for doing it?
Can anyone please help me in solving this problem?
In project navigation bar of your project check the folder you imported that it actually contains SUPQueueConnection.h file or not and if it is there try to import header file in the class in which you are using "SUPQueueConnection.h" file.Also if project is showing SUPQueueConnection.h file then right click on this file and click "Show IN Finder" option to see where actually the file is.Make sure it is copied in project folder.
If it does not solve the problem try deleting this file and drag and drop SUPQueueConnection.h again in project directly and make sure while copying on target your project is check marked.
Have you made sure that the files that aren't found are actually in your Xcode project? Make sure you can see the files somewhere in the sidebar. I've never actually tried it, but I don't think you can simply access files in the project directory root, they must be in your project. Xcode has changed since I used it last (been doing other things) but I think you can still add files by right clicking somewhere in your sidebar, also unless its changed you can add external files using a button in the file menu

Property list not copied into document directory

I have manually created a property list (Config.plist) using Xcode 4.3 and saved it in "Supporting Files/Config.plist".
However, when building the project and running the app in the simulator, the property list is not copied in the document directory (as supposed) nor any other directory in the simulator.
Any help would be highly appreciated.
Thank you!
It will go to NSBundle mainBundle by default. You will require to copy that file to document directory. Check my code for copy file to document directory over here:
Plist