-
Notifications
You must be signed in to change notification settings - Fork 294
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
App Crash on Launch After Upgrading Braintree SDK from 5.2 to 6.23.2 #1396
Comments
Hello, there is a known issue with 6.23.2 which was addressed in 6.23.3 |
@KunJeongPark I have upgraded to 6.23.3 but the error is still same at run time, |
Getting the same issue.
I have an xcframework which uses Braintree as a dependency/cocoapods. The app is responsible to provide the pod to my framework. But after migration to 6.23.3 I am getting the above issue. Also note that when I migrated, all the BTVenmoDriver class names were replaced by BTVenmoClient which is the exact name being printed in the console. Please assist at the earliest ! |
+1, found the same issue at my side too and it is blocking my current release |
Below code contains the error @KunJeongPark
|
Thank you for the further information. For @himandhawan001 and @nrajput05, if it's not the same issue, if we have more information regarding which version worked for you, and which one you are having trouble with now, it would help us identify the issue. And also which Xcode version, iOS version you are testing with. There have been a lot of updates between 5.2 => 6.23.2 reported by Navdeep, so I am trying to figure out which change, from which version is causing this issue by getting that info from both of you. I think it might be related to our switch to static version of the data collector in Braintree SDK version 5.8. . Looking at We will investigate this more thoroughly next week. We are back to work hours next Tuesday and we will investigate the issue. Thank you for your patience. |
@KunJeongPark To address your questions:
|
I was not able to recreate this issue with Xcode 15.3 Steps I took using our SDK version 6.23.3 and Xcode 15.3:
Note: I used pod install with Podfiles to manage dependencies. |
@KunJeongPark I have already tried reinstalling the pods and cleaning the build folder, but the issue persists. I have tested the project on Xcode 15.3, and the problem still occurs on my end. It would be great if you could try running my demo project as well, which is quite small and easy to set up. This way, you can reproduce the issue on your machine. Additionally, we are seeing the same error when using PayPal (without Venmo), specifically when accessing BTPayPalVaultRequest. The issue occurs if the following line is included: When we comment this line, the project works fine. The overall error that we get in the console is
|
@Navdeep2020 Thank you for providing me with the project. So just to clarify, you had this same issue with our SDK 6.20.0, 6.23.2, 6.23.3 and last working I will continue to investigate this with my team next week. |
Hi @KunJeongPark 5.21 was the last working version for us. |
We were able to successfully compile your app by adding these lines in the Podfile of your app project.
There must be something different about how we built our frameworks because I couldn't recreate the crash on my end building project similar to yours. But the above lines fixed your sample project so it doesn't crash. |
Hey all - Just checking to see if the solution @KunJeongPark provided resolved the issue you all were seeing. |
Yes, it worked, @KunJeongPark . However, our SDK, which includes Braintree 6.23.2, is used by company billers, meaning all billers would need to update their pod files on the app side. Could you implement this change on your end to prevent each biller from having to do it manually? |
Hey @Navdeep2020 - You should be able to set this up in the framework you are building that wraps the Braintree SDK. On the SDK side we are setting this value to true, but since you are building a framework that wraps the Braintree SDK you'd need to set it at that level as well. You may find this cocoapods GitHub issue helpful as it lists some solutions for building frameworks with dependencies with this flag. |
Braintree SDK Version
6.23.2
Environment
Both
Xcode Version
15.4
OS Version & Device
ios 16
Integration type
CocoaPods
Development Processor
Apple Silicon (M-series chips)
Describe the bug
I recently updated the Braintree SDK in my iOS project from version 5.21 to 6.23.2. After making the necessary changes in the Podfile, AppDelegate, and other integration points, the application worked fine during the initial testing.
However, after integrating the SDK into our Customer Portal (CP) and completing all required updates (including pod updates and version upgrades), the app crashes on the launch screen.
Error in console is:
To reproduce
Steps to Reproduce:
Expected behavior
The app should not crash.
Bit confused that line 28 is correct or not.
Screenshots
No response
The text was updated successfully, but these errors were encountered: