iosxcodesegment-io

Installing the segment-iOS analytics-iOS in xcode manually


I am trying to add analytics-iOS manually by directly adding the Analytics folder to the project making it as a group, after adding when I try to build the project I get error as "Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in SEGStoreKitTracker.o
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in SEGStoreKitTracker.o " 

and other 6 errors


Solution

  • I was able to solve this. There was a dependency on StoreKit framework which i had to add in Link Binaries with Libraries in Build Phase.