-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add Expo CLI Support for New Architecture #713
Comments
Can you clarify what you're changing to get pod install to work? Can you also provide the version of the SDK this is occurring with? Thanks |
i went into the ios file PLKFabricHelpers.h and on line 11 i switched it from and i made it like this
we are on version v11.13.0 after i made that change in the node_modlues i was able to run pod install and it worked |
Sorry, looking at this again the problem seems to be related to the iOS versions your app is supporting. V11 only supports iOS >= 14.0. What is the minimum iOS version your app is supporting? |
I used the following version to disable # Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, 14.0
prepare_react_native_project!
# linkage = ENV['USE_FRAMEWORKS']
# if linkage != nil
# Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
# use_frameworks! :linkage => linkage.to_sym
# end
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
target 'FabricExample' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'FabricExampleTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
end However, I was able to run pod install and the iOS example project. |
Thanks for the reply. Expo is not supported by this SDK. I am going to close the issue, because I believe this is expected. Feel free to provide more context if you think this is a mistake, but this SDK is currently only designed to work with vanilla React Native apps. |
i just tried to do it in a brand new project with the new arch and it looks like if i have the use_frameworks! :linkage => :static and i try to build it i get that error `# Resolve react_native_pods.rb with node to allow for hoisting platform :ios, 14.1 Set frameworks to use static linkageuse_frameworks! :linkage => :static target 'newArch' do use_react_native!( target 'newArchTests' do post_install do |installer| |
@dtroupe-plaid is there no plan to support react native new architecture is Plaid? React Native community is highly recommending using of react native new architecture and now the default cli for react native apps are expo, so does Plaid plan to close this issue and not support for it forever? |
We are supporting the new architecture. I believe the issue here is the use of the expo CLI.
I think we can add support for this in the future based on the information I found here. Additionally, I can make the requested change in this issue, but I am not sure that will fully resolve the issues you're facing due to the use of Expo. |
Thanks for reference would be good to see Plaid updates to new architecture soon as this will really simplify integration, testing and updates of Plaid SDK in future in apps that are build with next generation technologies. @dtroupe-plaid - Is there any ETA planned to support this as it will help us update the sdk in future? |
Hi @amol-ghotankar - At this time I cannot provide an ETA for Expo support. |
I also have this issue Step to reproduce
My
|
The app built successfully when making change to this file
|
@jason-evoluter thanks for providing that code. I will try to test this and if it works I'll push a new release ASAP. |
yeah thats exactly what we had to do just wanted to see if you were able to verify on your testing and get a new release pushed out @dtroupe-plaid |
@griffinshuth I was able to verify this fix works in |
Following up here - the fix above caused a similar issue that I was able to reproduce. I believe the issue here is that I will be releasing an update today that updates the imports to the following code:
Notes for Developers: If you experience a compiler error above
Troubleshooting:
Please follow up if you're encountering issues and thanks for your patience and assitance. |
We get an error while running
|
@ocho-cesar The error occurs because To fix this, adjust your command to:
or
|
This issue should be resolved with the changes introduced in #739 and the release of v12.0.1. Additionally, we’ve provided a new example project, exampleReactNative76, which supports testing with React Native 0.76.6. I’m closing this issue for now. However, if you’re still experiencing any problems with SDK version >= 12.0.1, please feel free to comment, and we’ll be happy to assist further. |
For anyone who is still having this issue or the an issue with React Native 0.77, just use version 10.13.1 of this package. It's compatible with RN 0.76 and 0.77 and it shouldn't matter if you're using Expo or not. |
The problem
when i am trying to build the ios app when i am not using "USE_FRAMEWORKS" I get this error thats in the screenshot.
when i change the path to be it works but i would really like to not patch this library if not needed.
<react_native_plaid_link_sdk/react_native_plaid_link_sdk-Swift.h>
The text was updated successfully, but these errors were encountered: