小编dax*_*hou的帖子

swift3 playground无法获取路径的沙箱扩展

当我在Playground中创建一个ImageView时,它会显示"沙盒扩展"错误.

let url = URL(string: "http://www.objc.io/images/covers/16.jpg")!
let image = CIImage(contentsOf: url)!
let imageView = UIImageView(frame: image.extent)
imageView.image = UIImage(ciImage: image )
PlaygroundPage.current.liveView = imageView
Run Code Online (Sandbox Code Playgroud)

控制台消息:

2017-02-19 15:37:06.803 Chapter2[73915:885328] Failed to obtain sandbox extension for
path=/var/folders/3t/2tbk2tn96_v6_39rrjym3hsr0000gn/T/com.apple.dt.Xcode.pg/containers/
com.apple.dt.playground.stub.iOS_Simulator.Chapter2-8E7AB6A8-3EF4-47C0-BDA2-117817EA2934/Library/Caches/
com.apple.dt.playground.stub.iOS_Simulator.Chapter2-8E7AB6A8-3EF4-47C0-BDA2-117817EA2934. Errno:1
Run Code Online (Sandbox Code Playgroud)

ios swift-playground swift3

2
推荐指数
1
解决办法
2186
查看次数

标签 统计

ios ×1

swift-playground ×1

swift3 ×1