任意の要素を右クリックして、「Finderで表示」を選択できます。存在する最良の一致が表示されます。たとえば、ファイルのみが欠落している場合は直接の親フォルダー、直接の親フォルダーが欠落している場合はその親フォルダーなどが表示されます。
または、XcodeのAppleScripting機能を使用して、プロジェクト内のアイテムの完全なパスを決定できます。
AppleScript Editorを開き、次を貼り付けます。
set out to ""
tell application "Xcode"
tell project "Fooo"
repeat with g1 in groups
set c1 to name of g1
repeat with g2 in groups of g1
set c2 to c1 & " » " & name of g2
repeat with g3 in groups of g2
set c3 to c2 & " » " & name of g3
repeat with g4 in groups of g3
set c4 to c3 & " » " & name of g4
repeat with r4 in file references of g4
set out to out & c4 & " » " & name of r4 & " ——— " & full path of r4 & "
"
end repeat
end repeat
repeat with r3 in file references of g3
set out to out & c3 & " » " & name of r3 & " ——— " & full path of r3 & "
"
end repeat
end repeat
repeat with r2 in file references of g2
set out to out & c2 & " » " & name of r2 & " ——— " & full path of r2 & "
"
end repeat
end repeat
repeat with r1 in file references of g1
set out to out & c1 & " » " & name of r1 & " ——— " & full path of r1 & "
"
end repeat
end repeat
repeat with r0 in file references
set out to out & " » " & name of r0 & " ——— " & full path of r0 & "
"
end repeat
end tell
end tell
out
プロジェクト名("Fooo"
)を変更して実行し、出力を確認します。通過するすべてのアイテムへの完全なパスが含まれます。ただし、プロジェクト構造によって異なります。上位4レベルのグループ(フォルダー)とそのファイル/フォルダー参照のみをトラバースします。
これは、新しく作成されたCocoaアプリケーションプロジェクトの出力ですCocoa
。
Cocoa » Document.xib » en ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/en.lproj/Document.xib
Cocoa » MainMenu.xib » en ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/en.lproj/MainMenu.xib
Cocoa » Supporting Files » InfoPlist.strings » en ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/en.lproj/InfoPlist.strings
Cocoa » Supporting Files » Credits.rtf » en ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/en.lproj/Credits.rtf
Cocoa » Supporting Files » Cocoa-Info.plist ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/Cocoa-Info.plist
Cocoa » Supporting Files » main.m ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/main.m
Cocoa » Supporting Files » Cocoa-Prefix.pch ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/Cocoa-Prefix.pch
Cocoa » Document.h ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/Document.h
Cocoa » Document.m ——— /Users/danielbeck/Library/Autosave Information/Cocoa/Cocoa/Document.m
CocoaTests » Supporting Files » InfoPlist.strings » en ——— /Users/danielbeck/Library/Autosave Information/Cocoa/CocoaTests/en.lproj/InfoPlist.strings
CocoaTests » Supporting Files » CocoaTests-Info.plist ——— /Users/danielbeck/Library/Autosave Information/Cocoa/CocoaTests/CocoaTests-Info.plist
CocoaTests » CocoaTests.h ——— /Users/danielbeck/Library/Autosave Information/Cocoa/CocoaTests/CocoaTests.h
CocoaTests » CocoaTests.m ——— /Users/danielbeck/Library/Autosave Information/Cocoa/CocoaTests/CocoaTests.m
Frameworks » Other Frameworks » AppKit.framework ——— /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework
Frameworks » Other Frameworks » CoreData.framework ——— /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework
Frameworks » Other Frameworks » Foundation.framework ——— /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework
Frameworks » Cocoa.framework ——— /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework
Frameworks » SenTestingKit.framework ——— /Developer/Library/Frameworks/SenTestingKit.framework
Products » Cocoa.app ——— /Users/danielbeck/Library/Developer/Xcode/DerivedData/Cocoa-crnllmegeptunwfweqdljydsrsnq/Build/Products/Debug/Cocoa.app
Products » CocoaTests.octest ——— /Users/danielbeck/Library/Developer/Xcode/DerivedData/Cocoa-crnllmegeptunwfweqdljydsrsnq/Build/Products/Debug/CocoaTests.octest
もちろん、スクリプトをプロジェクトの構造に合わせて調整し、アイテム階層を抜けて不足しているアイテムまでたどることができます。この場合、ファイルのフルパスがAppleScriptの出力として表示されます。
tell application "Xcode"
tell project "Fooo"
tell group "Frameworks"
tell group "Other Frameworks"
full path of file reference "aaa"
end tell
end tell
end tell
end tell