Locate the app in the Finder and do a Show Package Contents. Look in the info.plist near the bottom is minimum system version required key, what does it say?
If it still shows 10.8 and you're sure you changed the deployment to 10.7 try doing a clean before building again.
Also how are you copying the app over to the other Mac?
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.
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.
You got that last message on your system or the system you sent the app to?
I'm really at a loss here, never experienced the problems you are seeing. Perhaps this has something to do with the fact you're writing in c++, I've never used Xcode to code in c++.
Hopefully someone else here will chime in with some ideas.
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...
In fact that is what I'm doing. I am testing a C++ SDL based game app. The OS X Deployment Target is set to 10.7 but I am still getting that error.
Wow I never imagined developing apps on MAC and getting them deployed to other MAC's would be such a nightmare!
If anyone else has any suggestions, I am willing to try.