Thanks for the suggestions, everyone.
I had a look in Console, and my app is closing because it "cannot load file Main Menu". So, something's not supported in my XIB, apparently. I stumbled across a thread online that said you can't make weak references to several things, NSView among them, so I changed my NSView property to assign, but that didn't help.
The app is very simple, and relies on only basic classes. I use NSSpeechSynthesizer, a couple NSViews (one of which is a custom subclass), and some basic data types (NSEvent for intercepting keystrokes is the most complex one). So, everything should be supported, probably back to 10.3 - the problem almost has to be syntactical. I'm not importing any libraries that might have different build targets, at least not that I can think of. I'm pretty new to this, though, so there may be something there that I'm missing.
I'm on Xcode 5.1.1, and I don't have an old copy of the 10.7 SDK anywhere (as I said, I'm new to all this). I'll have a look and see if I can find one to install. Hopefully I can find one, and the error will become apparent once I build against that. If I can get this to work it may mean a contract job, so I really, really want to figure it out. :D On May 29, 2014, at 10:45 PM, Roland King < email@hidden> wrote: I had this problem a few weeks ago, an app built for 10.9 didn't run on 10.7 (not surprisingly).
For a start try using the 'open' command to run the app from the command line, you might then get some error messages (or go look in the console to see if there were any).
Secondly - I put my deployment target back to 10.7 and it still didn't work .. because I was linking in one file from a library which was built for 10.9. Are you sure that everything is being compiled for a 10.7 deployment target?
Finally are you sure there's nothing in the app which actually needs anything after 10.7?
On 30 May, 2014, at 10:21 am, Alex Hall <email@hidden> wrote:
Hello all, For the first time, I am trying to help someone else develop an app. There is no code sharing, but he is in charge of the project and so needs to run the .app file generated by my code. I have Mavericks, and his MBP is still on Lion. I didn't think this would be a problem, but to be safe, I set my deployment target to 10.7.My SDK is still 10.9, but I can only go back to 10.8 in my build settings, so I left that setting alone.
When I emailed him the .app file, it auto-zipped itself. He put that zipped file on a thumb drive on his Windows machine, then copied it from the thumb drive onto the Mac desktop. He unzipped it, double clicked the .app fileā¦ and nothing at all happened. No errors, no blank windows, it simply didn't open at all. I have an old Mini here that still has Lion, so I put the file on a thumb drive and tried to run it: same thing. Lion seems to not like this app at all, and I'm not sure why. After doing more googling, I suspect it is that SDK setting, but Xcode offers me no way to build for the 10.7 SDK, only 10.8 or 10.9
Is there a way to do this? Weak linking seems to be frowned on by users, but I have no idea what else to try. I've never distributed an app before except to a couple of my own machines, all running Mavericks like my main Mac is. Any suggestions would be greatly appreciated.
--
Have a great day, Alex Hall
|