Skip to content

Fix iOS build with USE_FRAMEWORKS=dynamic #7025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Feb 14, 2025

Summary

This PR fixes the following iOS build errors reported by @kkafar when USE_FRAMEWORKS=dynamic is set:

Screenshot 2025-02-14 at 10 56 53

Undefined symbol: facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&, std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)> const&)

This is just the minimal fix, I will remove install_modules_dependencies_legacy in an upcoming PR.

Test plan

  1. Add ENV['USE_FRAMEWORKS'] = 'dynamic' in fabric-example/ios/Podfile
  2. Run bundle install && bundle exec pod install
  3. Open fabric-example in Xcode using xed ios
  4. Build fabric-example app

@tomekzaw tomekzaw requested a review from piaskowyk February 14, 2025 12:20
@tomekzaw tomekzaw added this pull request to the merge queue Feb 15, 2025
Merged via the queue into main with commit ceee78e Feb 15, 2025
12 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/fix-ios-use-frameworks-dynamic branch February 15, 2025 09:28
tjzel pushed a commit that referenced this pull request Feb 17, 2025
## Summary

This PR fixes the following iOS build errors reported by @kkafar when
`USE_FRAMEWORKS=dynamic` is set:

![Screenshot 2025-02-14 at 10 56
53](https://github.com/user-attachments/assets/5ae47679-b488-4011-bc00-93fc6a7d53dc)

```
Undefined symbol: facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&, std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)> const&)
```

This is just the minimal fix, I will remove
`install_modules_dependencies_legacy` in an upcoming PR.

## Test plan

1. Add `ENV['USE_FRAMEWORKS'] = 'dynamic'` in
`fabric-example/ios/Podfile`
2. Run `bundle install && bundle exec pod install`
3. Open fabric-example in Xcode using `xed ios`
4. Build fabric-example app
tjzel pushed a commit that referenced this pull request Feb 17, 2025
## Summary

This PR fixes the following iOS build errors reported by @kkafar when
`USE_FRAMEWORKS=dynamic` is set:

![Screenshot 2025-02-14 at 10 56
53](https://github.com/user-attachments/assets/5ae47679-b488-4011-bc00-93fc6a7d53dc)

```
Undefined symbol: facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&, std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)> const&)
```

This is just the minimal fix, I will remove
`install_modules_dependencies_legacy` in an upcoming PR.

## Test plan

1. Add `ENV['USE_FRAMEWORKS'] = 'dynamic'` in
`fabric-example/ios/Podfile`
2. Run `bundle install && bundle exec pod install`
3. Open fabric-example in Xcode using `xed ios`
4. Build fabric-example app
tomekzaw added a commit that referenced this pull request Feb 19, 2025
## Summary

This PR fixes the following iOS build errors reported by @kkafar when
`USE_FRAMEWORKS=dynamic` is set:

![Screenshot 2025-02-14 at 10 56
53](https://github.com/user-attachments/assets/5ae47679-b488-4011-bc00-93fc6a7d53dc)

```
Undefined symbol: facebook::jsi::dynamicFromValue(facebook::jsi::Runtime&, facebook::jsi::Value const&, std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)> const&)
```

This is just the minimal fix, I will remove
`install_modules_dependencies_legacy` in an upcoming PR.

## Test plan

1. Add `ENV['USE_FRAMEWORKS'] = 'dynamic'` in
`fabric-example/ios/Podfile`
2. Run `bundle install && bundle exec pod install`
3. Open fabric-example in Xcode using `xed ios`
4. Build fabric-example app
@tomekzaw tomekzaw mentioned this pull request Feb 19, 2025
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.

2 participants