# No able to add a new card using react-native-square-in-app-payments using prod and iOS simulator

**URL:** <https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060>\
**Category:** Questions\
**Created:** [October 26, 2021, 5:30pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060 "2021-10-26T17:30:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [October 26, 2021, 5:30pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/1 "2021-10-26T17:30:04Z")

</div>

I’m having issues to test in iOS simulator using production,

 ![Simulator Screen Shot - iPhone 11 Pro Max - 2021-10-26 at 11.39.43](https://global.discourse-cdn.com/square/original/1X/ced273c42ecc9cc735aa0f06c4433c8d370af87b.jpeg)  
This is when I tried to add a new card using -SQIPCardEntry.startCardEntryFlow and I got this error  
“Error, something went wrong please contact the developer of this application and provide them with this error code: unexpected”

I’m using react native “react-native-square-in-app-payments”: “^1.6.0”, ios target - platform :ios, ‘12.0’  
this just happens just in the simulator on the device works fine,  
is anybody experience this error?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 26, 2021, 5:51pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/2 "2021-10-26T17:51:40Z")

</div>

👋 What is the error that is showing in your [API Logs](https://developer.squareup.com/docs/get-started/view-log)? 🙂

---

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [October 27, 2021, 1:18pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/3 "2021-10-27T13:18:41Z")

</div>

Bryan Thanks for your prompt response, There is nothing in the logs yet I’m not calling to the endpoint to attach a payment method to the customer in square, I’m trying to generate cardNonce using “react-native-square-in-app-payments" which is using square SDK in the client.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 27, 2021, 4:57pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/4 "2021-10-27T16:57:22Z")

</div>

What’s your application Id and what currency are you trying to charge in?

---

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [October 28, 2021, 1:07pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/5 "2021-10-28T13:07:07Z")

</div>

this is my application ID sq0idp-odgsWWzmgLDUgMOzHrOXKg

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 28, 2021, 5:18pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/6 "2021-10-28T17:18:20Z")

</div>

Are you getting this error with the emulator or is it loaded on the device. Also is there any terminal errors with more information?

---

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [October 29, 2021, 8:10pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/7 "2021-10-29T20:10:56Z")

</div>

> [@Bryan-Square](#):
>
> lator or is it loaded on the device

just with iOS simulator, this is what I can see in the logs

what I can see is  
**2021-10-29 16:01:21.880997-0400 APP[6099:3926110] Can’t find keyplane that supports type 4 for keyboard iPhone-PortraitTruffle-NumberPad; using 25901\_PortraitTruffle\_iPhone-Simple-Pad\_Default**

**2021-10-29 16:01:26.448652-0400 APP [6099:3936376] Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery**

**2021-10-29 16:01:26.448871-0400 APP [6099:3936376] Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery**

**2021-10-29 16:01:42.306644-0400 APP[6099:3926110] Can’t find keyplane that supports type 4 for keyboard iPhone-PortraitTruffle-NumberPad; using 25901\_PortraitTruffle\_iPhone-Simple-Pad\_Default**

**2021-10-29 16:03:28.899169-0400 APP[6099:3939103] Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery**

**2021-10-29 16:03:28.899561-0400 APP[6099:3939103] Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery**

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 1, 2021, 3:32pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/8 "2021-11-01T15:32:00Z")

</div>

Is the device that you are using one of the new M1 Mac’s?

---

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [November 2, 2021, 3:47pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/9 "2021-11-02T15:47:54Z")

</div>

No, I’m not using M1 Mac

find my react native info

> System:  
> OS: macOS 11.4  
> CPU: (16) x64 Intel(R) Core™ i9-9880H CPU @ 2.30GHz  
> Memory: 1.33 GB / 16.00 GB  
> Shell: 5.8 - /bin/zsh  
> Binaries:  
> Node: 14.17.6 - /usr/local/bin/node  
> Yarn: Not Found  
> npm: 8.0.0 - /usr/local/bin/npm  
> Watchman: 2021.06.07.00 - /usr/local/bin/watchman  
> Managers:  
> CocoaPods: 1.10.2 - /usr/local/bin/pod  
> SDKs:  
> iOS SDK:  
> Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0  
> Android SDK:  
> API Levels: 27, 28, 29, 30  
> Build Tools: 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.2  
> System Images: android-26 | Google APIs Intel x86 Atom\_64, android-27 | Intel x86 Atom\_64, android-28 | Intel x86 Atom\_64, android-28 | Google APIs Intel x86 Atom\_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom\_64, android-28 | Google X86\_ARM Intel x86 Atom, android-29 | Google APIs Intel x86 Atom\_64, android-30 | Google APIs Intel x86 Atom\_64  
> Android NDK: Not Found  
> IDEs:  
> Android Studio: 4.2.2 AI-201.8743.12.41.6953283  
> Xcode: 13.0/13A233 - /usr/bin/xcodebuild  
> Languages:  
> Java: 1.8.0\_292 - /usr/bin/javac  
> npmPackages:  
> @react-native-community/cli: Not Found  
> react: 17.0.2 =\> 17.0.2  
> react-native: 0.66.0 =\> 0.66.0  
> react-native-macos: Not Found  
> npmGlobalPackages:  
> _react-native_: Not Found

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 2, 2021, 10:50pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/10 "2021-11-02T22:50:29Z")

</div>

@Janet We haven’t been able to replicate this however we notice that you are running on 1.6.0 if you update to 1.7.0 do you see any improvement?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 3, 2021, 12:16am UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/11 "2021-11-03T00:16:18Z")

</div>

Also [there was an issue for flutter IAP plugin related to targeting certain simulator builds on an M1 mac](https://github.com/square/in-app-payments-flutter-plugin/blob/master/doc/troubleshooting.md#i-upgraded-to-flutter-250-and-i-get-a-linker-error-on-mac). We are wondering if aspects of it are still related, like excluding targeting arm64 simulator?

---

<div class="post-metadata">

**Author:** ![Janet](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Janet](https://developer.squareup.com/forums/u/Janet)\
**Post date:** [November 3, 2021, 1:19pm UTC](https://developer.squareup.com/forums/t/no-able-to-add-a-new-card-using-react-native-square-in-app-payments-using-prod-and-ios-simulator/4060/12 "2021-11-03T13:19:40Z")

</div>

yes its only related to arm64 simulator, I’ll try to upgrade the SDK and see if that works, Thanks
