Swift Project Doesn't Recognize CocoaPod Library

1.5k views Asked by At

I created a Page-based project and immediately created a Podfile in the root of the project with the following content:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'BaasBoxSDK', '~> 0.9'

I then ran pod install via terminal and opened the new workspace. Thanks to use_frameworks! it's my understanding I should be able to use the library without creating and setting up bridged headers. I have tried with and without bridged headers and XCode doesn't seem to detect my library or classes from the library. Am I missing a step? (this is my first Swift project).

2

There are 2 answers

1
Nate Mann On BEST ANSWER

Are you calling

import BaasBoxSDK

in the files you want to use it in

0
jimmy0251 On

I think you're missing import BaasBoxSDK line in the files you want to use it. Also, after adding a library, run project once so that library will get compiled and class suggestion will be available in Xcode.