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 13, 2013 11:46 AM in response to Frank Caggiano

Mac # 1

------------

OS Ver: 10.8.2

XCode Ver: 4.5.2



Mac # 2

------------

OS Ver: 10.7.5



1. On MAC # 1: In the XCode app, I right click on PRODUCTS folder and choose SHOW IN FINDER. I then grab the APP file and drag it to a brand new folder called "TEMP" on the desktop


2. I open up Disk Utility


3. Click on FILE -> NEW -> DISK IMAGE FROM FOLDER


4. I choose the the TEMP folder


5. It successfully creates the DMG file


6. I then right click the DMG file and press the COMPRESS option which zips it up


7. I then use a file sharing service (yousendit.com, sendspace.com, etc.) to submit the file


8. MAC # 2: I get the app, decompress it. I then double click the DMG file which opens the Disk Image


9. Upon double clicking on it, it states that there are compatibility issues and that the program is not able to run. I get two options 1) Ignore 2) Report.

Jan 13, 2013 12:52 PM in response to armondfromglendale

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




TEST APP cannot be opened because of a problem

Check with the developer to make sure TEST APP works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X.

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

IGNORE REPORT...

Jan 14, 2013 3:17 PM in response to Frank Caggiano

Hi,


Had this myself when testing a C++ based game I am developing on a friends iMac.


He's running 10.7, I'm running 10.8.2


In the end I simply changed the "OS X Deployment Target" to 10.7 and all was well.


Changing the "Base SDK" doesn't make a difference.


You need to change this on the settings for the Target under "Targets" rather than "Project"


Hope this helps...

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.