Looking for ?

Translate

Module awesom notification not found in GeneratedPluginRegistrant - Xcode, Macincloud, Mac

Solution to - Module awesom notification not found in GeneratedPluginRegistrant - Xcode, Macincloud, Mac

Hello everyone, if you are facing this issue "module awesom_notification not found in GeneratedPluginRegistrant" when you are building your flutter project in Xcode, here is the solution. 

First, you need to add the awesom_notification features into pobfile. You can get the guild in flutter dev by selecting the appropriate awesom_notification  version and read through .


Step One: Configuring iOS for Awesome Notifications: 

To ensure that Awesome Notifications is correctly configured with your iOS app, you need to modify your Podfile within the iOS folder. This involves adding specific blocks for "Awesome Notifications pod modifications" at the end of the post_install section and immediately following it.



Original Podfile Configuration

post_install do |installer|

    installer.pods_project.targets.each do |target|

      flutter_additional_ios_build_settings(target)

    end

  end


Modified Podfile with Awesome Notifications Configurations:

post_install do |installer|

    installer.pods_project.targets.each do |target|

      flutter_additional_ios_build_settings target

    end

  

    ##Awesome Notifications pod modification 1 ##

    awesome_pod_file = File.expand_path(File.join('plugins', 'awesome_notifications', 'ios', 'Scripts', 'AwesomePodFile'), '.symlinks')

    require awesome_pod_file

    update_awesome_pod_build_settings(installer)

    ##  Awesome Notifications pod modification 1 ##

  end

  

  ##Awesome Notifications pod modification 2 ##

  awesome_pod_file = File.expand_path(File.join('plugins', 'awesome_notifications', 'ios', 'Scripts', 'AwesomePodFile'), '.symlinks')

  require awesome_pod_file

  update_awesome_main_target_settings('Runner', File.dirname(File.realpath(__FILE__)), flutter_root)

  ## Awesome Notifications pod modification 2 ##

end


Step Two: Configure the Bridging Header File: 

1. Open the Bridging Header File:

Your bridge header file(Runner-Bridging-Header.h) is located inside your Project/ios/Runner/

if it doesn't exist, create the file yourself. 

2. Add the Required Imports:

#import "GeneratedPluginRegistrant.h"

#import <awesome_notifications/AwesomeNotificationsPlugin.h>

Read Also: 

How can i boost my email campaigns

Step Three: Install Or Update podfile:

Open your terminal, use cd command to navigate to the location of your podfile, typically inside projectFolder/ios/ and run any of the below command.

Command 1: pod install

OR

Command 2: pod update

This will install or update the pods as specified in your Podfile.


Step Four: Clean and build your project:

1. Open the Xcode Workspace:

Ensure you are opening the .xcworkspace file and not the .xcodeproj file. The .xcworkspace file includes the pods and integrates them with your project. To do that, open your terminal use cd command to navigate to your ios folder of your project, then use the below command to open your workspace in xcode

Command: open Runner.xcworkspace

2. Clean the Project:

In Xcode, go to the menu bar and select Product -> Clean Build Folder (or press Shift + Command + K).


Build the Project:

After cleaning, build your project again by selecting Product -> Build (or press Command + B).


IN SUMMARY

We believe that our guild will go along way assisting you with your development. If you still haven't gotten what you want, feel free to contact me.

I Udoka Ezepue, the owner of Wakabia is a chief ICT consultant all over the world, 

I build Websites and Apps of any kind.  i have +9 year of experience in programming. 

If you want us to do business, 

Call/Whatsapp me +2347063076212


SHARE THIS POST

About Wakabia

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment