简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM