Facebook Login, ios build error Module 'FBSDKCoreKit' not found

I developed ionic 3 app with facebook login. On android platform it works successfully but on ios platform I have strange issue

Ionic:

   ionic (Ionic CLI)  : 4.10.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.1

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 7 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/lsantaniello/Library/Android/sdk)
   ios-deploy        : 1.9.2
   ios-sim           : 6.1.2
   NodeJS            : v7.7.0 (/usr/local/bin/node)
   npm               : 4.1.2
   OS                : macOS High Sierra
   Xcode             : Xcode 10.1 Build version 10B61

in xcode:

/Volumes/Data/projects/ionic3/my-app/platforms/ios/One To One/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.h:13:9: 'FBSDKCoreKit/FBSDKCoreKit.h' file not found

My platform/ios/podfile is

# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '8.0'
target 'One To One' do
	project 'One To One.xcodeproj'
	pod 'OneSignal', '2.11.2'
end

Facebook SDK dependencies are not present

I tried to add manually dependencies to my Pod file but after building I have the similar issue.

	pod 'FBSDKCoreKit'
	pod 'FBSDKLoginKit'
	pod 'FBSDKShareKit'

After this, I executed “pod install” command

When I build using ionic command:

sudo ionic cordova build ios --prod

I have similar error

/Volumes/Data/projects/ionic3/fantatennis-app/platforms/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:24:9: Module 'FBSDKCoreKit' not found

So, I downloaded manually FBSDK, Core and Login Module and added to my frameworks.

When I build the project I have always error

In order to replicate issue:

1) ionic start poc-facebook-login-ios blank --type=ionic-angular
2) cd poc-facebook-login-ios
3) ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="1234567890" --variable APP_NAME="MyFbApp"
4) npm install --save @ionic-native/facebook@4
5) ionic cordova platform add ios
6) ionic cordova build ios --prod
7) open Xcode using .xcworkspace file
8) build

Could you please support me?

Thanks
Luca

Please support me :frowning: