NSFileManager Create a .app like file/folder in cocoa - objective-c

I'd like to create a folder/file (similar to how the .app files/folders work) so that I can have a directory within my file. But still show the document icon that I setup via the xcode project interface under the info panel.
No idea how to go about this, any ideas?
Solution:
So basically, you just hit an option in Xcode under the document saying that you do want it to be a bundle. Then you just create a folder with the extension you have in your document (info.plist). Thanks y'all.

I think what you are looking for are Packages.
See About Bundles and Document Packages for more details.

Related

IntelliJ IDEA - Directories appearing in Project Files but not in Project

So I created an empty project, but when I create a new directory in the Project window, it does not show up. The directory is actually created, and if I navigate to the Project Files list I can see it there, but as far as I can tell there is no way to make even my src folder part of the actual project. This creates all kinds of problems when I have to move/refactor files, and I'm amazed that something so common and simple is so difficult.
You've created a folder, not a package. If ur using maven or grade, can I suggest u use them to generate an intelij project for you. The command escapes me but a quick Google should tell you
You can manually mark your directory as a sources root:

How do find the .app file in Xcode 9.3.1

Ok,
I've spent a few hours trying to find an answer to this question and had no luck what so ever.
I am creating an appium automated test using xcode Version 9.3.1 I need to locate the .app file so I can add it to my desired capabilities and I cant find it in any folder.
Breaking it this down in the most basic fashion, how do I locate the .app file so I can add it to my ios appium automated testing?
Out of curiousity would I need to use something like homebrew to locate it?
Or can I find from a specific menu in xcode?
Xcode -> Preferences -> Locations
Press the button to open folder in Finder
Here you need to find project build folder, open it and search sub folders with Debug-iphonesimulator name, you should fine build file there.
The full path might look like:
/Users/<user>/Library/Developer/Xcode/DerivedData/<Project name>/Build/Products/Debug-iphonesimulator
By default Xcode stores the derived data for all projects in a single shared folder under your home directory at the following location:
~/Library/Developer/Xcode/DerivedData
From Xcode 6, you can access or change derived data location from Preferences -> Locations Tab
but you can setup in xcode:
File-> Project Setting
locate "Derived data:"
here is how to setup https://www.youtube.com/watch?v=MVVRsR9XenQ
Seriously thank you so much for all your help. I really appreciated it so much. You've all been a bunch of legends. I was able to solve this problem and and I want help save someone 3 days of trouble.
Finding the .**app file is a HIDDEN FILE **
Basically there are number of ways to find the .app file in this version of Xcode.
You can find the .app by using your search bar on the mac. Also, you can find the .app would be in this directory
users/(YourMacAccount)/Library/Developer/Xcode/DerivedData/UICatalog-.../Build/Products/Debug-iphonesimulator/(appname).app
to reveal the hidden files type cmd>shift>.
If you still can't find it (Which is what happened to me). Then:
Click the show in finder icon (the one shaped like a file) in xcode
This is where you can find it in xcode 9.3.1

Bundle Resource Images Into One Exe?

I'm new to resources with coding. I just want to create a standalone exe that has a couple of png images bundled inside of it.
Is there a way to do this? I have tried setting the build action of the images to embedded resource but when the program is compiled there seems to be no exe at all. I'm sure there's a simple way that this is done.
Use My.Resources. Don't add the image files to the project in the Solution Explorer yourself. Open the project properties and add the files on the Resources page. If you add Image1.png and Image2.png then you can access them in code using My.Resources.Image1 and My.Resources.Image2. You don't have to do anything extra.

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

How can one see an iOS bundle's file structure?

I'm trying to create a subfolder structure in my app following this advice:
Subdirectories within an iOS application
But I can't see (using the Organizer) a way to test whether the subfolder structure is actually achieved or not...is there a way to check, other than jailbreaking the phone and getting in through ssh?
You can open the bundle that is installed to the simulator by navigating to:
<User Name>/Library/Application Support/iOS Simulator/<Alpha-Numeric String>/<App Name>.app'
Once you navigate to the above location (it may be .ipa, can't remember exactly) you can right click and choose Show Package Contents which will show you the contents app bundle.
If the question relates to *.ipa or *.app boundles, then you can rename them to *.zip and go from there.
At the moment, with Xcode 10 and macOS 10.14.X the path for simulators would be:
/Users/<user>/Library/Developer/CoreSimulator/Devices/<XXX>/data/Containers/Bundle/Application/<YYY>
Also, if you want to check for the previous step and check the files that would be inside the *.app(bundle) in Derived Data (to check for devices) the path would be:
~/Library/Developer/Xcode/DerivedData/