Can't import dependency installed with Cocoapods
- Select your Project Target
- Go to Build Settings.
- Search for Header Search Paths.
- Add this value $(SRCROOT)/Pods with recursive, then Xcode will resolve the path for you.
Are you opening the .xcodeproj
or the .xcworkspace
? Make sure it is the workspace whenever you install a cocoapod
I'll naively suppose you don't have use_frameworks!
in you Podfile
. If that's true, than you have two ways to go from here:
In your
Runner-Bridging-Header.h
add#import <FBSDKCoreKit/FBSDKCoreKit.h>
, removeimport FBSDKCoreKit
fromAppDelegate.swift
and just continue writing the code.Add
use_frameworks!
to yourPodfile
and runpod install
again. That might bring some other issues, but if that works, than I'd suggest it.