美文网首页
升级 Swift 3.0 遇到的Bug 续

升级 Swift 3.0 遇到的Bug 续

作者: 平凡的心 | 来源:发表于2017-05-09 16:55 被阅读65次

    错误1:

    ld: framework not found QBImagePickerController

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

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


    错误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

    解决:


    关于Expression of type 'UIViewController?' is unused

    解决办法:

    _=navigationController?.popViewController(animated:true)

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

    相关文章

      网友评论

          本文标题:升级 Swift 3.0 遇到的Bug 续

          本文链接:https://www.haomeiwen.com/subject/onhitxtx.html