Closed AndrewBordin closed 9 months ago
Facing the same issue, it seems like the documentation hasn't been updated for ages. It is also mentioned to link the library with react native link command which is also deprecated. Also can you let me know where I should place the new run script as that also not mentioned in the documentation, is it okay if I place it as the last build phase?
@talha-irshad-kodexo
Please follow below steps to add the new run script:
1) In the Build Phases tab for your application target, click the + button at the top of the pane. 2) Select New Run Script Phase. 3) Paste the following into the editor panel of the new run script: FRAMEWORKS="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" "${FRAMEWORKS}/SquareInAppPaymentsSDK.framework/setup"
@talha-irshad-kodexo So long as the new run script is placed below the embed frameworks step you should be good. Placing it at the bottom will work.
@AndrewBordin @CharmisG I am facing another error, I have created a different issue, I would really appreciate it if you guys could help me out in that issue
@CharmisG why was this issue closed?
@AndrewBordin Are you still facing same issue ??
@CharmisG Yes, the issue of installing the library using the Getting Started guide still fails, as you get this error:
dyld[43511]: Library not loaded: @rpath/SquareBuyerVerificationSDK.framework/SquareBuyerVerificationSDK
It will only work if you install the In-App Payments SDK manually.
@CharmisG any update? Can you re-open the issue?
@AndrewBordin Have you followed this below step ? https://github.com/square/in-app-payments-react-native-plugin/blob/master/docs/get-started.md#step-3b-add-the-in-app-payments-sdk-to-your-ios-project-with-cocoapods
I'm also having this issue and I've tried everything I can find thus far:
All on a fresh project running RN 0.72.4, cocoapods 1.12:
nuked everything ( node_modules, package-lock.json, ios/Pods, ios/build, podfile.lock ) then reinstalled (npm i, pod install).
Manuel install following this.
I'm at a lost. Anything help is appreciated.
@Huynie Can you please tell me which iOS version you are using?
@CharmisG
I've tried it on IOS version: 12.0, 12.4, 13.4, 14.0, and 16.4.
I'm also having this error, can anyone help?
I'm also having this issue and I've tried everything I can find thus far:
All on a fresh project running RN 0.72.4, cocoapods 1.12:
- nuked everything ( node_modules, package-lock.json, ios/Pods, ios/build, podfile.lock ) then reinstalled (npm i, pod install).
- Manuel install following this.
I'm at a lost. Anything help is appreciated.
What error are you running into when installing the sdk manually?
i have added it, thank you very much <3 Thanks& regards, Nguyen Hoang Thach
Vào Th 4, 20 thg 9, 2023 vào lúc 21:24 Andrew @.***> đã viết:
I'm also having this issue and I've tried everything I can find thus far:
All on a fresh project running RN 0.72.4, cocoapods 1.12:
- nuked everything ( node_modules, package-lock.json, ios/Pods, ios/build, podfile.lock ) then reinstalled (npm i, pod install).
- Manuel install following this https://developer.squareup.com/docs/in-app-payments-sdk/installation#option-3-install-the-in-app-payments-sdk-manually .
I'm at a lost. Anything help is appreciated.
What error are you running into when installing the sdk manually?
— Reply to this email directly, view it on GitHub https://github.com/square/in-app-payments-react-native-plugin/issues/217#issuecomment-1727838896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTODXI55WYMT6JGMKABOQ3X3L4BDANCNFSM6AAAAAA3LUA2MM . You are receiving this because you were mentioned.Message ID: @.*** com>
but ios 13 crash, do you have this error Thanks& regards, Nguyen Hoang Thach
Vào Th 4, 20 thg 9, 2023 vào lúc 21:24 Andrew @.***> đã viết:
I'm also having this issue and I've tried everything I can find thus far:
All on a fresh project running RN 0.72.4, cocoapods 1.12:
- nuked everything ( node_modules, package-lock.json, ios/Pods, ios/build, podfile.lock ) then reinstalled (npm i, pod install).
- Manuel install following this https://developer.squareup.com/docs/in-app-payments-sdk/installation#option-3-install-the-in-app-payments-sdk-manually .
I'm at a lost. Anything help is appreciated.
What error are you running into when installing the sdk manually?
— Reply to this email directly, view it on GitHub https://github.com/square/in-app-payments-react-native-plugin/issues/217#issuecomment-1727838896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTODXI55WYMT6JGMKABOQ3X3L4BDANCNFSM6AAAAAA3LUA2MM . You are receiving this because you were mentioned.Message ID: @.*** com>
I'm still having issues getting my app to build from installing this through cocoapods and manually. I've tried it on IOS 15.0 all the way up to 17.0 with no luck.
I've even tried the react-native-in-app-payments-quickstart example project and got as far as building the app, but the app crashes upon launch.
Any help would be appreciated.
Describe the issue
I encountered an error when installing this plugin at build time after following the getting started guide. The issue I received at build time was as follows:
After getting this issue in my own app, I built the starter app as well and ran into the same error. There seems to be some issue with installing the framework through cocoapods, specifically the SquareBuyerVerificationSDK. I am using cocoapods verison
1.11.3
and react-native verison0.72.3
.I did end up fixing the error by manually installing the In-App Payments SDK: https://developer.squareup.com/docs/in-app-payments-sdk/installation#option-3-install-the-in-app-payments-sdk-manually
As well as embedding both frameworks manually as well.
To Reproduce
Steps to reproduce the issue:
Follow the getting started guide for iOS and install the sdk with cocoapods.
Expected behavior
The app builds.
Environment (please complete the following information):