I’m utilizing CocoaPods v1.16.2 and Xcode 16.3.
I’ve a local iOS app by which a couple of screens should be constructed utilizing flutter
.
For that, I’ve built-in Flutter
into the iOS challenge utilizing CocoaPods by referring to this.
Flutter frameworks are added as growth pods.
When I’m attempting to construct the iOS challenge, 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:'embody/sqflite_darwin/SqflitePluginPublic.h' file not discovered
Whereas there are a complete of three contains
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 embody assertion and utilization, strains 21 to 25 and line 33, then the FlutterPluginRegistrant growth pod efficiently builds.
*/
@finish
The precise concern lies in SqflitePlugin.h, the place it tries to import #import "embody/sqflite_darwin/SqflitePluginPublic.h"
and fails to seek out it.
If I change #import "embody/sqflite_darwin/SqflitePluginPublic.h"
with #import "SqflitePluginPublic.h"
concern will get resolved.
However I need to not edit these dependency pods’ supply code.
I attempted cleansing Flutter, putting in pods once more, however nothing labored.
I’ve hooked up 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
#import "embody/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