作者:
slacash (cash)
2016-01-19 21:25:01剛學習Swift不好意思請教一下各位
若是用CocoaPods ,想使用objective-c 的第三方套件
譬如用AFNetworking
我有在我的Podfile 中
加入 'AFNetworking' 並且執行完pod install
之後用 xcworkspace 開起project
然後在我的controller中 import AFNetworking
可是仍無法使用
請問我的流程有少了什麼步驟嗎
麻煩各位了
作者:
slacash (cash)
2016-01-19 22:10:00我加了let manager = AFHTTPRequestOperationManager()錯誤訊息是 use of unresolved identifer 'AFHTTPRequs..是沒import AFNetworking到我的project的關系嗎
作者:
songooo (songooo)
2016-01-19 22:19:00試試改用2.6.3版的AFNetworking?
作者:
neotek 2016-01-19 22:24:00作者:
slacash (cash)
2016-01-19 22:50:00改用2.6.3是在Podfile改成pod 'AFNetworking', '2.6.3'嗎再請問一下怎麼看目前套件的版本neotek大 所以用swift開發的話只能用swift的套件嗎
作者:
slacash (cash)
2016-01-19 23:07:00platform :ios, '8.0'use_frameworks!target 'TestLibrary' dopod 'AFNetworking'end只有這樣而已
作者:
kokuyoku (天龍狂想曲)
2016-01-20 01:06:00有用use_frameworks!就不用橋接文件直接用NSURLSession應該就不用AFNetworking
作者:
uranusjr (â†é€™äººæ˜¯è¶…級笨蛋)
2016-01-20 02:42:00初學 Swift 就用 Alamofire 就好了啦, 別搞那麼多