452ddff763ebbaba40a060006e8290d497e2993a

Author
Kyle <43724855+Kyle-Ye@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(xcode): support `.swiftpm` as project file in `xc` (#10434)

Diff

This diff is truncated to protect this page.

 1diff --git a/plugins/xcode/README.md b/plugins/xcode/README.md
 2index 664a063a32218bbc247c58814130a38f53edebb7..27d6a228b62f02c0857f362bd55db68d50d3592d 100644
 3--- a/plugins/xcode/README.md
 4+++ b/plugins/xcode/README.md
 5@@ -26,7 +26,7 @@ plugins=(... xcode)
 6 
 7 ###  `xc`
 8 
 9diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
10index 41b9e37e488c3c9eb7beaf8119b0ee92ddc8ff7e..3bd12cdec588ab0131ead196f44b98ba639499a4 100644
11--- a/plugins/xcode/xcode.plugin.zsh
12+++ b/plugins/xcode/xcode.plugin.zsh
13@@ -7,7 +7,7 @@ alias xcsel='sudo xcode-select --switch'
14 # source: https://gist.github.com/subdigital/5420709
15 function xc {
16   local xcode_files
17-  xcode_files=(${1:-.}/{*.{xcworkspace,xcodeproj},Package.swift}(N))
18+  xcode_files=(${1:-.}/{*.{xcworkspace,xcodeproj,swiftpm},Package.swift}(N))
19 
20   if [[ ${#xcode_files} -eq 0 ]]; then
21     echo "No Xcode files found in ${1:-the current directory}." >&2