Opened 14 months ago

Last modified 14 months ago

#67079 new defect

osxfuse @3.8.3_0: No version of Xcode found

Reported by: Darieb Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: osxfuse

Description (last modified by ryandesign (Ryan Carsten Schmidt))

MacOS X 10.7.5
MacPorts 2.8.1
Xcode 4.3

Help: I tried to install ext4fuse, which went fine until the penultimate step, which is osxfuse. No other required ports had a problem. It looks as if the xcode.sh program to find the Xcode version broke somehow. ("xcode-select -print-path" is part of OS X and returns the path to Xcode; I know the .sh file does more than that, but there may be an easier way!)

I looked briefly at xcode.sh, and could not see an obvious way to fix it. I really would like ext4fuse to work (the newest versions won't run on the old 10.7.5, and the computer I'm using can't go to 10.8. *sigh*)

please and thank you for a fix or a workaround.

Yes, I did try to look through other tickets for a similar problem and found none; that may be newbie error.

Attachments (1)

main.log (23.8 KB) - added by Darieb 14 months ago.
Log of "port install osxfuse"

Download all attachments as: .zip

Change History (7)

Changed 14 months ago by Darieb

Attachment: main.log added

Log of "port install osxfuse"

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Xcode removed
Summary: osxfuse doesn't load, claiming "Xcode not found"osxfuse @3.8.3_0: No version of Xcode found

I found #57142 in which a person encountering this problem solved it by turning Spotlight on. Do you have Spotlight off? If so, try turning it on.

comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

That ticket's log has an additional error that yours doesn't have:

mdfind[3673:18794] Metadata.framework [Error]: couldn't get the client port

So maybe the problem isn't that Spotlight is off, but that you have excluded the /Applications directory from Spotlight indexing, or that your Xcode.app is not in the /Applications folder.

comment:3 Changed 14 months ago by Darieb

Thank you for checking and amending my ticket so promptly.

I can find no such error nor any reference to mdfind in the "main.log" that I think I sent. Perhaps you mixed up logs?

Yes, I'd seen the Spotlight comment. Spotlight is on and searching /Applications; I've been using it. Xcode.app is in the /Applications folder. I apologize for not mentioning that.

xcode-select -print-path returns:

/Applications/Xcode.app/Contents/Developer
Last edited 14 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 14 months ago by Darieb

BTW, Xcode has built-in answers to some of the questions that xcode.sh is looking for:

xcode-select should be in every OS X, I think and returns a null result if there is no Xcode. xcodebuild will be installed with Xcode; I only have Xcode command-line tools for my Monterey system, and it returns an error saying so.

xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
xcodebuild -version
Xcode 4.3.3
Build version 4E3002
Last edited 14 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 in reply to:  3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to Darieb:

I can find no such error nor any reference to mdfind in the "main.log" that I think I sent. Perhaps you mixed up logs?

I was saying that the other log, the one in #57142, contains the mdfind line I quoted while yours does not, therefore even though the error message ("No version of Xcode found") is the same in both tickets, the cause and/or solution might turn out to be different from the one in that ticket.

Replying to Darieb:

BTW, Xcode has built-in answers to some of the questions that xcode.sh is looking for:

xcode-select should be in every OS X, I think and returns a null result if there is no Xcode.

Sure. I can't guess why the developer of osxfuse chose to write their own code to find Xcode rather than use xcode-select. You'd have to ask them. Maybe they've already changed it in later versions. We can't check because osxfuse is no longer open source.

You could probably still use the patch attached to #57142 which hardcodes the value /Applications/Xcode.app into the script, or write your own patch to use xcode-select if you prefer.

comment:6 Changed 14 months ago by Darieb

Thank you for the pointers and help. I patched xcode.sh, consistent with the #57142 AND with use of xcode-select. The compile worked, and osxfuse got installed.

diff xcode.sh

120c120 < xcode_path=xcode-select -print-path ---

xcode_path="${xcode_app_path}/Contents/Developer"

122c122 < done < <(echo /Applications/Xcode.app) ---

done < <(mdfind -onlyin "/Applications" 'kMDItemCFBundleIdentifier == "com.apple.dt.Xcode"')

Note: See TracTickets for help on using tickets.