#muhammad-asim_unexpected
1 messages Β· Page 1 of 1 (latest)
π 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.
Hi there, can you share with me the crash log?
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
Can you provide the Symbolicated logs?
0 ToolBox.debug.dylib closure #1 in CardFieldManager.blur(_:) + 498
Can you upgrade to the latest version 0.46.0 and see if the same problem still happens?
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
Can you clear the project cache and try again?
yess i do ...
https://github.com/search?q=repo%3Astripe%2Fstripe-ios _GooglePayButtonCls&type=code I don't see GooglePayButtonCls in Stripe iOS's code case, is this symbol from other dependencies?
Not even I can use this at all.
Ah It's in the react-native SDK https://github.com/stripe/stripe-react-native/blob/c516473a108c1c0588dd7af941fb86e48a364188/ios/NewArch/GooglePayButtonComponentView.mm#L6
After update the react-native SDK. Did you do a pod install in your ios folder?
yess
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?
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
Hi @hot swallow looks like you didn't delete Podfile.lock file ?
delete Podfile.lock file and run pod install
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
Hmm, can you share a sample project that I can run and reproduce the problem?
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
same issue occur are you availbe for a zoom meeting to check the issue
No we don't have zoom option
Can I recommend you to write in with a sample project to replicate the issue?
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.