在使用cocoapod导入swift第三方时出现这样的错误: [!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: 三方库名称 一开始我使用oc的配置方法 platform :ios, '8.0' target "PodTest
先看看错误提示 这里Alamofire库报错,原因打开工程会Xcode会提示你覆盖到最新的3.0版本.但是仍然有些框架会出现一些问题 解决办法: 选择Pods - ReactiveCocoa - Swift Compiler -Version - Use Legacy Swift Language Version,把Unspecified改成NO.
Step by step swift integration for Xcode Objc-based project: Create new *.swift file (in Xcode) or add it by using Finder Add swift bridging empty header if Xcode have not done this before (see 4 below) Implement your Swift class by using @objc attri