Slide 9
Slide 9 text
CPPUTUSBQTIʢʣ
install_embeded_libraries() {
# ඞཁʹԠͯ͡ CocoaPodsɺCarthage ͱ SwiftPM ͷϥΠϒϥϦʔΛಋೖ
echo "Install dependencies via CocoaPods, Carthage and SwiftPM"
if [ -e Podfile ]; then
bundle exec pod install --repo-update
fi
if [ -e Cartfile ]; then
carthage bootstrap --use-ssh --no-use-binaries --cache-
builds --platform ios
fi
if [ $(find . -maxdepth 4 -name swiftpm | wc -l) -gt 0 ]; then
workspace_file="$(ls | grep '.*\.xcworkspace$')"
scheme="$(xcodebuild -workspace $workspace_file -list | sed
-n -e '/Schemes:/,$p' | sed -n -e 2p | xargs echo)"
xcodebuild -resolvePackageDependencies -workspace
"$workspace_file" -scheme "$scheme"
fi
}