Re: Missing header files/folders?
On Wed, 21 Mar 2012 09:15:28 -0700, Jens Alfke said: >If that's so, then how is a tool supposed to find the location of the >Developer folder? >Hardcoding /Applications/Xcode.app/Contents/Developer doesn't seem like >a good idea. In addition to xcode-select, you may be able to use URLForDirectory:inDomain:appropriateForURL:create:error: with NSDeveloperApplicationDirectory. Though looking now at NSPathUtilities.h they say "DEPRECATED - there is no one single Developer directory" which I find kinda odd, since there is still only one *blessed* developer directory. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 3/22/12, Chris Hanson wrote: > On Mar 22, 2012, at 11:24 AM, Eric Wing wrote: > >>> Correct. Note that when setting the path, you can get away with just >>> pointing to the copy of Xcode that you'd like to bless: >>> >>> sudo xcode-select -switch /Applications/Xcode.app >> >> Interesting, but as a courtesy note to everybody, those of us who >> write and use 3rd party tools that depend on xcode-select that are not >> from Apple, this variation may not work since the underlying internal >> layout of Xcode using /Applications/Xcode.app/Contents/Developer >> mostly mimics the old /Developer root and these tools probably haven't >> been updated to work with two different variations of the path. > > Actually, when you point OS X 10.7.3’s xcode-select at Xcode.app, it will > record the path as /Applications/Xcode.app/Contents/Developer because that’s > what external tools will expect. > > There is a known issue with xcode-select though: If you install or upgrade > to OS X 10.7.3, and then install Xcode 4.2.1 or earlier along with its UNIX > Development package (which is enabled by default), doing so will replace the > OS X 10.7.3 version of xcode-select with Xcode 4.2.1’s or earlier. For that > version of xcode-select, you really will need to pass it the path to the > Developer directory and not just Xcode.app. > > -- Chris > > Thanks for the info. You saved me a bunch of time having to worry about /Applications/Xcode.app being set. It's very nice that xcode-select corrects that for you. Thanks, Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 20, 2012, at 11:20 PM, Shane Stanley wrote: > This has come up again. I have a customer who has upgraded to Lion from Snow > Leopard, and there are no header files (which my app uses) in his > /System/Library/Frameworks/. But there is no option to reinstall Xcode with > Xcode 4.3. If you install the command line tools package for Xcode, it will install the header files in /System/Library/Frameworks. Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 22, 2012, at 11:24 AM, Eric Wing wrote: >> Correct. Note that when setting the path, you can get away with just >> pointing to the copy of Xcode that you'd like to bless: >> >> sudo xcode-select -switch /Applications/Xcode.app > > Interesting, but as a courtesy note to everybody, those of us who > write and use 3rd party tools that depend on xcode-select that are not > from Apple, this variation may not work since the underlying internal > layout of Xcode using /Applications/Xcode.app/Contents/Developer > mostly mimics the old /Developer root and these tools probably haven't > been updated to work with two different variations of the path. Actually, when you point OS X 10.7.3’s xcode-select at Xcode.app, it will record the path as /Applications/Xcode.app/Contents/Developer because that’s what external tools will expect. There is a known issue with xcode-select though: If you install or upgrade to OS X 10.7.3, and then install Xcode 4.2.1 or earlier along with its UNIX Development package (which is enabled by default), doing so will replace the OS X 10.7.3 version of xcode-select with Xcode 4.2.1’s or earlier. For that version of xcode-select, you really will need to pass it the path to the Developer directory and not just Xcode.app. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
Hi Eric, When using the command line invocation that I mentioned the developer folder inside of the Xcode app bundle would still end up being selected. I just wanted to call out that you don't have to provide the full path, as that's now more of an implementation detail. Joar On 22 mar 2012, at 11:24, Eric Wing wrote: >> Correct. Note that when setting the path, you can get away with just >> pointing to the copy of Xcode that you'd like to bless: >> >> sudo xcode-select -switch /Applications/Xcode.app > > Interesting, but as a courtesy note to everybody, those of us who > write and use 3rd party tools that depend on xcode-select that are not > from Apple, this variation may not work since the underlying internal > layout of Xcode using /Applications/Xcode.app/Contents/Developer > mostly mimics the old /Developer root and these tools probably haven't > been updated to work with two different variations of the path. > > Thanks, > Eric > -- > Beginning iPhone Games Development > http://playcontrol.net/iphonegamebook/ > ___ > Do not post admin requests to the list. They will be ignored. > Xcode-users mailing list (xcode-us...@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/xcode-users/joar%40joar.com > > This email sent to j...@joar.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
> Correct. Note that when setting the path, you can get away with just > pointing to the copy of Xcode that you'd like to bless: > > sudo xcode-select -switch /Applications/Xcode.app Interesting, but as a courtesy note to everybody, those of us who write and use 3rd party tools that depend on xcode-select that are not from Apple, this variation may not work since the underlying internal layout of Xcode using /Applications/Xcode.app/Contents/Developer mostly mimics the old /Developer root and these tools probably haven't been updated to work with two different variations of the path. Thanks, Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
Hi all, On 21 mar 2012, at 12:04, Eric Wing wrote: > xcode-select actually ships with the OS, not Xcode. However, Xcode 4.3 > no longer automatically sets this path so it the path is left in an > uninitialized or prior Xcode state. xcode-select is certainly still a key component of our tools package. As Eric points out, it now ships with OS X (as of 10.7.3). > For default locations, Xcode 4.3 needs to be > /Applications/Xcode.app/Contents/Developer > Prior versions need to be /Developer Correct. Note that when setting the path, you can get away with just pointing to the copy of Xcode that you'd like to bless: sudo xcode-select -switch /Applications/Xcode.app > I hope xcode-select is not going away. I remember the days when you > could only have one Xcode installation at a time. xcode-select was > part of that solution to allow multiple simultaneous versions. We still want to allow you to have multiple copies of Xcode installed, and xcode-select is a cornerstone in making that possible. Joar ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
xcode-select actually ships with the OS, not Xcode. However, Xcode 4.3 no longer automatically sets this path so it the path is left in an uninitialized or prior Xcode state. For default locations, Xcode 4.3 needs to be /Applications/Xcode.app/Contents/Developer Prior versions need to be /Developer I hope xcode-select is not going away. I remember the days when you could only have one Xcode installation at a time. xcode-select was part of that solution to allow multiple simultaneous versions. I noticed many of the command line tools like xcodebuild and opendiff depend on xcode-select being properly defined. And I think it is a nuisance that Xcode is not updating this when you install Xcode 4.3. (If I didn't have to authenticate when I first run Xcode 4.3 with the Mobile Device frameworks imposed on me, I might not be so irritated.) I did file a bug on this (#10901952). As for BridgeSupport, it better ship with the OS or it is completely useless. The whole idea is to allow final shipping apps that depend on the information to run. It is not a developer-only thing. (You're scaring me because I depend on BridgeSupport for some things.) On 3/21/12, Jens Alfke wrote: > > On Mar 20, 2012, at 11:20 PM, Kyle Sluder wrote: > >> It's my understanding that xcode-select isn't even supposed to exist >> anymore; any copy you have might be left over from an older Xcode install. > > If that's so, then how is a tool supposed to find the location of the > Developer folder? > Hardcoding /Applications/Xcode.app/Contents/Developer doesn't seem like a > good idea. > > {Actually we should take this thread to the xcode-users list. CCing it and > directing replies there.} > > —Jens > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/ewmailing%40gmail.com > > This email sent to ewmail...@gmail.com -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 20, 2012, at 11:20 PM, Kyle Sluder wrote: > It's my understanding that xcode-select isn't even supposed to exist anymore; > any copy you have might be left over from an older Xcode install. If that's so, then how is a tool supposed to find the location of the Developer folder? Hardcoding /Applications/Xcode.app/Contents/Developer doesn't seem like a good idea. {Actually we should take this thread to the xcode-users list. CCing it and directing replies there.} —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 20, 2012, at 11:15 PM, Shane Stanley wrote: > Thanks, Jens. Seems odd that .bridgesupport files are now in one place and > headers are in another. Hm, good point. I'm not an expert on the bridging architecture. You may want to ask on xcode-users to get a more authoritative answer about whether headers are supposed to exist in the system frameworks. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 20, 2012, at 11:15 PM, Shane Stanley wrote: > (And it looks like "xcode-select -print-path" still seems to prefer > /Developer.) It's my understanding that xcode-select isn't even supposed to exist anymore; any copy you have might be left over from an older Xcode install. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 21/03/2012, at 4:32 PM, Jens Alfke wrote: > You can't rely on headers being present in the actual system frameworks. > >> Should I be trying to use the header files in the Xcode bundle instead? > > Yes. If your app needs to locate framework headers at runtime for some > reason, it should probably do something like running "xcode-select > -print-path" via NSTask, to find the Developer folder, then locating the SDK > relative to that. Thanks, Jens. Seems odd that .bridgesupport files are now in one place and headers are in another. (And it looks like "xcode-select -print-path" still seems to prefer /Developer.) -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Mar 20, 2012, at 9:20 PM, Shane Stanley wrote: > This has come up again. I have a customer who has upgraded to Lion from Snow > Leopard, and there are no header files (which my app uses) in his > /System/Library/Frameworks/. But there is no option to reinstall Xcode with > Xcode 4.3. You can't rely on headers being present in the actual system frameworks. > Should I be trying to use the header files in the Xcode bundle instead? Yes. If your app needs to locate framework headers at runtime for some reason, it should probably do something like running "xcode-select -print-path" via NSTask, to find the Developer folder, then locating the SDK relative to that. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 07/10/2011, at 4:42 PM, Joar Wingfors wrote: > On 6 okt 2011, at 22:38, Jens Alfke wrote: > >> On Oct 6, 2011, at 9:09 PM, Shane Stanley wrote: >> >>> I've just bought a new Mac, and after migrating and updating I notice that >>> inside the frameworks in /System/Library/Frameworks/, the Headers link and >>> Headers folder that appear on my old Mac are not to be found on my old one. >>> Should they be there, or are the ones on my old Mac a relic of systems past? >> >> I have them, and I just reinstalled my OS recently. Did you install Xcode >> yet? They might not be part of the base OS install. > > > All the bits and pieces of an Xcode install doesn't survive a migration. You > have to reinstall Xcode. > > j o a r This has come up again. I have a customer who has upgraded to Lion from Snow Leopard, and there are no header files (which my app uses) in his /System/Library/Frameworks/. But there is no option to reinstall Xcode with Xcode 4.3. Should I be trying to use the header files in the Xcode bundle instead? And is there some reason the .bridgesupport files aren't getting installed in the BridgeSupport folder in the frameworks in the Xcode bundle? -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 08/10/2011, at 2:26 AM, Kyle Sluder wrote: > As for Mac OS X not coming with a compiler, it sure comes with multiple > Cocoa-bridged interpreters: PyObjC, MacRuby, and AppleScriptObjC. All of > these can be used to produce standalone apps. Really, the header files are > tiny and should be installed. I wasn't really arguing that they shouldn't -- quite the contrary. Hence my surprise that they are installed by Xcode and not part of the OS. -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Oct 7, 2011, at 3:41 AM, Shane Stanley wrote: > On 07/10/2011, at 7:08 PM, Jean-Daniel Dupas wrote: > >> Not so much. There is no compiler in the base system, so why bother to >> include framework headers ;-) > > But then Xcode also puts them in its own copies in the SDKs, so I guess you > could argue why bother at all. The current SDK's System directory is a symlink to /System. As for Mac OS X not coming with a compiler, it sure comes with multiple Cocoa-bridged interpreters: PyObjC, MacRuby, and AppleScriptObjC. All of these can be used to produce standalone apps. Really, the header files are tiny and should be installed. --Kyle Sluder___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 07/10/2011, at 7:08 PM, Jean-Daniel Dupas wrote: > Not so much. There is no compiler in the base system, so why bother to > include framework headers ;-) But then Xcode also puts them in its own copies in the SDKs, so I guess you could argue why bother at all. -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
Le 7 oct. 2011 à 09:02, Shane Stanley a écrit : > > On 07/10/2011, at 4:38 PM, Jens Alfke wrote: > >> They might not be part of the base OS install. > > Thanks -- that seems to be the case. Kind of surprised me… > Not so much. There is no compiler in the base system, so why bother to include framework headers ;-) -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 07/10/2011, at 4:38 PM, Jens Alfke wrote: > They might not be part of the base OS install. Thanks -- that seems to be the case. Kind of surprised me... -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 07/10/2011, at 4:42 PM, Joar Wingfors wrote: > All the bits and pieces of an Xcode install doesn't survive a migration. You > have to reinstall Xcode. That did the trick. I'd assumed Xcode was only responsible for the ones in /Developer/. Many thanks. -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On 6 okt 2011, at 22:38, Jens Alfke wrote: > On Oct 6, 2011, at 9:09 PM, Shane Stanley wrote: > >> I've just bought a new Mac, and after migrating and updating I notice that >> inside the frameworks in /System/Library/Frameworks/, the Headers link and >> Headers folder that appear on my old Mac are not to be found on my old one. >> Should they be there, or are the ones on my old Mac a relic of systems past? > > I have them, and I just reinstalled my OS recently. Did you install Xcode > yet? They might not be part of the base OS install. All the bits and pieces of an Xcode install doesn't survive a migration. You have to reinstall Xcode. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Missing header files/folders?
On Oct 6, 2011, at 9:09 PM, Shane Stanley wrote: > I've just bought a new Mac, and after migrating and updating I notice that > inside the frameworks in /System/Library/Frameworks/, the Headers link and > Headers folder that appear on my old Mac are not to be found on my old one. > Should they be there, or are the ones on my old Mac a relic of systems past? I have them, and I just reinstalled my OS recently. Did you install Xcode yet? They might not be part of the base OS install. —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Missing header files/folders?
I've just bought a new Mac, and after migrating and updating I notice that inside the frameworks in /System/Library/Frameworks/, the Headers link and Headers folder that appear on my old Mac are not to be found on my old one. Should they be there, or are the ones on my old Mac a relic of systems past? -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com