Build on El Capitan; test on Mountain Lion - xcode

A user is reporting a bug when running our Mac application on Mac OS X 8 (Mountain Lion). I can reproduce this with the shipping version. I'm trying to build a version for testing a fix, but I seem to be unable to run the debug version on Mountain Lion. The app is killed immediately and I see the following in the Console:
"killed [app ID] because its use of the com.apple.developer.aps-environment entitlement is not allowed"
In the Capabilities tab in Xcode we do not have Push Notifications on. If I look at the App ID in the portal, it has Push Notifications as "Configurable" but we don't have them enabled. Nevertheless, I have changed it to disabled.
After regenerating the provisioning profile, I still have the above error about the "com.apple.developer.aps-environment entitlement is not allowed".
This same build works fine when tested on Mac OS X 10.9, 10.10 and 10.11. I just can't run it on 10.8.
Anyone know what might be going on and how to fix this?

Related

Test OSX App on Yosemite from ElCapitan

I have developed an OSX for 10.10 and above. This app works with a device in which whenever I connect device and perform some operation, the data on device gets updated on the server. This works fine on El Capitan but one of our client has mentioned an issue on Yosemite, but I've update my Mac from OS X Yosemite 10.10.4 to OS X El Capitan 10.11.1 recently. I've heard that Xcode scheme can be used to define targets for build, but I'm not much aware of using schemes. Is there anyway to simulate Yosemite on El Capitan for testing? Is there anyway to do this through Xcode?
You can choose the Deployment Target in the project settings:
However, it's not 100% reliable even if 10.10 SDK was used to compile on 10.11.
Some XIB files produced on 10.11 in Xcode were sometimes not compatible with 10.10 and not detectable when testing on 10.11, but will crash on 10.10.
e.g. When I use 10.9 SDK to compile a project on 10.10 result in crashes when the NIB files get loaded on 10.9. Some other 10.10 users reported crashes running 10.11 compiled binaries for unknown reason...etc.
To be sure it's 100% working, you should consider setup virtual machines of older versions of OS X.

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?

Cannot Upgrade Xcode App Crashes After IOS 7.0.3 Upgrade

I am in a world of pain so confused.
I have updated my ipad and iphone to ios7.
I have been developing with titanium mobile and when i open my project in xcode and trying to run on the device i now get this error.
No provisioned iOS devices are available with a compatible iOS
version. Connect an iOS device with a recent enough version of iOS to
run your application or choose an iOS simulator as the destination.
So after googling around i notice i am running xcode Version 4.6.3 (4H1503). So i thought i might need to be update.
So i went to the mac store found xcode and then clicked update, and i know get this error.
Xcode can’t be installed on “Macintosh HD” because Mac OS X version 10.8.4 or later is required.
So i done some more googling and now i am here all the links i find take me back to the app store where i get the above error.
Can someone please help, after updating to io7 version 7.0.3. My app now crashes so i need to debug on the device to find out why this is happen
Help
UPDATE
my mac is running Software Mac OS X Lion 10.7.5 (11G63) and when i click check for updates i get this alert.
Software Update doesn’t have any new software for your computer at this time.
You need to upgrade your mac to the OS X Mavericks. Click the Apple icon on the top left and select "App Store...". Search for "Mavericks". Click "Free upgrade" (yes it is free :-). After that you will be able to upgrade Xcode to 5.x release.

Xcode download for Snow Leopard

Older threads mention that there is a download for Xcode for Snow Leopard listed in the Xcode downloads on https://developer.apple.com/downloads/index.action?name=Xcode if you are logged-in as an enrolled iOS developer - but I can't see it.
A comment on this thread has a direct link to the download, but clicking on the link redirects to an "Access Denied" error page:
https://stackoverflow.com/questions/7662246/cant-download-xcode-4-for-snow-leopard-anymore
you can refer to here. or if you have a good internet connection, try to download via torrent. here is the link. link for xcode via torrent.
Your Required software is available at this link, https://developer.apple.com/downloads/
Currently Xcode 4.2 is on 6th page.
Please note: OS X 10.6.8 (snow leopard) is now TOO OLD to publish an app.
You need a mac with OS X 10.8 (mountain lion). Apple have not maintained backward compatibility: the minimum versions of Xcode or Application Launcher needed to meet the app store requirements won't run on 10.6.8.
You can develop, test and simulate with your old mac, but ultimately to build and publish your app you'll need a newer Mac.

Deploy Lion app to 10.6 exception

I have an OS X App That builds on Lion (with latest sdk) but deploy set to 10.6 (to be able run on Snow Leo). ARC enabled.
I want's to run app on Show Leopard. Application works well on Lion.
But when I start application in 10.6 I get this exception in console:
NSRLEArray objectAtIndex:effectiveRange: Out of bounds
And nothing more. No stack or whatever. Just this one line.
What I may do to clarify situation ? Problem seems more strange, since in Lion all works good.

Resources