Configuring app sandbox in Xcode 4 under Snow Leopard - xcode

Is it possible to configure Mac App Store application sandboxing if I'm using Xcode 4 + Snow Leopard? I'm reading the guide by Apple but I don't see anything about entitlements in the summary tab. Does this mean that all MAS developers will need to build their app on Lion?

This is not an authoritative answer but this question leads me to think that XCode 4.2 is required to get these features. My XCode certainly didn't upgrade automatically to 4.2 but the 2nd answer provides a torrent download link for XCode 4.2.
Here is a link to using sandbox in SL.

Security entitlements are passed to the codesign command line tool during the build process. I just tested building a "Developer ID" application on Snow Leopard with sandbox entitlements.

Yeah I also try on snow leopard with xcode 4.2 .It didn't provide any option of entitlements.
But on lion its perfect.And I think there is no alternative other than compiling on it lion OS.

I found that the best way to go was to install Lion and use Xcode 4.3 or up. You will need to look for messages from sandboxd in the Console app to be able to catch sandbox violations and add the appropriate entitlements. AFAIK, this workflow wont work on Snow Leopard as sandboxd is not available.

Related

Xcode for mac OS X 10.6.3?

Is there a version of xcode available for mac OS X 10.6.3? I did several searches on google but the only versions that i find is for 10.6.6 and up.
And xcode 3.2.5 is for leopard and not snow leopard.
I want to use it for developing for Iphone and Ipad.
Thanks.
Have you checked here: http://connect.apple.com/
You need to login using your Apple ID. Also, as Analog File mentioned, that version is probably deprecated and you won't be able to submit your app to the App Store if you build one with it.

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.

Mac Sandbox and XCode 3.x

Is there a way to be Sandbox-compliant compiling apps with XCode 3.x?
Are there any articles or tutorials out there on how to do this?
I'm the developer of a Mac application and I'm stuck with XCode 3 because
the app uses two IBPlugins which (as far as I know) are not supported in
XCode 4.x. Sandboxing apps will be mandatory to publish them on the Mac
AppStore beginning November 2011 (still no updates on this, any news?)
You can create an entitlements property list by hand and sign your application bundle from the command line, as described in the Code Signing And Application Sandboxing Guide. You may need to have a copy of Xcode 4 installed for its version of the codesign utility, however you can have multiple versions installed simultaneously (refer to the xcrun and xcode-select man pages).

Xcode built app on 10.6 wont run on 10.5.8

I am new here and new in Xcode world.
I made a simple app with Xcode 3.2 on Snow Leopard.
The resulting built app works on snow leopard, however it will not even start on leopard (10.5.8) - I get message "You cannot use this version of application with this version of Mac OS X". Is it normal?
Or is there a way to make app that will work both on Snow Leopard and Leopard? Please advise, as I have no way to find out myself
Thanks for any input
You need to change the deployment target in your Build Settings. You should set it to the lowest version of OS X that you're willing to provide support for. You should set your base SDK to the latest available public SDK.
If you do this, you must ensure that you only use new 10.6-only APIs after doing runtime checks for their existence. To do this, you can use functions like NSClassFromString and respondsToSelector:.
Any Frameworks or libraries that are new to 10.6 should be weak-linked. This will prevent the app from trying to load those frameworks on 10.5 and thus cause the program to crash when it doesn't find the frameworks.
All explained in the SDK Compatibility Guide from Apple (Requires (free) login).

Can I get Xcode for Leopard still?

I just tried to upgrade my xcode tools on my mac running 10.5.8, but I didn't realize that the latest version of xcode will only run on snow leopard. I can't find the older version of xcode that would work on my work machine. Where can I get a leopard compatible version of xcode?
Xcode downloads for Leopard (10.5) are no longer shown on the main Xcode page.
However, prior versions are available from the Downloads for Apple Developers page.
Once you have logged in, you can enter "Xcode 3.1.4" in the search field at the top left and hit Enter.
Another alternative is to download it using the interwebs (probably easier and faster than from Apple). The file is called xcode314_2809_developerdvd.dmg and here are some numbers:
143639af09af993d1f6ea45319ddcca0cf65df72 (sha1)
1107ccc98c79afb501f04f9ff1412a98 (md5)
Google is your friend.
Here is the linkk for Xcode 3.1.4 i found:
Xcode 3.1.4
(you need to be logged in as Apple Developer)

Resources