Re: Xcode.app

Scott Hannahs via Fink-users <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
Thanks, I think I had tracked it down previously.  For some reason installing the command line tools reset my Xcode-select to "/Library/Developer/CommandLineTools” which then fails the test below.

XcodeVPath=`xcode-select -print-path`/../version
if [[ -r “$XcodeVPath" ]] then
	defaults read “$XcodeVPath" CFBundleShortVersionString
else
	echo warning
fi

That would help folks figure out the issue.  Also check on the return value of "defaults read” and if the property is not found for some reason, return a warning?

-Scott

> On Jan 27, 2023, at 9:37 PM, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 1/27/23 7:50 AM, Scott Hannahs via Fink-users wrote:
>> I am adventurously trying to use fink in Ventura and with both Intel and Apple Silicon.  However my systems are now telling me that Xcode.app is not installed.  Reinstalling Xcode does not fix this.
>> % fink list xcode.app
>> Scanning package description files..........
>> Information about 17621 packages read in 1 seconds.
>>      xcode.app                                 0-0                             [virtual package representing Xcode]
>> %
>> What does Fink look for in terms of determining if Xcode.app is installed and what version?
> 
> Fink uses the following command to populate the xcode.app virtual package:
> 
> defaults read `xcode-select -print-path`/../version CFBundleShortVersionString
> 
> If this returns a version number, then it should be listed as present in your Fink.
> 
> (returns 11.3.1 on my 10.14.6 machine)
> 
> If it returns an error, first try running just this:
> 
> xcode-select -print-path
> 
> 
> 
> Hanspeter
> -- 
>                 vvv
> ___
> |  ___.-----.ooO-(_)-Ooo-.-----|  .-----.
> ||
> |___|
>                   |___|
> 



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.