Thanks to Jeff, I now have the 10.7 SDK selected instead of 10.9. The problem is that my app still compiles and runs on 10.9, and still fails to open on 10.7! Here's the only warning I see under my .xcodeproj file in the issue navigator:
OS X Deployment Target '10.9' is newer than SDK 'Mac OS X 10.7' in target Key TrapperTests
I'm not using tests at all, so this shouldn't matter, right? The only other warning is that internationalization is not supported for my .xib which, again, shouldn't make any difference. How could an app fail to run under Lion, but compile with only two warnings and no errors using the Lion SDK? Who knew supporting past OS versions would be so difficult! On May 29, 2014, at 11:44 PM, Jeff Schriebman < email@hidden> wrote: Find a 10.7 SDK and put it in the Xcode bundle under Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
You will then be able to build against the 10.7 SDK.
Send me a private email if you need the SDK. On May 29, 2014, at 8:16 PM, Alex Hall < email@hidden> wrote: 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
Jeff An educated mind can entertain a thought without accepting it - Aristotle
--
Have a great day, Alex Hall
|