This directory contains a sample project that implements the ShopifyCheckoutSheetKit library.
The project directory contains a Storefront.xcconfig.example file. Simply rename it to Storefront.xcconfig and update the contained values to match your Shopify storefront.
This project demonstrates how to use the Mobile Buy SDK in conjunction with the ShopifyCheckoutSheetKit library.
- Copy the example config file:
cp Samples/MobileBuyIntegration/Storefront.xcconfig.example Samples/MobileBuyIntegration/Storefront.xcconfig- Fill in
STOREFRONT_DOMAINand other keys inStorefront.xcconfigwith your store values. - Build & run — entitlements are auto-generated via a build PreAction (no manual script step needed).
If the build PreAction fails, Xcode will show "exited with status code 1". Click that line to open the build log — the script output at the bottom will indicate the issue.
| Build Log Output | Cause | Fix |
|---|---|---|
grep: Storefront.xcconfig: No such file or directory |
Storefront.xcconfig file is missing |
Copy .xcconfig.example to Storefront.xcconfig and fill in values |
Error: STOREFRONT_DOMAIN is not set in Storefront.xcconfig |
Storefront.xcconfig exists but STOREFRONT_DOMAIN is blank |
Set your store's domain in the config |
| Associated domains not working at runtime | Domain value is incorrect | Verify domain matches your Shopify store (no https:// prefix) |
This project demonstrates integrating Shopify's Accelerated Checkouts, an all in one solution to accelerated checkouts via Apple Pay and Shop Pay.
To get started:
- Copy the settings file:
cp Samples/ShopifyAcceleratedCheckouts/Storefront.xcconfig.example Samples/ShopifyAcceleratedCheckouts/Storefront.xcconfig- Modify each of the keys in
Storefront.xcconfigto match the value in your store settings.