Application is not working on 10.6 - macos

I'm currently working on a port of my Windows game for Mac OS X, it runs fine on my Mac when compiled with Xcode 4.5.2 on OS X 10.8, but it crashes on a friends Mac running 10.6. At first I thought it was due to one of the Frameworks I've been using, but the standard Cocoa app template crashes at well, without any visible error message.
I already tried setting the Deployment Target to 10.5, but this doesn't change anything. When starting the App, it appears for a short time in the Dock and then disappears without showing any kind of UI or error message.

Related

OS X app works in 10.10 and not 10.9.5

I have developed an OS X app using Xcode 6 on OS X 10.10.4. The app runs great in 10.10.4. When I copy and attempt to run in OS X 10.9.5, the app icon appears in the dock but the main window does not show. In addition, only the first menu item is displayed. Activity Monitor shows it running but idle at 0% CPU. There is nothing on the system log and no output written from my app. The app does not crash but sits idle in the dock.
The app settings use OS X 10.8 as the minimum target.
I have not installed Xcode and tried to rebuild as the project file is for Xcode 6, and I would have to downgrade to Xcode 5.x on OS X 10.9.5.
Thoughts on how to solve this? Is there a tool to diagnose this?

Could not connect the action buttonPressed: to target of class NSApplication when attempting to debug Mac OS X app on 10.7

I'm attempting to target 10.7 with my Mac OS X app, but when I try running it on a 10.7 machine no window opens and I get "Could not connect the action buttonPressed: to target of class NSApplication" logged to the console.
When I try to build the app locally to debug, I get "-fobc-arc is not supported on platforms using the legacy runtime". It looks like I need Xcode 5+ which isn't supported on 10.7 so I'm at a loss for how to continue debugging this issue.
I found an answer from another question. 10.7 doesn't support storyboards.
https://stackoverflow.com/a/30954258/873546

Xcode 6.3.2 build for OS X 10.7

Hope you can help me with a strange problem, no clue what I am doing wrong.
On Xcode 6.3.2 I want to build an app able to run on OS X 10.7.
So I started with a new Cocoa Application (Obj-C), naming it "Test". I set the Deployment Target to 10.7. Leaving the application empty I can build and run it on my main machine (OS X 10.10.3). Running wt will show an empty window ok.
Now I archive it and in the Organizer export it as a Mac application. Again all works fine, no errors. Now if I run it on the target machine (running 10.7.5) it will start, but no window will show up. Also the menu of the app will only show its name, all other menu items are missing.
What am I doing wrong?
You probably created the project to use a storyboard, which is not supported by OS X 10.7. You need to use a MainMenu NIB. You also need to make sure you don't use any features that were introduced after 10.7.
Also, when an app fails like this, you should check the console log to see if it logged any errors. You can view that using /Applications/Utilities/Console.app.

Mac console log entries are not showing up in 10.8

I have an app writes to the console log. This feature works on 10.5, 10.6, 10.7 and has stopped working in 10.8
Anyone else has noticed this? If so, what has changed and how to overcome it.

Why does the main window of an X11 application sometimes not appear in OS X

I have created Perl/Tk application for OS X compiled using ActiveState PDK PerlApp 8.2.1. The application requires X11 to work properly on OS X, and everything works fine on my own computer (OS X 10.4.11) and others report it working well on OS X 10.5 and 10.6.
But, I have also received several reports from users, for example on 10.4.11 and 10.6.7, that after starting the application, the program seems to run but no main window appears.I have created Perl/Tk application for OS X compiled using ActiveState PDK PerlApp 8.2.1. The application requires X11 to work properly on OS X, and everything works fine on my own computer (OS X 10.4.11) and others report it working well on OS X 10.5 and 10.6.
But, I have also received several reports from users, for example on 10.4.11 and 10.6.7, that after starting the application, the program seems to run but no main window appears.
(Just to clarify the meaning of "seems to run", users can launch X11 (so it's installed!). Also, after launching my application, a new X11 menu bar appears and they can click "About..." and can see the "About..." window for my application.)
I cannot replicate the bug here and the users say that no errors appear on the Terminal command line when they launch the application.
Has anybody experienced a similar problem and know a way to fix it? It seems to be an issue with X11, but I am happy to change my own code to avoid this issue.
I guess the first thing to check is that they are launching from the X11 terminal, rather than the normal one. (and that they have X11 installed).
PerlTK might be hiding the errors in that case?

Resources