Skip to content

Add React-FabricImage pod to solve Circulare dependency between Fabric image component and ImageManager#37276

Closed
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D45517278
Closed

Add React-FabricImage pod to solve Circulare dependency between Fabric image component and ImageManager#37276
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D45517278

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary:
When enabling dynamic linking, we had a circulr dependency between Fabric and the Image Manager.

Specifically, Image Manager depends on Fabric, but the Image component, in Fabric, is using some implementation specific files from the Image Manager that surface only when enabling the dynamic linking.

Xcode fails to find those symbols unless the dependencies are explicitly added to the podspec.

This change is technically breaking, but we tried to minimize the breakage by adding the new pod in all the required search paths.

Changelog

[iOS][Breaking] - Add React-FabricImage pod.

Differential Revision: D45517278

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels May 5, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D45517278

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented May 5, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,721,318 -2
android hermes armeabi-v7a 8,032,038 -4
android hermes x86 9,208,865 -3
android hermes x86_64 9,062,315 +0
android jsc arm64-v8a 9,285,675 -3
android jsc armeabi-v7a 8,473,837 -2
android jsc x86 9,344,620 -2
android jsc x86_64 9,601,678 -1

Base commit: e540d05
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D45517278

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D45517278

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D45517278

…c image component and ImageManager (facebook#37276)

Summary:
Pull Request resolved: facebook#37276

When enabling dynamic linking, we had a circulr dependency between Fabric and the Image Manager.

Specifically, Image Manager depends on Fabric, but the Image component, in Fabric, is using some implementation specific files from the Image Manager that surface only when enabling the dynamic linking.

Xcode fails to find those symbols unless the dependencies are explicitly added to the podspec.

This change is technically breaking, but we tried to minimize the breakage by adding the new pod in all the required search paths.

## Changelog
[iOS][Breaking] - Add React-FabricImage pod.

Reviewed By: NickGerleman

Differential Revision: D45517278

fbshipit-source-id: 5eda8630715351798671978e67019a71876ded37
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D45517278

cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request May 9, 2023
…c image component and ImageManager (facebook#37276)

Summary:
Pull Request resolved: facebook#37276

When enabling dynamic linking, we had a circulr dependency between Fabric and the Image Manager.

Specifically, Image Manager depends on Fabric, but the Image component, in Fabric, is using some implementation specific files from the Image Manager that surface only when enabling the dynamic linking.

Xcode fails to find those symbols unless the dependencies are explicitly added to the podspec.

This change is technically breaking, but we tried to minimize the breakage by adding the new pod in all the required search paths.

## Changelog
[iOS][Breaking] - Add React-FabricImage pod.

Differential Revision: https://internalfb.com/D45517278

fbshipit-source-id: 89c991bed7c170c6bb2f7f6e8b19ec64847f5454
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 9, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 44af6ca.

@andreialecu
Copy link
Copy Markdown

@cipolleschi getting:

[!] CocoaPods could not find compatible versions for pod "React-FabricImage":
  In Podfile:
    React-FabricImage (from `../node_modules/react-native/ReactCommon`)

Specs satisfying the `React-FabricImage (from `../node_modules/react-native/ReactCommon`)` dependency were found, but they required a higher minimum deployment target.

I believe this is the culprit. Currently debugging why.

@andreialecu
Copy link
Copy Markdown

Figured it out, we had:

platform :ios, '13.0'

Changing it to the following seems to have fixed this issue:

platform :ios, min_ios_version_supported

Leaving it here as it may help someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants