swift2 – Playground Xcode:无法获得沙箱扩展

swift2 – Playground Xcode:无法获得沙箱扩展,第1张

概述我在 IOS9 xcode项目中的.playground文件中出现此错误消息: 2015-10-28 16:28:45.159 Playground[83944:17501939] Failed to obtain sandbox extension for path=/var/folders/h7/cbc1x51x2rs7sjzfk0ndtxkr0000gp/T/com.apple.dt.Xco 我在 IOS9 xcode项目中的.playground文件中出现此错误消息:
2015-10-28 16:28:45.159 Playground[83944:17501939] Failed to obtain sandBox extension for path=/var/folders/h7/cbc1x51x2rs7sjzfk0ndtxkr0000gp/T/com.apple.dt.Xcode.pg/containers/

我所做的是:

>开始了Xcode 7 / Swift 2项目
>使用“pod install Alamofire”
>使用以下代码创建.playground文件:

进口Alamofire

Alamofire.request(.GET,"http://httpbin.org/get",parameters: ["foo": "bar"]).responseJsON { response in        print(response.request)  // original URL request        print(response.response) // URL response        print(response.data)     // server data        print(response.result)   // result of response serialization        let str = response.data!        if let JsON = response.result.value {            print("JsON: \(JsON)")        }}

如何在.playground文件中测试此库而不会出错?

根据业主的说法,从版本3开始,游乐场支持似乎已被删除:

We removed the playground in the latest versions of Alamofire. Caused more problems than it was worth.

资料来源:https://github.com/Alamofire/Alamofire/issues/368#issuecomment-158789746

不幸的是,要启用游乐场支持,您必须降级Alamofire.

总结

以上是内存溢出为你收集整理的swift2 – Playground Xcode:无法获得沙箱扩展全部内容,希望文章能够帮你解决swift2 – Playground Xcode:无法获得沙箱扩展所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1029887.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存