MythiCode / zebra_utlity

MIT License
6 stars 26 forks source link

ZabraUtility Build issue in IOS #4

Open bhaveshsimpos opened 3 years ago

bhaveshsimpos commented 3 years ago

I tried to run a new project importing this library in the pubspec.yaml ( zebrautility: ^0.0.38 ) and the project didn't compile. This is the error: Undefined symbols for architecture x86_64: "OBJC_CLASS$_EAAccessory", referenced from: objc-class-ref in zebrautility(Printer.o) "OBJC_CLASS$_EASession", referenced from: objc-class-ref in libZSDK_API.a(Zebra_EADSessionController.o) "OBJC_CLASS$_EAAccessoryManager", referenced from: objc-class-ref in libZSDK_API.a(MfiBtPrinterConnection.o) objc-class-ref in zebrautility(Printer.o) ld: symbol(s) not found for architecture x86_64

already added There is libZSDK_API.a file in the ios folder for this repose. Please open your Xcode project add manually this library to your Xcode.

but getting the issue please help

thanks in advance.

hrshs commented 3 years ago

Do you run your project in the simulator? You cannot run a project with Zebra libraries in the simulator.

bhaveshsimpos commented 3 years ago

Thanks for the answer @hrshs Yes I am trying to run in a simulator

Now I am trying to run on the real device it's working.

alcampospalacios commented 3 years ago

Any solutions to this problem?? I have the same issue on a real device.

elvissalabarria commented 3 years ago

After copying the .a file in the ios folder the error persists, any solution?

mfurkanyuceal commented 1 year ago

same problem

taosif7-dreamorbit commented 1 year ago

Thanks for the answer @hrshs Yes I am trying to run in a simulator

Now I am trying to run on the real device it's working.

Can you explain how did you add libZSDK_API.a file to your iOS project?