-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Lexical or Preprocessor Issue (Xcode): Redefinition of module 'image_picker_ios' #148307
Comments
@darshankawar, Thank you for your response. When I downgraded to version 3.19.6, I encountered the same issue. However, when I further downgraded to version 3.19.5, the problem was resolved and it functioned correctly. |
This might have been caused by the Swift Package Manager migration done in |
I wasn't able to reproduce this using Xcode 15.0 and newer. I suspect this only happens on Xcode 14. Could you try the following workarounds:
Please let us know which of these options, if any, fix this issue. That'll help us understand this build error better. |
@hectorvillag @rabinacharya11 Could you try the workarounds listed above?
|
this is my temporary solution
OR keep the default in pubspec.yaml
and add this
|
Can anyone confirm if upgrading to Xcode 15 resolves the issue? |
Running Xcode build... Could not build the application for the simulator. Has anyone resolve the similar problem here |
Hi, Error: I think it is caused by auto update for inner libraries. If you add image_picker_ios-0.8.10+1 as dependency_overrides the problem will fixed. |
How do you add that, because I am using flutter |
In pubsec.yaml file add this; |
…6740) Plugins converted to Swift Package Manager that use a modulemap seem to be having issues with there being a `module.modulemap`. As a temporary solution to unblock people, we'll remove the `module.modulemap` and Swift Package support (`Package.swift`). Temporary solution for flutter/flutter#148307.
Issue should be resolved with latest version of image_picker_ios (image_picker_ios-0.8.10+2). Try |
it works for me. Thanks |
Please let us know if anyone can reproduce this issue after using |
…lutter#6740) Plugins converted to Swift Package Manager that use a modulemap seem to be having issues with there being a `module.modulemap`. As a temporary solution to unblock people, we'll remove the `module.modulemap` and Swift Package support (`Package.swift`). Temporary solution for flutter/flutter#148307.
Adds Swift Package Manager compatibility to `image_picker_ios`. The previous attempt, #6617, was partially reverted due to flutter/flutter#148307. This reland uses the new approach proposed in flutter/flutter#148572: the Swift Package Manager package does not have a `.modulemap`. As a result, the plugin no longer has a `.Test` submodule if using Swift Package Manager. Fixes flutter/flutter#146919.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
…lutter#6740) Plugins converted to Swift Package Manager that use a modulemap seem to be having issues with there being a `module.modulemap`. As a temporary solution to unblock people, we'll remove the `module.modulemap` and Swift Package support (`Package.swift`). Temporary solution for flutter/flutter#148307.
…er#6833) Adds Swift Package Manager compatibility to `image_picker_ios`. The previous attempt, flutter#6617, was partially reverted due to flutter/flutter#148307. This reland uses the new approach proposed in flutter/flutter#148572: the Swift Package Manager package does not have a `.modulemap`. As a result, the plugin no longer has a `.Test` submodule if using Swift Package Manager. Fixes flutter/flutter#146919.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
Expected results
Application build successfully and opening the app
Actual results
Lexical or Preprocessor Issue (Xcode): Redefinition of module 'image_picker_ios' /Users/user/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.11+1/ios/image_picker_ios/Sources/image_picker_ios/include/module.modulemap:0:7
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: