darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
193 stars 127 forks source link

FBSDKCoreKit/FBSDKCoreKit.h file not found #115

Closed Wolfaks closed 2 years ago

Wolfaks commented 2 years ago

Hello. I have error in iOS: "FBSDKCoreKit/FBSDKCoreKit.h file not found"

I added the following to the PodFile, after which the error popped up: post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' end end end Otherwise, I had an error: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

I use version 3.5.0 of flutter-facebook-auth. Please help me. Thanks.

darwin-morocho commented 2 years ago

Hello. I have error in iOS: "FBSDKCoreKit/FBSDKCoreKit.h file not found"

I added the following to the PodFile, after which the error popped up: post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' end end end Otherwise, I had an error: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

I use version 3.5.0 of flutter-facebook-auth. Please help me. Thanks.

hi you don't need to add that code. In your podfile at the top of this file you need to uncomment the next line

platform :ios, '9.0'

se the value to 9.0

Wolfaks commented 2 years ago

hi you don't need to add that code.

Then i had an error: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

platform is uncomented.

darwin-morocho commented 2 years ago

in xcode go to the general tab and increase your deployment target

darwin-morocho commented 2 years ago

22E3DE1D-0CF1-4300-8A84-56293EEA1B3D

Wolfaks commented 2 years ago
Снимок экрана 2021-07-01 в 16 26 02

I did this and it still displays an error (pictured). I made the iOS 10 platform, I can’t below because other libraries do not support version 9.

platform :ios, '10.0' deployment info: iOS 14.5

darwin-morocho commented 2 years ago
Снимок экрана 2021-07-01 в 16 26 02

I did this and it still displays an error (pictured). I made the iOS 10 platform, I can’t below because other libraries do not support version 9.

platform :ios, '10.0' deployment info: iOS 14.5

what is the ios version of your simulator? Also deployment info must be 10.0

I think the problem is your simulator please Check running the app in a real device

darwin-morocho commented 2 years ago

This is not an issue of this plugin so I am closing this

Wolfaks commented 2 years ago

I think the problem is your simulator please Check running the app in a real device

Other device with platform :ios, '10.0' deployment info: iOS 10.0

Снимок экрана 2021-07-01 в 17 18 19
darwin-morocho commented 2 years ago

I think the problem is your simulator please Check running the app in a real device

Other device with platform :ios, '10.0' deployment info: iOS 10.0

Снимок экрана 2021-07-01 в 17 18 19

Are you using swift or objective-c?

Wolfaks commented 2 years ago

Are you using swift or objective-c?

Flutter project, i think swift

Снимок экрана 2021-07-01 в 17 25 17
darwin-morocho commented 2 years ago

Please add all the info requested the issue template

Wolfaks commented 2 years ago

myPath__ /ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKCoreKitImport.h:29:10: error: 'FBSDKCoreKit/FBSDKCoreKit.h' file not found

import <FBSDKCoreKit/FBSDKCoreKit.h>

^

:0: error: could not build Objective-C module 'FBSDKLoginKit'
Снимок экрана 2021-07-01 в 17 34 47
darwin-morocho commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

Environment Add your flutter doctor -v Add your pubspec.yaml Add your Info.plist Add your AppDelegate.swift Add your AndroidManifest.xml Add your /app/res/values/strings.xml

To Reproduce Please add your code to reproduce the issue

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots or videos to help explain your problem.

Wolfaks commented 2 years ago
Снимок экрана 2021-07-01 в 17 42 38

pubspec.yaml ` version: 1.0.0+1

environment: sdk: ">=2.7.0 <3.0.0"

dependencies: flutter: sdk: flutter url_launcher: ^3.0.1 flutter_launcher_icons: "^0.9.0" http: ^0.13.0 progress_dialog: ^1.2.4 connectivity: ^0.4.2 shared_preferences: ^0.5.6+3 intl: ^0.16.1 dio: ^4.0.0 screen_keep_on: ^0.1.1 in_app_purchase: ^0.5.2 google_api_availability: ^3.0.1 apple_sign_in: ^0.1.0 flutter_local_notifications: ^5.0.0+1 firebase_core: ^1.3.0 firebase_analytics: ^8.1.2 firebase_messaging: ^10.0.3 introduction_screen: ^2.0.0 appodeal_flutter: ^1.0.0 flutter_facebook_auth: ^3.5.0 image_picker: ^0.7.4 image_picker_platform_interface: ^2.1.0 keyboard_visibility: ^0.5.6 flutter_vk_login: git: url: https://github.com/ObjReponse/flutter_vk_login.git flutter_vk_sdk: git: url: https://github.com/Stmol/flutter_vk_sdk.git ref: 0.1.1

cupertino_icons: ^1.0.0 webview_flutter: ^1.0.7

dev_dependencies: flutter_test: sdk: flutter

flutter_icons: android: true ios: true image_path: "assets/ico.png" adaptive_icon_background: "#ffffff" adaptive_icon_foreground: "assets/icotr.png"

flutter: uses-material-design: true

assets:

Info.plist

Снимок экрана 2021-07-01 в 17 57 33 Снимок экрана 2021-07-01 в 17 57 41 Снимок экрана 2021-07-01 в 17 57 54

AppDelegate.swift

`import UIKit import Flutter import AppTrackingTransparency import AdSupport import Firebase

@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate {

override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self)

    // Use Firebase library to configure APIs
    if FirebaseApp.app() == nil {
        FirebaseApp.configure()
    }

if #available(iOS 10.0, *) {
  UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}

if #available(iOS 14, *) {
    ATTrackingManager.requestTrackingAuthorization() { status in
        // Tracking authorization completed. Initialise Appodeal here.
    }
}

return super.application(application, didFinishLaunchingWithOptions: launchOptions)

}

} ` Android has no problems

darwin-morocho commented 2 years ago

You are using dart >= 2.7 so your project doesn't support flutter_facebook_auth: ^3.5.0 because this version is for null safety projects you must use flutter_facebook_auth: ^3.3.3-no-nullsafety also it seems there is a conflict with you AppDelegate.swift because your are initializing the firebase sdk in this file and that is not required on flutter projects.

Also you are using other dependencies that only must be used on dart >= 2.12 (null safety) for example firebase_core:1.3.0

Wolfaks commented 2 years ago

I did a rollback

Снимок экрана 2021-07-01 в 21 55 06 Снимок экрана 2021-07-01 в 21 53 50

'FBSDKCoreKit/FBSDKCoreKit.h' file not found #import <FBSDKCoreKit/FBSDKCoreKit.h> AND The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'VK-ios-sdk' from project 'Pods')

darwin-morocho commented 2 years ago

I did a rollback

Снимок экрана 2021-07-01 в 21 55 06 Снимок экрана 2021-07-01 в 21 53 50

'FBSDKCoreKit/FBSDKCoreKit.h' file not found #import <FBSDKCoreKit/FBSDKCoreKit.h> AND The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'VK-ios-sdk' from project 'Pods')

You are wrong not all dependencies has -no-nullsafety at the end of the version , you need to go to pub.dev and search dependencies compatible before null safety, remember you have multiples dependencies that must be used only on null safety projects.

I recommend go to dart.dev a learn about null safety.

I am locking this because there is not an issue of this plugin

darwin-morocho commented 2 years ago

Sometimes the error can be fixed using flutter clean