# M1 Mac/ ARM: SquareReaderSDK for iOS/iPadsOS Xcode Projects to compile on M1 Macs

**URL:** <https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037>\
**Category:** Questions\
**Tags:** point-of-sale-api, square-reader\
**Created:** [May 23, 2022, 5:26pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037 "2022-05-23T17:26:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamchandra](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@iamchandra](https://developer.squareup.com/forums/u/iamchandra)\
**Post date:** [May 23, 2022, 5:26pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/1 "2022-05-23T17:26:47Z")

</div>

To integrate `SquareReaderSDK` into our iOS project, this is how we download and integrate and it compiles/run on Intel Macs and our target devices - iOS/iPadOS as expected.

`ruby <(curl https://connect.squareup.com/readersdk-installer) install --app-id $APP_ID --repo-password $REPO_PWD`

We are migrating to M1 macs and we see the below errors.

```auto
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SQRDTender", referenced from:
      objc-class-ref in SquareService.o
  "_OBJC_CLASS_$_SQRDReaderSDK", referenced from:
      objc-class-ref in SquareService.o
  "_OBJC_CLASS_$_SQRDReaderSettingsController", referenced from:
      objc-class-ref in SquareService.o
  "_OBJC_CLASS_$_SQRDMoney", referenced from:
      objc-class-ref in SquareService.o
  "_OBJC_CLASS_$_SQRDCheckoutController", referenced from:
      objc-class-ref in SquareService.o
  "_OBJC_CLASS_$_SQRDCheckoutParameters", referenced from:
      objc-class-ref in SquareService.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

```

Is there a different SDK that targets both Intel and ARM/M1 archs?

---

<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:** [May 23, 2022, 6:25pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/2 "2022-05-23T18:25:41Z")

</div>

👋 Unfortunately at this time M1 support isn’t currently available. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![emmett.deen](https://avatars.discourse-cdn.com/v4/letter/e/258eb7/32.png) [@emmett.deen](https://developer.squareup.com/forums/u/emmett.deen)\
**Post date:** [January 11, 2023, 3:34pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/3 "2023-01-11T15:34:37Z")

</div>

I was able to get this to build on my M1 Macbook Pro using this workaround.

Step 1.  
Add `-target x86_64-apple-darwin` to Other C Flags in Xcode

Step 2.  
Add arm64 to excluded frameworks in Xcode

---

<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:** [January 11, 2023, 6:05pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/4 "2023-01-11T18:05:47Z")

</div>

Great! We did start to support M1 devices shortly after this post in version [1.6.0 of Reader SDK](https://developer.squareup.com/docs/changelog/mobile-logs/2022-06-17). 🙂

---

<div class="post-metadata">

**Author:** ![iamchandra](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@iamchandra](https://developer.squareup.com/forums/u/iamchandra)\
**Post date:** [January 23, 2023, 11:00pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/5 "2023-01-23T23:00:26Z")

</div>

Hello Bryan,

M1 MBP does not show my reader (Model: SPC1-01) in the list of available Bluetooth devices when scanned. I believe it should be like any other bluetooth device or just similar to how we connect to iPhone or iPad.

Do you have instructions please?

Thank you.

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [January 24, 2023, 7:48pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/6 "2023-01-24T19:48:05Z")

</div>

Hey @iamchandra! Are you attempting to connect the Reader directly to your MBP? This topic is about compiling an Xcode project that uses Reader SDK, not connecting the device itself to the Mac. You’ll need to connect the Reader to a mobile device 🙂

---

<div class="post-metadata">

**Author:** ![iamchandra](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@iamchandra](https://developer.squareup.com/forums/u/iamchandra)\
**Post date:** [January 24, 2023, 8:54pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/7 "2023-01-24T20:54:30Z")

</div>

Hello Josh,

Thank you for your reply.  
I understand the context. I am the original author of this thread.  
So, when the [change log mentioned that it supports Apple Chipset (M1)](https://developer.squareup.com/docs/changelog/mobile-logs/2022-06-17), does this only mean M1 iPads? Or, M1 macs too?

If shall I start different thread, please let me know.

Best!

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [January 24, 2023, 9:48pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/8 "2023-01-24T21:48:18Z")

</div>

Sorry about that! I misread and thought the poster above your last reply was the original author.

That change log includes M1 Macs, but only in the context of compiling a project with the Reader SDK framework on M1 Macs. The actual Reader hardware should be connected to a mobile device to test your application.

---

<div class="post-metadata">

**Author:** ![Mauliks](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mauliks](https://developer.squareup.com/forums/u/Mauliks)\
**Post date:** [September 6, 2023, 1:52pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/9 "2023-09-06T13:52:00Z")

</div>

@Bryan-Square Hi, any thoughts for M2 Mac? Getting below errors but I am able to compile and run not sure how. I have v1.6.9 installed.

 ![image](https://global.discourse-cdn.com/square/original/2X/9/9eb0c55d7bd424dfa72265eee89bf368cd126346.jpeg)

---

<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:** [September 6, 2023, 4:42pm UTC](https://developer.squareup.com/forums/t/m1-mac-arm-squarereadersdk-for-ios-ipadsos-xcode-projects-to-compile-on-m1-macs/6037/10 "2023-09-06T16:42:35Z")

</div>

Is this a new error for an M2? Were you not seeing this before? Also are there any other details in the error message? 🙂
