ivk1800 / tdlib-dart

MIT License
19 stars 12 forks source link

Issue with iOS and libtdjson.dylib #22

Closed rajin-h closed 1 month ago

rajin-h commented 1 month ago

There seems to be an issue when I try to include the libtdjson.dylib for iOS. It works perfectly on MacOS when I follow the steps in the README and link the file to the project via XCode.

Following the same steps for iOS, I firstly notice that there isn't an App Sandbox capability which i can configure in the Signing & Capabilities section of the target. Secondly, when I try to launch the Flutter app in iOS I get the following:

The following ArgumentError was thrown while handling a gesture:
Invalid argument(s): Failed to lookup symbol 'td_create_client_id': dlsym(RTLD_DEFAULT, td_create_client_id): symbol not found

Screenshot 2024-05-13 at 3 24 20 pm Screenshot 2024-05-13 at 3 24 35 pm Screenshot 2024-05-13 at 3 24 51 pm Screenshot 2024-05-13 at 3 25 14 pm Screenshot 2024-05-13 at 3 25 29 pm

rajin-h commented 1 month ago

Fixed this issue 👍 was not working on iOS sim because it was x86 and the dynamic lib was built for arm64.