FontAwesomeKit icon indicating copy to clipboard operation
FontAwesomeKit copied to clipboard

how to integrated with swift?

Open adad184 opened this issue 10 years ago • 5 comments

i install with cocoapod & imported in bridge header

#import <FontAwesomeKit/FAKFontAwesome.h>

but i still got

Use of unresolved identifier 'FAKFontAwesome'

adad184 avatar May 19 '15 11:05 adad184

I have the same problem.

yoneapp avatar May 28 '15 05:05 yoneapp

#import "FAKFontAwesome.h" instead.

PrideChung avatar May 28 '15 05:05 PrideChung

It's similar to this problem. https://github.com/SwiftyJSON/SwiftyJSON/issues/192#issuecomment-95345623

My problem has been solved.

Project > General > Linked Framework and Libraries > 
add FontAwesomeKit

import FontAwesomeKit

yoneapp avatar May 28 '15 06:05 yoneapp

I'm running into issues as well. Neither solutions have worked for me.

Jamonek avatar Aug 05 '15 00:08 Jamonek

i'm getting my code to compile with the following Podfile:

# since I'm using pods as frameworks, i usually don't need to import obj-c libs in the bridging header.
use_frameworks!
link_with 'MyApp', 'MyAppTests'

target 'MyApp' do
  pod 'FontAwesomeKit/FontAwesome', '~> 2.1.0'
end

and then, somewhere in my project:

import 'FontAwesomeKit'

And my code compiles.

dcunited001 avatar Aug 20 '15 21:08 dcunited001