My downside
I purchased my MacBook Professional M2 two weeks in the past, and since then, I have been unable to put in the pods in my React Native app. (I have been working with React Native for over a yr with out points on an M1).
The error begins after I run the command cd ios && pod set up
, I all the time get an error when it reaches the glog pod.
My objective
I need to run npm run ios
(like I all the time did with my earlier mac) and set up/run the app within the iOS simulator.
What I’ve tried
Over the past 2-3 weeks, I have been putting in & re-installing every thing from Node, Ruby, Bundler, Xcode, Command Line Instruments… I’ve tried every thing from the github and stack overflow points, however not one of the labored for me and I am actually determined that nothing appears to work.
Command that throws error
cd ios && pod set up
Error (summarized)
-> Putting in increase (1.76.0)
> Copying increase from
`/Customers/jvegax/Library/Caches/CocoaPods/Pods/Exterior/increase/909665deed38b6f25051fac8c534aa3c-57d28` to `Pods/increase`
-> Putting in fmt (6.2.1)
> Copying fmt from `/Customers/jvegax/Library/Caches/CocoaPods/Pods/Launch/fmt/6.2.1-ff9d5` to `Pods/fmt`
-> Putting in glog (0.3.5)
> Git obtain
> Git obtain
$ /choose/homebrew/bin/git clone https://github.com/google/glog.git
/var/folders/tn/v1qdr5nj7g75l5fj9qzx9px80000gn/T/d20230702-30759-hefom7 --template= --single-branch --depth 1
--branch v0.3.5
Cloning into '/var/folders/tn/v1qdr5nj7g75l5fj9qzx9px80000gn/T/d20230702-30759-hefom7'...
Observe: switching to 'a6a166db069520dbbd653c97c2e5b12e08a8bb26'.
You might be in a 'indifferent HEAD' state. You'll be able to go searching, make experimental adjustments and commits, and you'll discard any commits you make on this state with out impacting any department by performing one other checkout.
If you wish to create a brand new department to retain commits you create, you are able to do so (now or later) with the checkout command utilizing -c. For instance:
git swap -c <new-branch-name>
Or undo the operation with:
git swap -
Flip off this recommendation by setting the recommendation.detachedHead configuration variable to false.
[!] Error putting in glog
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning native as a result of checking is just carried out in repo replace
React Native Data
System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M2
Reminiscence: 95.67 MB / 8.00 GB
Shell:
model: "5.9"
path: /bin/zsh
Binaries:
Node:
model: 18.16.1
path: /usr/native/bin/node
Yarn:
model: 1.22.19
path: /choose/homebrew/bin/yarn
npm:
model: 9.6.7
path: /choose/homebrew/bin/npm
Watchman:
model: 2023.06.26.00
path: /choose/homebrew/bin/watchman
Managers:
CocoaPods:
model: 1.12.1
path: /Customers/jvegax/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Discovered
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
model: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
model: 11.0.19
path: /usr/bin/javac
Ruby:
model: 2.7.6
path: /Customers/jvegax/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Discovered
react: Not Discovered
react-native: Not Discovered
react-native-macos: Not Discovered
npmGlobalPackages:
"*react-native*": Not Discovered
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not discovered
newArchEnabled: Not discovered
~/.zprofile
eval "$(/choose/homebrew/bin/brew shellenv)"
export ANDROID_SDK_ROOT="/Customers/jvegax/Library/Android/sdk"
export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK_ROOT/platform-tools"
export ANDROID_TOOLS="$ANDROID_SDK_ROOT/instruments"
export ANDROID_TOOLS_BIN="$ANDROID_TOOLS/bin"
export ANDROID_BUILD_TOOLS="$ANDROID_SDK_ROOT/build-tools/33.0.0" #edit in keeping with sdk model
path=(
$ANDROID_TOOLS
$ANDROID_SDK_ROOT
$ANDROID_TOOLS_BIN
$ANDROID_PLATFORM_TOOLS
$ANDROID_BUILD_TOOLS
$path
)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This hundreds nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This hundreds nvm bash_completion
eval "$(rbenv init -)"
~/.zshrc
eval "$(/choose/homebrew/bin/brew shellenv)"
# Path to your oh-my-zsh set up.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="gozilla"
supply $ZSH/oh-my-zsh.sh
export ANDROID_SDK_ROOT="/Customers/jvegax/Library/Android/sdk"
export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK_ROOT/platform-tools"
export ANDROID_TOOLS="$ANDROID_SDK_ROOT/instruments"
export ANDROID_TOOLS_BIN="$ANDROID_TOOLS/bin"
export ANDROID_BUILD_TOOLS="$ANDROID_SDK_ROOT/build-tools/33.0.0" #edit in keeping with sdk model
path=(
$ANDROID_TOOLS
$ANDROID_SDK_ROOT
$ANDROID_TOOLS_BIN
$ANDROID_PLATFORM_TOOLS
$ANDROID_BUILD_TOOLS
$path
)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This hundreds nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This hundreds nvm bash_completion
eval "$(rbenv init -)"