mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
Jakub Sokołowski
ca8b721135
Possible fix for errors like: ``` bundler: failed to load command: fastlane (/Users/jenkins/.bundle/ruby/2.7.0/bin/fastlane) /Users/jenkins/.bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 51 instead of 0. (FastlaneCore::Interface::FastlaneShellError) ``` Signed-off-by: Jakub Sokołowski <jakub@status.im>
25 lines
661 B
Nix
25 lines
661 B
Nix
{ mkShell, cocoapods }:
|
|
|
|
let
|
|
# source of what pod should install
|
|
podfileLock = "ios/Podfile.lock";
|
|
# current state of pods installed by pod
|
|
manifestLock = "ios/Pods/Manifest.lock";
|
|
in mkShell {
|
|
buildInputs = [ cocoapods ];
|
|
shellHook = ''
|
|
pushd "$STATUS_MOBILE_HOME" > /dev/null
|
|
{
|
|
echo "Checking for modifications in ios/Pods..."
|
|
if diff -q ${podfileLock} ${manifestLock}; then
|
|
echo "No modifications detected."
|
|
else
|
|
# CocoaPods are trash and can't handle other pod instances running
|
|
./scripts/wait-for.sh 240 'pod install'
|
|
(cd ios && pod install)
|
|
fi
|
|
}
|
|
popd > /dev/null
|
|
'';
|
|
}
|