Mac OS X exported .app won't run - macos

I am adding functionality to an existing OS X application. I can run the app within Xcode (6.1) just fine. However, when I archive the application, then click "Export...", then select "Export as a Mac Application" (I don't have an account to sign with), then try to run the resulting .app file, I get a problem report saying my app can't be opened because of a problem:
"Check with the developer to make sure MyApp works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X."
The base SDK of my project is 10.10. The OS X deployment target is also 10.10. My machine is running OS X 10.10. Anyone know what could be going wrong? Is my exporting procedure wrong? Any incite is much appreciated.

Related

How is OS X Deployment Target presented to the end user?

The build setting OS X Deployment Target in Mac OS X specify which minimum OS X version that is required to run the application.
From the docs:
This identifies the earliest OS version on which your software can run. By default, Xcode sets this to the version of the OS corresponding to the base SDK version and later.
If the end user tries to install and run the application on a lower version of Mac OS X than the Deployment Target, how is this presented to the end user?
Basically I want to know if the deployment target can be used to prevent users with out of date from using the application in a user friendly way, so they don't just get an "ERROR: CAN'T START" in their face.
The deployment target isn't presented to the end user, but there is an Info.plist key LSMinimumSystemVersion that tells users when their OS is too old.
On the latest versions of macOS, the user will see two things when his version of macOS is too old for a specific app:
The app icon has a cross overlay.
When the user starts the app, a message will be presented explaining that a newer version of OS X/macOS is needed to run the app.
Found out the hard way that OS X Deployment Target is not preventing the user from starting the application at all, even though they have a too old version of OS X.

My Xcode app won't launch on other Macs

My OS X application that I've created on Xcode won't launch on other Macs. It works perfectly fine and the way it should on my MacBook, where I created it, but on other MacBooks it just bounces on a dock for less than a second and disappears and it won't launch. I built my app on Product - > Archive
How can I make my app to launch on other Macs also? The minimum requirements are 10.7 and when I try my app on 10.6 it says it requires 10.7 or newer, but when I try it on other macs that do run 10.7 or 10.9 it won't launch. What to do?
When you create a Mac application project in Xcode, Xcode sets the deployment target to the version of OS X you're running. The deployment target is the earliest version of OS X that can run the application. When you created your project in Snow Leopard, the deployment target was set to 10.6, which means the application will run on 10.6 and later. When you created your project in Xcode 5.1, the deployment target was set to 10.9, which means the application won't run on earlier versions of OS X. That's why your project runs when you create it in Snow Leopard but not on Xcode 5.1 on Mavericks.
To support earlier versions of OS X, the first thing you must do is set the deployment target to the earliest version of OS X you want to support. If you set the deployment target to 10.7, the project will run on 10.7 and later, assuming you don't use any technologies or function calls introduced in later versions of OS X. For example, if you create a SpriteKit project, it won't run on anything before 10.9 because Apple introduced SpriteKit in 10.9. Xcode will not tell you when you use function calls introduced in later versions of OS X. You are responsible for making sure your code uses only functions available in 10.7.
You should also check the deployment target for your xib files.
To support 10.7, you must turn off base internationalization for your project. Base internationalization works only on 10.8 and later. To support 10.6, you must turn off auto layout for your xib files.
You can access your project settings by selecting the project from the project navigator on the left side of the project window. You can access xib file information by selecting the xib file from the project navigator and opening the file inspector. You can find more detailed information in the following article:
Supporting Earlier Versions of OS X and iOS

OSX Location Services cannot be enabled on Mountain Lion/Mavericks

I had this problem since OS X Mountain Lion, and it remains after installing OS X Mavericks. When trying to use any App that requires my location, I am asked to enable Location Services. When I try to do so in System Preferences, I check the option and it immediately unchecks itself. (Note: I do have Wi-fi on).
The console reports the following, every time I try to check the option.
25/12/13 12:48:21.478 PM com.apple.preference.security.remoteservice[1595]: CoreLocation: CLInternalSetLocationServicesEnabled failed
Some users have attributed this problem to a faulty installation of iOS simulators via XCode. I have deleted XCode prior to the OS X Mavericks installation and it still does not work.
Does anyone have a clue of why this seems to happen?

Mac application with snow leopard canot run in leopard os

I am working in a mac application with snowleopard.This application is created with leopard os,but this not support in lion due to some external application.So we converted this to snow leopard and work fine .Now the client need to convert this application to leopard version ,for that i am using the xcode 4.2 and lion os and convert the bsec SDK to Mac osx 10.5 and Architecture to 32_bit intel ,but we getting an error "The run destination My Mac 64-bit is not valid for Running the scheme 'AppName'."
How can avoid this error ?
I want to test this application with 10.5 os, but we have only the 10.6 & 10.7 osx,
1)where we get the leopard osx ?
2)Has the Apple issue leopard osx now?
3)Is any problem for instal the leopard os to new MAC system(iMac,Macmini,Macbook)?
I had the same problem a while back, but I'm recalling the solution from memory, as my company dropped 10.5 support meanwhile. The details might be a little bit off, but it should get you going in the right direction:
Grab the latest version of Xcode 3 from the Apple Website
Install it on a Mac. (Make sure you removed the Developer directory if this Mac had another version of Xcode already installed).
Under /Developer, locate the 10.5.sdk directory. Move this directory to a save place (outside of /Developer).
Install Xcode 4.2.
Look where Xcode 4.2 installed its sdk's. Put your previously saved 10.5.sdk directory next to it.
Restart Xcode. There should be 10.5 SDK option in the SDK drop down menu now.

Compatability issues with Mac OS X 10.6 application

I tried to test the USBPrivateDataSample application downloaded from developer.apple.com. I tried to run the application but it is showing error like, "error: There is no SDK with the name or path '/Developer/SDKs/MacOSX10.4u.sdk".
I am using mac osx 10.6. And target the application to 10.6. But still I am getting the same error, I don't know where I need to change the target OSX, I have already changed the targets of MACOSX_DEPLOYMENT_TARGET = 10.6. Still I am getting the same error,
Can you guys please help me on this?
Thanks in advance,
Chandra.
Change the Base SDK to the 10.6 SDK.
If you are using xcode 3.x with mac os x 10.6 then double click on target in project navigator. There will be open build setting change base sdk to 10.5

Resources