Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Objective-C Cocoapod to Swift

There is an awesome Objective-C pod (this) i want to implement in my project but i don't get it to work.

As i understood i need to:

  1. Download the pod
platform :ios, '8.0'
use_frameworks!

pod 'SwiftyJSON'
pod 'KVNProgress'
  1. Create a Objective-C Header File
#import <KVNProgress/KVNProgress.h>
  1. Set 'Objective-C Bridging Header' under Application > Build Settings

Thats all but i don't understand why this isn't working

like image 788
André Kuhlmann Avatar asked Jan 20 '26 16:01

André Kuhlmann


1 Answers

Great after a half day of testing and 4 minutes after asking my question i got it, thx for helping me. ;D

My problem was to add a...

import KVNProgress

... in my swift File.

like image 130
André Kuhlmann Avatar answered Jan 23 '26 07:01

André Kuhlmann