Skip to content

chore: fix ios build for FabricExample#4020

Open
satya164 wants to merge 1 commit into
software-mansion:mainfrom
satya164:@satya164/build-fixes
Open

chore: fix ios build for FabricExample#4020
satya164 wants to merge 1 commit into
software-mansion:mainfrom
satya164:@satya164/build-fixes

Conversation

@satya164
Copy link
Copy Markdown
Contributor

Description

I wasn't able to build and run the app locally as bundle install fails with the following error:

An error occurred while installing ffi (1.16.3),
and Bundler cannot continue.

In Gemfile:
  cocoapods was resolved to 1.15.2, which depends on
cocoapods-core was resolved to 1.15.2, which depends
on
      typhoeus was resolved to 1.4.1, which depends on
        ethon was resolved to 0.16.0, which depends on
          ffi

This fixes the build errors.

Changes

I updated the ffi version in Gemfile.lock to the version that works.

Also moved .ruby-version to the root of the app (same location as Gemfile) so rbenv can pick it up and use the correct Ruby version.

Test plan

Verified the changes by running the following commands on a fresh repo:

yarn
cd FabricExample
rbenv exec bundle install
rbenv exec bundle exec pod install --project-directory=ios
yarn ios

The Podfile.lock also got updated after the changes.

Checklist

  • Included code example that can be used to test this change.
  • For visual changes, included screenshots / GIFs / recordings documenting the change.
  • For API changes, updated relevant public types.
  • Ensured that CI passes

I wasn't able to build and run the app locally as `bundle install` fails with the following error:

```sh
An error occurred while installing ffi (1.16.3),
and Bundler cannot continue.

In Gemfile:
  cocoapods was resolved to 1.15.2, which depends on
cocoapods-core was resolved to 1.15.2, which depends
on
      typhoeus was resolved to 1.4.1, which depends on
        ethon was resolved to 0.16.0, which depends on
          ffi
```

So I updated the `ffi` version in `Gemfile.lock`.

Also moved `.ruby-version` to the root of the app (same location as `Gemfile`) so `rbenv` can pick it up and use the correct Ruby version.

Verified the changes by running the following commands:

```sh
yarn
cd FabricExample
rbenv exec bundle install
rbenv exec bundle exec pod install --project-directory=ios
yarn ios
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant