-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automatically set the target membership from libBROTHERSDK.a to another_brother using COCOAPODS. #10
Comments
Hi @BentEngbers , Glad to hear you like another_brother and thank you for the update for the libBROTHERSDK install! I'll take a closer look at the changes once I have some time this weekend and will make the update. Note: If you are planning on releasing to the Apple Store, you probably want to use the the ios-no-type-b branch instead of the official pub.dev (See here for more info: #8 (comment) ) as it turns out the libBROTHERSDK.a does not meet the restrictions. libBROTHERSDK.a is only used for TypeB printers like RJ-2055WB (https://www.brother-usa.com/products/rj2055wb) so if you don't plan to target those printers and are planning to release to the store you can safely use the branch. Thanks again for the update and please don't hesitate to reach out if you run into any other issues or have any questions. |
Thanks for the info! |
Hi @BentEngbers , Thanks again for the script update. I gave it a try and it does in fact mark the membership however when I try to build the project it fails with the following error:
Reverting back to the default version and manually selecting the membership allows it to build correctly. Seems it will required a bit more investigation but definitely on the right track. I'll leave this issue open for now and post any findings. Thanks again! |
Hi @CodeMinion, Could the |
Hey @BentEngbers ! Thanks for reaching out about this. I believe the only changes that came in recently are the additional permissions in the manifest. I'll add those in the That said if you would like to make that change and submit a PR before then it will definitely be welcomed! Thanks again! |
Hi @CodeMinion, Could you update the Thanks in advance! |
@BentEngbers Did you ever solve that issue? I am running the code on a CI/CD server which does a fresh " pod install" each time. Thanks Peter |
I can confirm this issue is happening as well - in my CI/CD server, this is more or less breaking the iOS pipeline. @CodeMinion is the libBROTHERSDK.a strictly necessary - what about it is indispensable for the package? If I literally only want to use QL1110NWBc, can I strip it out? |
Hi @mikhael28 , Thanks for the question on this. As mentioned previously in this thread (#10 (comment)) that library is for support of the Type-B printers. If you are not looking to use a Type-B printer at all, then the recommended approach is to use the ios-no-type-b branch. Thanks again, |
I will take a look at the ios no type b branch! |
@BentEngbers you can refer to this for a workaround of sorts #70 |
Same issue, ios pipeline is broken and no workarounds seem to work for me. Any ideas how to solve this "the right way"? |
@koldoon I think the issue is that the Another Brother packages don't support arm64 virtualization - otherwise, you should be able to programatically link them using something like this in the Podfile. Perhaps it's worth taking a look at newer versions of the Brother SDK, to see if that is now supported on iOS?
|
@CodeMinion any word on updated drivers from Brother potentially fixing this issue? |
@mikhael28 Using similar scripts in podfile I indeed get that check set (another_brother membership) but still have build issues: it says that lib BROTHERSDK is not found. If I re-set that check manually in XCode - everything works fine if I build in XCode and if I build using flutter tools. BUT, that option is not being saved in xproject configuration file! i don't know actually where it is being saved, so that when I try to build project in azure CI/CD pipelines I got all same errors. |
@koldoon yeah, I think you are getting close. How can we save that option in the xproject configuration file. Maybe if you unblock all the config in the .gitignore, you can see allllll the config changes that are being made? Right now, lots of stuff is being hidden I would imagine by our gitignore options. |
Hey guys, I made some tweaks and it works for me now. Maybe you can also try to give some feedback if it works for you too:
|
Yes it works!! I added your script and forced a pod install in Android Studio and rebuild the ios project. Also unchecked the Target Membership in Xcode to be sure the script would do its job! It adds it now automatically! Great job! Thanks a lot! |
I can verify this works for us too. Great job! |
@savs90 you are a legend! @CodeMinion you can likely add this to the official documentation, and close some of these issues! |
Hi @CodeMinion, Thanks for this awesome flutter library!
I had a lot of issues with manually setting the target membership from libBROTHERSDK.a to another_brother.
So I added the following script inside the post_install part of the the podFile, to do it automatically!
(i modified it from here https://stackoverflow.com/a/61392674/15175952)
The whole post_install now looks like this:
Maybe you could add this to the documentation of this library?
The text was updated successfully, but these errors were encountered: