Skip to content

[ios][release] GeneratedPluginRegistrant.m Module not found #43986

Closed
@nguyenhuutinh

Description

@nguyenhuutinh

Hi,
I can run flutter build ios, even can work with debug mode on devices
But when I want to release to store, Xcode cannot compile code.
Error: Module xxx not found
I delete it and got same error with the second module

Do you know why?

I use the latest version of Flutter and Xcode

Thanks

Activity

nguyenhuutinh

nguyenhuutinh commented on Nov 1, 2019

@nguyenhuutinh
Author

Screenshot 2019-11-01 at 10 42 34 PM

nguyenhuutinh

nguyenhuutinh commented on Nov 1, 2019

@nguyenhuutinh
Author

my fault
#41033

Sayed-Samy

Sayed-Samy commented on Jan 5, 2020

@Sayed-Samy

Did you find a solution ?

pratik-perpetualny

pratik-perpetualny commented on Jan 6, 2020

@pratik-perpetualny

I am also looking for a solution.

fliermanrw

fliermanrw commented on Jan 8, 2020

@fliermanrw

I would also like to know what solved the problem. I have the following error:

ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'location' not found

(and every next module when deleting location)

ehosseini

ehosseini commented on Jan 8, 2020

@ehosseini

I have got the same issue.

Kenoshen

Kenoshen commented on Jan 10, 2020

@Kenoshen

I may have found the answer from this comment:

#21989 (comment)

Seems like by opening up the project by double clicking Runner.xcworkspace instead of Runner.xcodeproj xcode can finally figure out where everything is. Even though you can still debug in an emulator and on a connected phone from the .xcodeproj file...

Seems strange that it would fix it. But I'm happy to have an Archived build now.

DavideBicego

DavideBicego commented on Jan 14, 2020

@DavideBicego

Opening the project with Runner.xcworkspace doesn't work for me!
Did anyone found a solution?

Kenoshen

Kenoshen commented on Jan 14, 2020

@Kenoshen

On top of trying the xcworkspace trick, previously, I had tried deleting the Podsfile.lock, cleaning the project, changing the Podsfile min version to 9, or something like that. So it is possible some combination of those things plus the xcworkspace thing is the actual solution.

kennethnym

kennethnym commented on Jan 19, 2020

@kennethnym

Nothing worked for me.

jaredanderton

jaredanderton commented on Jan 21, 2020

@jaredanderton

This was the only thing that worked for me:

rm ios/Podfile && flutter build ios

I think I had ran pod init manually, prior to ever building the app from Flutter. Because of that my Podfile was missing the commands to pull in all the other pods. I only noticed the issue after I added a package to my pubspec.yaml, that actually required using a platform channel.

cmonney

cmonney commented on Jan 24, 2020

@cmonney

@jaredanderton thanks. It worked for me too

TheOneWithTheBraid

TheOneWithTheBraid commented on Feb 6, 2020

@TheOneWithTheBraid

I fixed it the following way:

  • close Xcode
  • uncomment #platform :ios, '9.0' in the Podfile
cd ./ios/
pod install
flutter clean # cancel by ctrl+c if it hangs up
  • open ios/Runner.xcworkspace

49 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cmonney@FickleLife@Kenoshen@ehcpdeveloper@ZionPi

        Issue actions

          [ios][release] GeneratedPluginRegistrant.m Module not found · Issue #43986 · flutter/flutter