2017-10-19 67 views
0

我正在使用Xcode版本8.3.3,試圖從https://github.com/4taras4/CountryCode使用國家pickerview。我手動只需將CountryPicker文件夾拖放到我的xcode項目中。但是,當我導入CountryPicker時出錯(錯誤是「No such module'CountryPicker'」) 有沒有人可以幫助解決它並教我如何開始使用它?swift3國家和電話代碼選取器

import UIKit 
import MessageUI 
import CountryPicker 

class ViewController: UIViewController, , CountryPickerDelegate { 

回答

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


target 'YourTArgetNAme' do 
    pod 'CountryPickerSwift', '1.4.4' 
end 

嘗試安裝它作爲一個吊艙

+0

吊艙安裝後,就問我要轉換語法,然後談到了很多錯誤 –

+0

使用這個版本,是迅速3.莢「CountryPickerSwift ','1.4.4' – maku

+0

是的,iam使用它 –