Skip to content
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

Support iOS and MacOS platforms #11

Open
wajahat414 opened this issue Sep 28, 2022 · 21 comments · May be fixed by #27
Open

Support iOS and MacOS platforms #11

wajahat414 opened this issue Sep 28, 2022 · 21 comments · May be fixed by #27

Comments

@wajahat414
Copy link
Contributor

image

@enwi
Copy link
Owner

enwi commented Sep 28, 2022

Did you put a shared library binary next to your executable?

@wajahat414
Copy link
Contributor Author

As we identified the problem was with different Api level, so should we report an issue on the zeromq library repo?

@wajahat414
Copy link
Contributor Author

It is Working uptil Api 32 Android 12, But Not on Api 33 Android 13

@wajahat414
Copy link
Contributor Author

Also After Adding IOS platform when I Run giving the same error, could not load zmq

@enwi
Copy link
Owner

enwi commented Sep 29, 2022

As we identified the problem was with different Api level, so should we report an issue on the zeromq library repo?

I don't think it has to do sth. with the ZeroMQ library per se. More likely that the binaries I am supplying are built with Android NDK r21e

@enwi
Copy link
Owner

enwi commented Sep 29, 2022

Also After Adding IOS platform when I Run giving the same error, could not load zmq

Have you built ZeroMQ binaries for iOS?

@wajahat414
Copy link
Contributor Author

yes r21e does not support latest version yet maybe thats why

@wajahat414
Copy link
Contributor Author

Screen Shot 2022-09-30 at 5 32 30 PM

https://docs.flutter.dev/development/platform-integration/ios/c-interop

For IOS I dont really understood what does this mean, I replaced the functiion DynamicLibrary.open with DynamicLibrary.process for platform IOS but it gave me errors

Screen Shot 2022-09-30 at 5 35 19 PM

@enwi
Copy link
Owner

enwi commented Sep 30, 2022

yes r21e does not support latest version yet maybe thats why

Then I will need to rebuild the android libraries

@enwi
Copy link
Owner

enwi commented Sep 30, 2022

Screen Shot 2022-09-30 at 5 32 30 PM

https://docs.flutter.dev/development/platform-integration/ios/c-interop

For IOS I dont really understood what does this mean, I replaced the functiion DynamicLibrary.open with DynamicLibrary.process for platform IOS but it gave me errors

On iOS and MacOS calling DynamicLibrary.process() is only a piece of the cake. We also need a .platform version of the libzmq

@wajahat414
Copy link
Contributor Author

But I wan to make it work for IOS
, whn I try
Screen Shot 2022-10-03 at 10 30 06 AM
to compile zmq.a to xcframework I am getting this error,

@enwi enwi changed the title I am using Mac Os for Flutter development for both Android and Ios, Although I have add dependency In Support iOS and MacOS platforms Oct 3, 2022
@enwi
Copy link
Owner

enwi commented Oct 3, 2022

@wajahat414
Copy link
Contributor Author

Yeah I read The documentation these instructions are for MAc OS support not IOS, for IIOS I have to creata .framework from zmq.a

@wajahat414
Copy link
Contributor Author

for MAcOS it is simple can be done later , IOS is the main problem here

@wajahat414
Copy link
Contributor Author

After updating binaries for android now it supports latest API level

@wajahat414
Copy link
Contributor Author

But there is an error
Screen Shot 2022-10-05 at 1 57 45 PM
in the example when you click the send button twice without first starting the server

@wajahat414
Copy link
Contributor Author

and please merge changes in the main branch , and add a new version to the package so the changes reflect in the package.

@enwi
Copy link
Owner

enwi commented Oct 7, 2022

and please merge changes in the main branch , and add a new version to the package so the changes reflect in the package.

I want to test it first

@wajahat414
Copy link
Contributor Author

I tried adding support for ios platform but turned out the the version you were using of zmq was different

@wajahat414
Copy link
Contributor Author

IOS-platform Done

@enwi enwi linked a pull request Oct 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants