diff --git a/.buildkite/ios.yml b/.buildkite/ios.yml --- a/.buildkite/ios.yml +++ b/.buildkite/ios.yml @@ -5,7 +5,7 @@ - 'curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y' - 'source /Users/comm/.cargo/env' - 'yarn ci-cleaninstall' - - 'cd native/ios && xcodebuild -workspace Comm.xcworkspace -scheme Comm -destination generic/platform=iOS -allowProvisioningUpdates' + - 'cd native && yarn xcodebuild -workspace Comm.xcworkspace -scheme Comm -destination generic/platform=iOS -allowProvisioningUpdates' retry: automatic: true env: diff --git a/native/package.json b/native/package.json --- a/native/package.json +++ b/native/package.json @@ -18,8 +18,9 @@ "logfirebase": "adb shell logcat | grep -E -i 'FIRMessagingModule|firebase'", "redux-devtools": "redux-devtools --port=8043 --open", "codegen-jsi": "flow && babel codegen/src/ -d codegen/dist/ && node codegen/dist", - "react-native": "PATH=/usr/bin:\"$PATH\" react-native", - "expo": "PATH=/usr/bin:\"$PATH\" expo" + "react-native": "PATH=/usr/bin:/bin:\"$PATH\" react-native", + "expo": "PATH=/usr/bin:/bin:\"$PATH\" expo", + "xcodebuild": "cd ios && PATH=/usr/bin:/bin:\"$PATH\" xcodebuild" }, "devDependencies": { "@babel/cli": "^7.8.4", diff --git a/postinstall.sh b/postinstall.sh --- a/postinstall.sh +++ b/postinstall.sh @@ -14,5 +14,5 @@ yarn workspace native jetify if [[ "$OSTYPE" == "darwin"* ]]; then - (cd native/ios && PATH=/usr/bin:"$PATH" pod install) + (cd native/ios && PATH=/usr/bin:/bin:"$PATH" pod install) fi