Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Module not found after iOS build #54

Closed
5 tasks
michael-learns opened this issue Jun 21, 2021 · 2 comments
Closed
5 tasks

Module not found after iOS build #54

michael-learns opened this issue Jun 21, 2021 · 2 comments

Comments

@michael-learns
Copy link

michael-learns commented Jun 21, 2021

I've used this packaged for my iOS app and it works really well.

I prepared my app for release in iOS with the following steps.

  • flutter build ios --release and it worked!
  • opened it on Xcode and did a build on there but got an error

Module 'advance_pdf_viewer' not found

Screen Shot 2021-06-21 at 22 02 54

I've tried the following to fix the issue:

  • Clean the build folder in Xcode
  • Delete the DeriveData
  • ran flutter clean

but none of it worked.

@michael-learns michael-learns changed the title Module not Found after iOS build Module not found after iOS build Jun 21, 2021
@michael-learns
Copy link
Author

I was able to fix this problem by doing the follow steps:

  1. Delete flutter_advance_pdf_viewer in pubspec.yaml and comment it from code where it is used
  2. Do flutter build ios --release
  3. Build it in Xcode
  4. Add the package again in pubspec.yaml
  5. Uncomment it from the code where it is used
  6. Do flutter build ios --release
  7. Build in Xcode

@juanagu
Copy link

juanagu commented Oct 29, 2022

I fixed it doing this:

flutter clean && flutter pub cache repair
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile.lock
flutter build ios

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants