NOVA99 NOVA99 - 5 months ago 25
Swift Question

implement third-party framework swift 2

How could I install a third party framework (in my case PhoneNumberKit) in my project? I tried CocoaPods and Carthage but they both don't work.

I use Xcode 7 and Swift 2.2

Edit

Is there a way to install a framework without tools like cocoapods or carthage?

Answer

Try like this, i think it work!

use_frameworks!

target 'nameOfYourProject' do

    platform :ios, '9.0'

    pod 'PhoneNumberKit', :git => 'https://github.com/marmelroy/PhoneNumberKit.git'

end