KevinGong2013 / Printer

Swift ticket printer framework for ESC/POS-compatible thermal printers.
Apache License 2.0
147 stars 73 forks source link

Type 'Block' has no member 'dividing' #11

Closed RobertoPanzera closed 5 years ago

RobertoPanzera commented 5 years ago

Hi I wanted to use your library but it doesn't work, I took the code from the example and I get this error: var receipt = Receipt( .dividing, Type 'Block' has no member 'dividing' .qr("Icey.Liao"), .dividing )

KevinGong2013 commented 5 years ago

Printer framework not build ?

RobertoPanzera commented 5 years ago

I added this line to the pod file: pod 'Printer', '~> 2.0'

KevinGong2013 commented 5 years ago

pod 'Printer', :branch => 'master'

RobertoPanzera commented 5 years ago

with this: "pod 'Printer', :branch => 'master'" i have this error: "[!] Unknown external source parameters for Printer: {:branch=>"master"}"

if I write this in pod file: "pod 'Printer', :git => 'https://github.com/KevinGong2013/Printer.git', :branch => 'master'" pod install work and have this message: "Installing Printer 2.0.5 (was 2.0.3)"

but I have error in xcode: "No such module 'Printer'" in Viewcontroller and "Use of unresolved identifier 'CentralManagerDelegate'; did you mean 'CBCentralManagerDelegate'?" in Printer folder

KevinGong2013 commented 5 years ago

new version released.