我正在使用 Xcode 8 并将项目更新到 swift 3。当我在 Xcode 8.1 中打开我的工作区时,我收到以下消息。
The targets “Alamofire” and “DBAlertController” contain source code developed with an earlier version of Swift.
DerivedData mark$ pod --version 1.2.0.beta.1
我已清空 /Users/mark/Library/Developer/Xcode/DerivedData
播客文件
pod 'DBAlertController', :git => 'https://github.com/dbettermann/DBAlertController.git', :branch => 'swift3'
pod 'Alamofire', '~> 4.0'
播客文件
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
我也运行了 pod update 但没有修复它。
Marks-Mac:mark$ cd /Users/mark/Library/Developer/Xcode/DerivedData
Marks-MacerivedData mark$ rm -rf *
Marks-MacerivedData mark$ cd
Marks-Mac:~ mark$ cd Documents/myProject
Marks-Mac:mark$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Pre-downloading: `DBAlertController` from `https://github.com/dbettermann/DBAlertController.git`, branch `swift3`
Downloading dependencies
Installing AFNetworking (3.1.0)
Installing Alamofire (4.0.1)
Installing DBAlertController (0.3.0)
关闭和打开 Xcode,它似乎已经修复了自己,除了找不到 AFNetworking 的头文件..
关于ios - Xcode 8.1 目标包含使用旧版本 swift 开发的源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40490791/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) | Powered by Discuz! X3.4 |