Xcode 更新 6.1.1 后构建失败 [英] Build failed after Xcode Update 6.1.1

查看:29
本文介绍了Xcode 更新 6.1.1 后构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 xcode 从 6.1 更新到 6.1.1,当我尝试构建我的 iOS 应用程序时,它失败了.

I update xcode from 6.1 to 6.1.1 and when i try to build my iOS app, it fail.

var url = NSURL.URLWithString("https://my.domain.com")

此行不会在 xcode 6.1 中引发错误,但自更新以来,我必须用此行替换:

This line doesn't throw error with xcode 6.1, but since the update, i have to replace by this line:

var url = NSURL(fileURLWithPath: "https://my.domain.com")

此外,使用此 URL 的请求不再有效.

Moreover, the request with this URL doesn't work any more.

如果有人有任何解释.

谢谢

推荐答案

貌似 apple 用 NSURL(string: <#String#>) 替换了工厂方法 URLWithStringcode>,所以你应该使用 fileURLWithPath

Looks like apple replaced the factory method URLWithString with NSURL(string: <#String#>), so you should use that insted of fileURLWithPath

这篇关于Xcode 更新 6.1.1 后构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆