-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL-COCOAPODS
executable file
·21 lines (14 loc) · 1.13 KB
/
INSTALL-COCOAPODS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
echo "Installing Cocoapod dependencies"
pod install
echo "Clean BoringSSL module.modulemap"
> Pods/BoringSSL/include/openssl/module.modulemap
echo "Fix the bad imports in the generated files"
grep -rl "google/cloud/speech/v1beta1/CloudSpeech.pbobjc.h" google/** | xargs sed -i '' s@'"google\/cloud\/speech\/v1beta1\/CloudSpeech\.pbobjc\.h"'@'\<googleapis\/CloudSpeech\.pbobjc\.h\>'@g
grep -rl "google/api/Annotations.pbobjc.h" google/** | xargs sed -i '' s@'"google\/api\/Annotations\.pbobjc\.h"'@'\<googleapis\/Annotations\.pbobjc\.h\>'@g
grep -rl "google/longrunning/Operations.pbobjc.h" google/** | xargs sed -i '' s@'"google\/longrunning\/Operations\.pbobjc\.h"'@'\<googleapis\/Operations\.pbobjc\.h\>'@g
grep -rl "google/rpc/Status.pbobjc.h" google/** | xargs sed -i '' s@'"google\/rpc\/Status\.pbobjc\.h"'@'\<googleapis\/Status\.pbobjc\.h\>'@g
grep -rl "google/cloud/speech/v1/CloudSpeech.pbobjc.h" google/** | xargs sed -i '' s@'"\google\/cloud\/speech\/v1\/CloudSpeech\.pbobjc\.h\"'@'\<googleapis\/CloudSpeech\.pbobjc\.h\>'@g
echo "Opening the project workspace in Xcode"
open Speech.xcworkspace
echo "Now press the run button!"