#muhammad-asim_unexpected

1 messages Β· Page 1 of 1 (latest)

tired parrotBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1372793138216960001

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

frank haven
#

Hi there, can you share with me the crash log?

hot swallow
#

Triggered by Thread: 0

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ToolBox.debug.dylib 0x111a650c2 closure #1 in CardFieldManager.blur(:) + 498
1 ToolBox.debug.dylib 0x111a64bbe thunk for @escaping @callee_guaranteed (@guaranteed RCTUIManager?, @guaranteed [NSNumber : UIView]?) -> () + 190
2 ToolBox.debug.dylib 0x1103171a0 __32-[RCTUIManagerProxy addUIBlock:]block_invoke + 160 (RCTBridgeProxy.mm:453)
3 ToolBox.debug.dylib 0x1104148e8 RCTExecuteOnMainQueue + 56 (RCTUtils.m:276)
4 ToolBox.debug.dylib 0x110317066 -[RCTUIManagerProxy addUIBlock:] + 198 (RCTBridgeProxy.mm:446)
5 ToolBox.debug.dylib 0x111a64eaa CardFieldManager.blur(
:) + 522
6 ToolBox.debug.dylib 0x111a651a5 @objc CardFieldManager.blur(
:) + 53
7 CoreFoundation 0x7ff8004d131c invoking_ + 140
8 CoreFoundation 0x7ff8004ce491 -[NSInvocation invoke] + 302
9 CoreFoundation 0x7ff8004ce6fb -[NSInvocation invokeWithTarget:] + 70
10 ToolBox.debug.dylib 0x1103b17d0 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2672 (RCTModuleMethod.mm:584)
11 ToolBox.debug.dylib 0x1105b1310 __79-[RCTLegacyViewManagerInteropCoordinator _handleCommandsOnBridgeless:withArgs:]_block_invoke + 96 (RCTLegacyViewManagerInteropCoordinator.mm:167)
12 ToolBox.debug.dylib 0x1103171a0 __32-[RCTUIManagerProxy addUIBlock:]_block_invoke + 160

frank haven
#

Can you provide the Symbolicated logs?

hot swallow
#

0 ToolBox.debug.dylib closure #1 in CardFieldManager.blur(_:) + 498

frank haven
#

Can you upgrade to the latest version 0.46.0 and see if the same problem still happens?

hot swallow
#

yess i try to update to this version 0.46.0
when i try to make a build it gives that error Undefined symbol: _GooglePayButtonCls

frank haven
#

Can you clear the project cache and try again?

hot swallow
#

yess i do ...

frank haven
hot swallow
#

Not even I can use this at all.

frank haven
#

After update the react-native SDK. Did you do a pod install in your ios folder?

hot swallow
#

yess

frank haven
#

The Undefined symbol: _GooglePayButtonCls error suggests your project may still using an old version of Stripe iOS SDK

#

Can you remove the Podfile.lock file and do pod install again?

tired parrotBOT
hot swallow
#

mac@192 ToolBox % rm -rf node_modules
rm -rf /tmp/metro-*
rm -rf android/.gradle
rm -rf android/app/build
rm -rf ios/Pods
rm -rf ios/build
rm -f yarn.lock package-lock.json
zsh: no matches found: /tmp/metro-*
mac@192 ToolBox % npm install
then pod install
and xcode build and then again have the issue same issue

frank haven
#

Hi @hot swallow looks like you didn't delete Podfile.lock file ?

hot swallow
#

cd ios
pod deintegrate
pod install

#

is right or delete again a podfile.lock?

frank haven
#

delete Podfile.lock file and run pod install

hot swallow
#

iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
Undefined symbols for architecture x86_64:
"_GooglePayButtonCls", referenced from:
_RCTThirdPartyFabricComponentsProvider in libReact-RCTFabric.a41
ld: symbol(s) not found for architecture x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

#

again same issue after doing all these things

frank haven
#

Hmm, can you share a sample project that I can run and reproduce the problem?

hot swallow
#

grep -r "GooglePayButtonCls" node_modules/

node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h:Class<RCTComponentViewProtocol> GooglePayButtonCls(void) attribute((used)); // 4
node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm: {"GooglePayButton", GooglePayButtonCls}, // 4

#

i found googlepaybutton on search

#

I'm trying to do this now. If it works, I'll let you know; if there's any issue, I'll inform you again.
βœ… Option 1: Disable the New Architecture (Most Reliable)
If you're not specifically using the New Architecture (Fabric + TurboModules), disable it:

πŸ“ Edit ios/Podfile:
Make sure this line is false:

ruby
Copy
Edit
use_frameworks! :linkage => :static
config = use_native_modules!

Disable New Architecture

flags = get_default_flags()
flags[:fabric_enabled] = false
flags[:hermes_enabled] = true # or false, based on your setup
πŸ“ Also, in react-native.config.js:
js
Copy
Edit
module.exports = {
experimental: {
newArchitecture: false,
},
};
Then clean and rebuild:

bash
Copy
Edit
cd ios
rm -rf Pods Podfile.lock build
pod install
cd ..
npx react-native clean
npx react-native run-ios

hot swallow
#

same issue occur are you availbe for a zoom meeting to check the issue

tired parrotBOT
frank haven
#

No we don't have zoom option

#

Can I recommend you to write in with a sample project to replicate the issue?

tired parrotBOT
#

Hello @hot swallow, we have sent you a direct message, please check it at https://discord.com/channels/@me/1372845667311026268

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.