-
Notifications
You must be signed in to change notification settings - Fork 346
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
Flutter as module added file: media_kit: ERROR: No pubspec.lock was found: ENV["PWD"] = #2073
Comments
Hey @nikunjramiweave , there isn't a way for eg: while running the pod install command, append the env variable. PWD_FALLBACK=$HOME/StudioProjects/path_to_flutter_module pod install |
Hey @nikunjramiweave , It works for me in the sample app that was linked in the original issue on media_kit. Can you share a small sample app where i can try to replicate this issue for you? Thanks |
Hey Sahil,
Due to that media-kit <https://github.com/media-kit/media-kit> plugin issue I have tried to update stream chat plugin to 7.2.0 so I am getting some other error.
Package stream_chat_flutter:ios references stream_chat_flutter:ios as the default plugin, but it does not provide an inline
implementation.
Ask the maintainers of stream_chat_flutter to either avoid referencing a default implementation via `platforms: ios:
default_package: stream_chat_flutter` or add an inline implementation to stream_chat_flutter via `platforms: ios:` `pluginClass` or
`dartPluginClass`.
… On 07-Jan-2025, at 4:08 PM, Sahil Kumar ***@***.***> wrote:
Hey @nikunjramiweave <https://www.google.com/url?q=https://github.com/nikunjramiweave&source=gmail-imap&ust=1736851103000000&usg=AOvVaw065nYpEwXqupnn28turovR> , It works for me in the sample app that was linked in the original issue on media_kit <https://www.google.com/url?q=https://github.com/weitsai/flutter_module_use_media_kit&source=gmail-imap&ust=1736851103000000&usg=AOvVaw14z7jyb1CiTIgYPFL5pSDk>. Can you share a small sample app where i can try to replicate this issue for you? Thanks
—
Reply to this email directly, view it on GitHub <https://www.google.com/url?q=https://github.com/GetStream/stream-chat-flutter/issues/2073%23issuecomment-2574951560&source=gmail-imap&ust=1736851103000000&usg=AOvVaw0x9nkj3KqAwrNLUV7TxZ5b>, or unsubscribe <https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/A23ZFFDTFG442VNGSDE3QX32JOVB3AVCNFSM6AAAAABUEUKAFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZUHE2TCNJWGA&source=gmail-imap&ust=1736851103000000&usg=AOvVaw1Qf3fldtL-OQ0mhpurdo32>.
You are receiving this because you were mentioned.
|
Hey @nikunjramiweave 👋 Mediakit was only used post 8.0.0+ in the Stream SDK. The error you mentioned for inline implementation has been solved in the 8.0+ version. The ENV error you are getting is due to the application not recognizing where the pubspec.lock file is located in the project. As such, this should be solved by correctly setting the ENV fallback as mentioned by @xsahil03x. The project used by him is located here and you can try the same over there as well. Let us know how it goes. Thanks. |
Hey @deven98 |
Hey @nikunjramiweave, I don't think setting env variables like this will work for you, it didn't worked for me either. What worked for me was when i set it in the PWD_FALLBACK=$HOME/StudioProjects/path_to_flutter_module pod install Screen.Recording.2025-01-08.at.15.04.15.mov |
Hey Sahil,
This is my zshrc file but not working.Do I need to do anything else
export PATH=/usr/local/bin:$PATH
export PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="$PATH:/Users/weave/Desktop/FlutterSDK/sdk/flutter/bin"
export PATH="$PATH:/Users/weave/Desktop/FlutterSDK/sdk/flutter/bin/cache/dart-sdk/bin"
export PATH="$PATH:/Users/weave/.pub-cache/bin"
export PATH="$PATH:/Users/weave/Library/Android/sdk/platform-tools/"
export PWD_FALLBACK="$PATH:/Users/weave/Desktop/Projects/weave/weave_flutter_module"
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
… On 08-Jan-2025, at 7:32 PM, Sahil Kumar ***@***.***> wrote:
Hey @nikunjramiweave <https://www.google.com/url?q=https://github.com/nikunjramiweave&source=gmail-imap&ust=1736949761000000&usg=AOvVaw21PDxLsnFJO8dr97yw48l6>, I don't think setting env variables like this will work for you, it didn't worked for me either. What worked for me was when i set it in the zshrc file or when i set it before running the pod install command like this below.
PWD_FALLBACK=$HOME/StudioProjects/path_to_flutter_module pod install
—
Reply to this email directly, view it on GitHub <https://www.google.com/url?q=https://github.com/GetStream/stream-chat-flutter/issues/2073%23issuecomment-2577747638&source=gmail-imap&ust=1736949761000000&usg=AOvVaw2_Vm514SFoKovdH2ydp87n>, or unsubscribe <https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/A23ZFFDNKTWXNKIZ2QDQXGT2JUVX3AVCNFSM6AAAAABUEUKAFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXG42DONRTHA&source=gmail-imap&ust=1736949761000000&usg=AOvVaw1ZtovBPv90DqfeYLqHBlcA>.
You are receiving this because you were mentioned.
|
@nikunjramiweave , can you try printing the env before running the command to check if it's properly set? Also make sure to save the file and open a new terminal instance. btw this is my zshrc file If this still doesn't work, can you share a sample project where we can reproduce it? Thanks |
@xsahil03x |
@nikunjramiweave , it was the same project that i was testing on. It might be something with your configurations. Screen.Recording.2025-01-09.at.12.06.34.mov |
Hi @nikunjramiweave, Since this is an issue with configuration and not the SDK, I am closing this issue. Sahil (@xsahil03x) has also posted substantial material on how to get this working. If you run into anything with the SDK itself, you can of course file a new issue here or with support and we can take a look. Thanks. |
@xsahil03x @deven98 Thanks pod install working fine but I am still unable to run the iOS project of my & sample project. |
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS
What version are you using?
stream_chat_flutter: 8.1.0
What happened?
[!] Failed to load 'media_kit_video' podspec:
[!] Invalid
media_kit_video.podspec
file: media_kit: ERROR: No pubspec.lock was found: ENV["PWD"] = "/Users/BIT/Desktop/Projects/BIT/mobile-ios".issue on media-kit : media-kit/media-kit#421
As per media-kit , the build script looks for the Flutter project's structure. Futter as module yet not in scope
Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: