升级 Swift 3.0 遇到的Bug 续

错误1:

ld: framework not found QBImagePickerController

clang: error: linker command failed with exit code 1(use -v to see invocation)

解决:找到下图将对应文件删除


升级 Swift 3.0 遇到的Bug 续_第1张图片

错误2:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

解决方案:

主工程的taget中BuildPhase中第二条中重新添加对应的文件即可


错误3:

’init(rawNumber:region:)' is unavailable: use PhoneNumberKit instead to produce PhoneNumbers

解决:

phoneNumber = try PhoneNumberKit().parse("\(pNumber)",withRegion: "CN",ignoreType: true)


错误3:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

解决:


升级 Swift 3.0 遇到的Bug 续_第2张图片

关于Expression of type 'UIViewController?' is unused

解决办法:

_=navigationController?.popViewController(animated:true)

因为这个方法有返回值,不处理就警告

你可能感兴趣的:(升级 Swift 3.0 遇到的Bug 续)