Skip to content

Commit bb11857

Browse files
authored
update: CocoaPods possible issues update (#4788)
1 parent a0c026b commit bb11857

File tree

1 file changed

+70
-4
lines changed

1 file changed

+70
-4
lines changed

docs/topics/multiplatform/native-cocoapods.md

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Install the [CocoaPods dependency manager](https://cocoapods.org/) using the ins
2828
<tabs>
2929
<tab title="RVM">
3030

31-
1. Install [Ruby version manager](https://rvm.io/rvm/install) in case you don't have it yet.
31+
1. Install [RVM](https://rvm.io/rvm/install) in case you don't have it yet.
3232
2. Install Ruby. You can choose a specific version:
3333

3434
```bash
@@ -314,10 +314,75 @@ manually or using a shell command:
314314
echo -e "kotlin.apple.cocoapods.bin=$(which pod)" >> local.properties
315315
```
316316
317-
### Module not found {initial-collapse-state="collapsed" collapsible="true"}
317+
### Module or framework not found {initial-collapse-state="collapsed" collapsible="true"}
318318
319-
You may encounter a `module 'SomeSDK' not found` error that is connected with the [C-interop](native-c-interop.md) issue.
320-
Try these workarounds to avoid this error:
319+
When installing Pods, you may encounter `module 'SomeSDK' not found` or `framework 'SomeFramework' not found`
320+
errors related to [C interop](native-c-interop.md) issues. To resolve such errors, try these solutions:
321+
322+
#### Update packages
323+
324+
Update your installation tool and the installed packages (gems):
325+
326+
<tabs>
327+
<tab title="RVM">
328+
329+
1. Update RVM:
330+
331+
```bash
332+
rvm get stable
333+
```
334+
335+
2. Update Ruby's package manager, RubyGems:
336+
337+
```bash
338+
gem update --system
339+
```
340+
341+
3. Upgrade all installed gems to their latest versions:
342+
343+
```bash
344+
gem update
345+
```
346+
347+
</tab>
348+
<tab title="Rbenv">
349+
350+
1. Update Rbenv:
351+
352+
```bash
353+
cd ~/.rbenv
354+
git pull
355+
```
356+
357+
2. Update Ruby's package manager, RubyGems:
358+
359+
```bash
360+
gem update --system
361+
```
362+
363+
3. Upgrade all the installed gems to their latest versions:
364+
365+
```bash
366+
gem update
367+
```
368+
369+
</tab>
370+
<tab title="Homebrew">
371+
372+
1. Update the Homebrew package manager:
373+
374+
```bash
375+
brew update
376+
```
377+
378+
2. Upgrade all the installed packages to their latest versions:
379+
380+
```bash
381+
brew upgrade
382+
````
383+
384+
</tab>
385+
</tabs>
321386
322387
#### Specify the framework name
323388
@@ -331,6 +396,7 @@ Try these workarounds to avoid this error:
331396
moduleName = "SDWebImageMapKit"
332397
}
333398
```
399+
334400
#### Specify headers
335401
336402
If the Pod doesn't contain a `.modulemap` file, like the `pod("NearbyMessages")`, specify the main header explicitly:

0 commit comments

Comments
 (0)