Skip to content

Commit 9fac466

Browse files
committed
Remove Gemfile.lock and update README with troubleshooting steps for common errors
1 parent dba498f commit 9fac466

File tree

3 files changed

+61
-106
lines changed

3 files changed

+61
-106
lines changed

example/Gemfile.lock

Lines changed: 0 additions & 105 deletions
This file was deleted.

example/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,66 @@ To fix, run the following in the _example app directory_:
108108
bundle install
109109
```
110110

111+
## Error: `Signing for 'ReactNativeSdkExample' requires a development team. Select a development team in the Signing & Capabilities Editor`
112+
113+
- Open XCode
114+
- Go to 'Signing & Capabilities'
115+
- Choose a team
116+
- Stop your application, then rerun
117+
118+
If you are still experiencing issues, try deleting `ios/.xcode.env.local`
119+
120+
## Error: `/Library/Ruby/Gems/XYZ does not have write permissions` or `/usr/local/lib does not have write permissions`
121+
122+
This is a common issue with using ruby on Macs. You can modify the read/write
123+
access of the computers Ruby folder, but a better (and safer) way is to use
124+
`rbenv` and [`homebrew`](https://brew.sh/) by doing the following:
125+
126+
1. **Install/update homebrew**
127+
If you have homebrew, update it by running: `brew update && brew upgrade`.
128+
If you do not have homebrew, follow the [installation
129+
instructions](https://brew.sh/).
130+
131+
2. **Install `rbenv` and `ruby-build`**
132+
```bash
133+
# Uninstall ruby (you can try skipping this step if you have concerns)
134+
brew uninstall --ignore-dependencies ruby
135+
# Install `rbenv` and `ruby-build`
136+
brew install rbenv ruby-build
137+
# Install the correct ruby version, eg: 3.3.6
138+
rbenv install 3.3.6
139+
# Default to using this ruby version
140+
rbenv global 3.3.6
141+
```
142+
143+
3. **Tell your computer to use `rbenv`**
144+
Add the following to the top of your `.zshrc` or `.bash_profile`:
145+
```zsh
146+
eval "$(rbenv init -)"
147+
```
148+
149+
4. **Reload `.zshrc` or `.bash_profile`**
150+
Run the following in your terminal:
151+
```bash
152+
# If using zsh
153+
source ~/.zshrc
154+
# If using bash
155+
source ~/.bash_profile
156+
```
157+
158+
## Error: `bad interpreter: No such file or directory` on `pod install`
159+
Reinstall cocoapods by doing the following:
160+
```bash
161+
# Uninstall current version of cocoapods
162+
brew uninstall cocoapods
163+
# Install a fresh version of cocoapods
164+
brew install cocoapods
165+
# Recreate link to cocoapods
166+
brew unlink cocoapods && brew link cocoapods
167+
```
168+
169+
Run `pod install` again, and it should work
170+
111171
## Other
112172
If things are not working and you are stumped as to why, try running the
113173
following in the _example app directory_:

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,4 +1900,4 @@ SPEC CHECKSUMS:
19001900

19011901
PODFILE CHECKSUM: aab4a30773612c4ffb73be13f5b169b8b156f374
19021902

1903-
COCOAPODS: 1.15.2
1903+
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)