How to run Objective C program in terminal of my macbook pro? - xcode

I am totally new to xcode and macbook , i have developed a small ios application for ipad air running which in emulator is showing me white blank screen so thought of running it in terminal to debug the program , can anyone help me with this
Thank you

If your project builds and runs and shows a white screen in the simulator, there is likely a logic error in your code. If you want to make a console application you would have to create an osx command line project. Google debugging in xcode. Try a beginners tutorial that you can follow along and make something appear on your screen. Sprite kit games are easy to make and give quick results and satisfaction. Take a look at this tutorial for basic sprite kit game.

Sounds like you forget to set rootview controller . Go to your storyboard and check Initailview controller is enable or disable

Related

iOS app does not display image that is in the launchscreen at start

I have a small app that I am using to find out my my main app does not show the launchscreen correctly.
The launchscreen has an image ( modified screenshot of the app) but I only see a white screen.
I would be happy to use debugger but am not able to do a step into at the start and the only code location I can find to put a breakpoint in is after the launchscreen has been processed.
Can anyone help me with a hint as to where I can get the debugger to give me control at the start of the app.
I can run it on simulator or attached real phone via Xcode 14 on Monterey 12.6.3.
p.s. I have posted a similar question on the apple developers forum and had no responses.
I have so failed to find any way to discover why the launch screen does not display correctly.

I am trying to build and launch my app with xcode 9.2 and when I build on a device it it is just a white screen

The screen is just white whenever I try and open my app on the device and the simulator. I have built and ran apps successfully before but I can't figure out why this one won't build correctly.
There's a few things that could cause this, but the first thing I would check is to make sure the initial view controller is set properly.

Adobe AIR application GUI not working on Mac OS

We have an Adobe AIR app, which was created by a 3rd party contractor, that we have been using successfully on Windows. The application runs full screen automatically and, for the most part, primarily is chrome for displaying some web pages.
On windows, it works perfectly. Only now, 9 months after development, has someone asked to try to run it on a Mac. We figured it would work since AIR is cross platform. It installs just fine (latest AIR SDK on OSX Lion). When we run the app, it launches but only shows the name of the app next to the Apple symbol in the upper left. No window or other chrome appears on the screen. I can Quit the app from the menu, but not much else.
Any thoughts as to why it's behaving this way on the Mac and not Windows? We do not have access to the original developer, and I am not a Flash/Flex person, but I do have the source and a copy of Flash Builder 4, so I could make basic tweaks. Any pointers would be very appreciated.
Have you tried to call maximize() after creation complete? I had the same problem (main window not showing up on Mac OS, everything is fine on Windows). Hope this helps.

How do I initialize IKImageView?

I am completely stumped with this one: I'm new to Xcode, coming from Windows. I create a brand new Cocoa app, place an IKImageView in Interface Builder, save and launch the app. Xcode shows the app icon bouncing forever, never launching. If I trace into it I get application crash right away.
I've downloaded examples from Apple but I cannot see how they initialize IKImageView, if that's what I'm failing to do. I've been searching for a solution for hours. Help?
The problem is that you are not including the required frameworks that are used by IKImageView. Just follow the instructions that are found in the Image Kit Programming Guide, in particular the section labeled Using the Image Kit in Xcode and you should have no problems.

Xcode screensaver with openGL

I am currently simply trying to build a simple screen saver in xcode 3.2 on osx 10.6.3 using an openGL view as described in this article: http://cocoadevcentral.com/articles/000089.php anyways even if I use the exact same code from the example all I see when testing the screen saver is a black screen. I looked in OSX Console if it tells me anything useful. the only thing I get is something like this:
[0x0-0x1e01e].com.apple.systempreferences[629] System
Preferences(629,0x7fff71071be0)
malloc: reference count underflow for
0x20057be80, break on
auto_refcount_underflow_error to
debug. System Preferences[629] invalid
context
I have no idea what is wrong, so I would be glad if someone could tell me how to use openGL together with the screensaver template in xCode 3.2. Also, is there a way to make another target so I can preview the screensaver from within xCode?
Thanks!
The example on Cocoa Dev Central works just fine. The same error comes up for me, but as far as I can tell, that is not the reason why you're getting a black screen.
I had a similar problem because I wasn't correctly reinstalling the screen saver.
Make sure you quit System Preferences before reinstalling the screen saver. If you don't, the old screen saver will still be used, even when it asks you about overwriting it.

Resources