Square In-App payment SDK for flutter ios not working

While running Square In-App payment SDK for Flutter on iOS, I am getting an “error launching application on iPhone X” However, the same code works perfectly on Android. I also included the new script recommended on the forum still I am not able to launch the application.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

https://developer.squareup.com/docs/in-app-payments-sdk/quick-start

Additional Documentation

https://developer.squareup.com/docs/in-app-payments-sdk/quick-start/start
https://developer.squareup.com/docs/reader-sdk/flutter
https://developer.squareup.com/docs/in-app-payments-sdk/quick-start/generate-token

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

This error might be due to a misconfiguration in your iOS setup. Here are a few things you can check:

  1. Ensure that you have set your Square application ID correctly in your iOS project. This should be done in your AppDelegate.swift file.

  2. Make sure that your deployment target for your application is iOS 10.0 or later as the Square In-App Payments SDK requires this.

  3. Check if you have correctly added the In-App Payments SDK to your iOS project. This involves adding the necessary dependencies and configuring your project to use them.

  4. Verify that your application supports all necessary orientations. The In-App Payments SDK supports all orientations on the iPad, but only supports portrait orientations on the iPhone.

If you’ve checked all of these and are still experiencing issues, it might be helpful to look at any error messages you’re receiving in more detail, as they may provide more insight into what’s going wrong.

This answer was reviewed by @Bryan-Square.