Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problem moving xcode cocoa c++ app to other mac's

Hi everyone,


My apologies if I am posting this in the wrong forum/section.


I am developing a C++ Cocoa app using the latest version of XCode on my MACOS which is running Mountain Lion. It is a fairly simple C++ app but upon copying the executable to another machine, it states that it will not run due to the version of MACOS being different. Apparently my wife has 10.7.5 and I have version > 10.8 so I'm confused how I can make my simple C++ app written in Cocoa work on other macs. Any advice would be greatly appreciated.


Thank you

Posted on Jan 11, 2013 5:32 PM

Reply
27 replies

Jan 17, 2013 6:36 PM in response to Dave29483

So I tried to execute it (open test.app) from the terminal hoping it would return some kind of error message but the terminal window didn't display anything. Instead I got the window pop-up stating that it is an incompatible version and won't run. I only get two options at this point. It is IGNORE and REPORT.


As for the oTool -L command, I tried to run that but it seems I don't have it. I am running Mountain Lion.


Anyone have any advice?

Jan 17, 2013 7:04 PM in response to armondfromglendale

armondfromglendale wrote:


I just tried again with now the minimum version having a value of 10.7 and got the following:


Click Report to see more detailed information and send a report to Apple.

IGNORE REPORT...

Just noticed this. Did you ever click Report and if so what did it say? Also is anything being logged ? Look in the Console app.


At this point I would recommend you start with a very simple test case. Create a small C++ binary without the libraries and try moving that. If it works try in bring in the libraries one at a time to see what happens.


It is sounding move like it is a library problem. How are you linking the libraries?


Message was edited by: Frank Caggiano - otool should be in /usr/bin btw

Jan 18, 2013 3:17 PM in response to armondfromglendale

armondfromglendale wrote:


Wow I never imagined developing apps on MAC and getting them deployed to other MAC's would be such a nightmare!

It isn't. I advise against spouting off such proclamations until you are positive a problem affects more than just you out of thousands of other developers.


I suggest you try Dave29483's suggestion again and this time PaY atTentIon to cAse.

Jan 22, 2013 6:44 AM in response to armondfromglendale

For the sake of sanity I put together a quick SDL app on my OSX 10.8 machine, compiled it then sent over to my OSX 10.7 machine.


I get the same Ignore / Report dialog as you. However, if I launch it via the terminal, it tells me it can't find SDL.framework.


So I downloaded the SDL runtime from here http://www.libsdl.org/download-1.2.php (Intel 10.5+) and copied SDL.framework from within the .dmg to /Library/Frameworks.


Relaunch my SDL app and voila!


So as I suspected, it is indeed a missing library.


Hope this helps.

Jan 22, 2013 2:39 PM in response to armondfromglendale

armondfromglendale wrote:


etresoft,


I never said everyone is having this issue. It is only me and I am getting frustrated. I am spout anything I want and you can't say otherwise. If you are not willing to provide assistance (which is why these forums exist), I would highly recommend you close your account.

I enjoy helping people who don't come in with a chip on their shoulder and leave out crucial details like 3rd party libraries. Had you mentioned that, your problem could have been resolved in 5 minutes instead of 11 days.


There is a more elegant solution than just copying the missing libraries onto the target machine. I was even going to tell you what it was earlier today but then I got busy with other things. I'm definitely not going to do that now.

Problem moving xcode cocoa c++ app to other mac's

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.