Avery246813579 / react-native-brother-printers

A react native library to interact with brother printers
5 stars 14 forks source link

How to delete simulator architectures (i386, x86_64) #6

Closed Abdarrahmane-NEINE closed 2 years ago

Abdarrahmane-NEINE commented 2 years ago

Hello @Avery246813579

Hope you are fine,

I have a project for iOS using this library and every thing works in the simulator (I can discover and printing with the printer), but if try to run it in a reel device it is not works.

And when I look to the Brother support (https://support.brother.com/g/s/es/htmldoc/mobilesdk/guide/getting-started/getting-started-ios.html ), it is noticed that I should delete the simulator architectures by running the following commands :

Notes when releasing to the App Store
When you submit your App including BRLMPrinterKit.framework to App Store, you have to delete simulator architectures (i386, x86_64) by running following commands :
$ cp -v [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit [your backup directory]/BRLMPrinterKit.framework/BRLMPrinterKit
$ lipo -remove i386 [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit -o [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit
$ lipo -remove x86_64 [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit -o [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit

You can check if the simulator architectures (i386, x86_64) are deleted from BRLMPrinterKit.framework by running following commands : 
$ lipo -info [your current directory]/BRLMPrinterKit.framework/BRLMPrinterKit

My problem is that the react-native-brother-printers haven't the same directory like indicated in this way, so I don't know which directory I should run those commands and when ?

This is the directory of the library: testPrinter/node_modules/react-native-brother-printers

Do you have any idea to help me ?