6 Replies Latest reply on Nov 19, 2015 6:50 AM by Beverly Vinson

    XCODE problems to pritn on Zebra Printer

    Joaquin vt9yxeuu1k1q08wiyyxonrcnf5nugeu,Flores Garcia

      I have iMZ320 Zebra printer, I downloed the sdk and the examples from Zebra page, the example works fine on Ipad and I can send to print.

      Now, I work on my project and I have this issue, I have one error when execute the line

      self.printer = [ZebraPrinterFactory getInstance:self.connection error:&error];

      This the error

      @"ZSDK_API_ERROR_DOMAIN" - code: 3  

      The line original to do the connection is

      self.connection = [[[MfiBtPrinterConnection alloc] initWithSerialNumber:self.connectivityViewController.bluetoothPrinterLabel.text] autorelease];

      But I don't have any


      So I change by

       EAAccessoryManager *manager = [EAAccessoryManager sharedAccessoryManager]; self.bluetoothPrinters = [[NSMutableArray alloc] initWithArray:manager.connectedAccessories]; EAAccessory *accessory = [self.bluetoothPrinters objectAtIndex:0]; NSString *printer = accessory.name; self.connection = [[MfiBtPrinterConnection alloc] initWithSerialNumber:printer];

      Any ideas?