ios – Flutter Integration utilizing Cocoapods. FlutterPluginRegistrant growth pod not constructing because of `sqflite_darwin`

0
1
ios – Flutter Integration utilizing Cocoapods. FlutterPluginRegistrant growth pod not constructing because of `sqflite_darwin`


I’m utilizing CocoaPods v1.16.2 and Xcode 16.3.

I’ve a local iOS app during which just a few screens have to be constructed utilizing flutter.
For that, I’ve built-in Flutter into the iOS venture utilizing CocoaPods by referring to this.

Flutter frameworks are added as growth pods.

When I’m attempting to construct the iOS venture, one of many growth pods, referred to as FlutterPluginRegistrant, fails to construct with the error:

/Customers/me/Paperwork/repos/ios-bingo-international/Pods/Headers/Non-public/sqflite_darwin/SqflitePlugin.h:10:9:'embrace/sqflite_darwin/SqflitePluginPublic.h' file not discovered

Whereas there are a complete of three consists of within the FlutterPluginRegistrant header file that’s just under, the opposite two, besides SqflitePlugin.h, haven’t any points in linking.

#import "GeneratedPluginRegistrant.h"

#if __has_include()
#import 
#else
@import connectivity_plus;
#endif

#if __has_include()
#import 
#else
@import path_provider_foundation;
#endif

#if __has_include()
#import 
#else
@import sqflite_darwin;
#endif


@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject*)registry {
  [ConnectivityPlusPlugin registerWithRegistrar:[registry registrarForPlugin:@"ConnectivityPlusPlugin"]];
  [PathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"PathProviderPlugin"]];
  [SqflitePlugin registerWithRegistrar:[registry registrarForPlugin:@"SqflitePlugin"]];
}


/*
 
 If I remark out the embrace assertion and utilization, traces 21 to 25 and line 33, then the FlutterPluginRegistrant growth pod efficiently builds.
 */

@finish

The precise problem lies in SqflitePlugin.h, the place it tries to import #import "embrace/sqflite_darwin/SqflitePluginPublic.h" and fails to seek out it.

If I change #import "embrace/sqflite_darwin/SqflitePluginPublic.h" with #import "SqflitePluginPublic.h" problem will get resolved.

However I have to not edit these dependency pods’ supply code.

I attempted cleansing Flutter, putting in pods once more, however nothing labored.

I’ve connected screenshots for higher understanding.

Any suggestion to repair this?

//
//  SqflitePlugin.h
//  sqflite
//
//  Created by Alexandre Roux on 24/10/2022.
//
#ifndef SqflitePlugin_h
#outline SqflitePlugin_h

//this import causes error
#import "embrace/sqflite_darwin/SqflitePluginPublic.h"

extern NSString *const SqfliteMethodExecute;;
extern NSString *const SqfliteMethodInsert;
extern NSString *const SqfliteMethodUpdate;
extern NSString *const SqfliteMethodQuery;

extern NSString *const SqfliteErrorBadParam;
extern NSString *const SqliteErrorCode;

extern NSString *const SqfliteParamMethod;
extern NSString *const SqfliteParamSql;
extern NSString *const SqfliteParamSqlArguments;
extern NSString *const SqfliteParamInTransactionChange;
extern NSString *const SqfliteParamNoResult;
extern NSString *const SqfliteParamContinueOnError;
extern NSString *const SqfliteParamResult;
extern NSString *const SqfliteParamError;
extern NSString *const SqfliteParamErrorCode;
extern NSString *const SqfliteParamErrorMessage;
extern NSString *const SqfliteParamErrorData;
extern NSString *const SqfliteParamTransactionId;

// Static helpers
static const int sqfliteLogLevelNone = 0;
static const int sqfliteLogLevelSql = 1;
static const int sqfliteLogLevelVerbose = 2;

extern bool sqfliteHasSqlLogLevel(int logLevel);
// True for verbose debugging
extern bool sqfliteHasVerboseLogLevel(int logLevel);

#endif // SqflitePlugin_h

enter image description here

LEAVE A REPLY

Please enter your comment!
Please enter your name here