let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
if let url = URL(string: decodedURL) {
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
})
let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
if let url = URL(string: decodedURL) {
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
})
let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
alertPrompt.addAction(goconfirmAction)
alertPrompt.addAction(RetunconfirmAction)
alertPrompt.addAction(cancelAction)
ICAgICAgICBsZXQgYWxlcnRQcm9tcHQgPSBVSUFsZXJ0Q29udHJvbGxlcih0aXRsZTogIk9wZW4gQXBwIiwgbWVzc2FnZTogIuiri+mBuOaTh+WKn+iDvemBuOmghSDjgIxcKGRlY29kZWRVUkwp44CNIiwgcHJlZmVycmVkU3R5bGU6IC5hY3Rpb25TaGVldCkKICAgICAgICBsZXQgZ29jb25maXJtQWN0aW9uID0gVUlBbGVydEFjdGlvbih0aXRsZTogIuWHuueZvCIsIHN0eWxlOiBVSUFsZXJ0QWN0aW9uU3R5bGUuZGVmYXVsdCwgaGFuZGxlcjogeyAoYWN0aW9uKSAtPiBWb2lkIGluCiAgICAgICAgICAgIAogICAgICAgICAgICBpZiBsZXQgdXJsID0gVVJMKHN0cmluZzogZGVjb2RlZFVSTCkgewogICAgICAgICAgICAgICAgaWYgVUlBcHBsaWNhdGlvbi5zaGFyZWQuY2FuT3BlblVSTCh1cmwpIHsKICAgICAgICAgICAgICAgICAgICBVSUFwcGxpY2F0aW9uLnNoYXJlZC5vcGVuKHVybCwgb3B0aW9uczogWzpdLCBjb21wbGV0aW9uSGFuZGxlcjogbmlsKQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSkKICAgICAgICAKICAgICAgICBsZXQgUmV0dW5jb25maXJtQWN0aW9uID0gVUlBbGVydEFjdGlvbih0aXRsZTogIuWbnuWutiIsIHN0eWxlOiBVSUFsZXJ0QWN0aW9uU3R5bGUuZGVmYXVsdCwgaGFuZGxlcjogeyAoYWN0aW9uKSAtPiBWb2lkIGluCiAgICAgICAgICAgIAogICAgICAgICAgICBpZiBsZXQgdXJsID0gVVJMKHN0cmluZzogZGVjb2RlZFVSTCkgewogICAgICAgICAgICAgICAgaWYgVUlBcHBsaWNhdGlvbi5zaGFyZWQuY2FuT3BlblVSTCh1cmwpIHsKICAgICAgICAgICAgICAgICAgICBVSUFwcGxpY2F0aW9uLnNoYXJlZC5vcGVuKHVybCwgb3B0aW9uczogWzpdLCBjb21wbGV0aW9uSGFuZGxlcjogbmlsKQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSkKICAgICAgICAKICAgICAgICBsZXQgY2FuY2VsQWN0aW9uID0gVUlBbGVydEFjdGlvbih0aXRsZTogIkNhbmNlbCIsIHN0eWxlOiBVSUFsZXJ0QWN0aW9uU3R5bGUuY2FuY2VsLCBoYW5kbGVyOiBuaWwpCiAgICAgICAgCiAgICAgICAgYWxlcnRQcm9tcHQuYWRkQWN0aW9uKGdvY29uZmlybUFjdGlvbikKICAgICAgICBhbGVydFByb21wdC5hZGRBY3Rpb24oUmV0dW5jb25maXJtQWN0aW9uKQogICAgICAgIGFsZXJ0UHJvbXB0LmFkZEFjdGlvbihjYW5jZWxBY3Rpb24p
[1mprog.swift:1:27: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertController'
[0m let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
[1mprog.swift:1:101: [0;1;31merror: [0m[1muse of unresolved identifier 'decodedURL'
[0m let alertPrompt = UIAlertController(title: "Open App", message: "請選擇功能選項 「\(decodedURL)」", preferredStyle: .actionSheet)
[1mprog.swift:2:31: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertAction'
[0m let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
[1mprog.swift:2:69: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertActionStyle'
[0m let goconfirmAction = UIAlertAction(title: "出發", style: UIAlertActionStyle.default, handler: { (action) -> Void in
[1mprog.swift:11:34: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertAction'
[0m let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
[1mprog.swift:11:72: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertActionStyle'
[0m let RetunconfirmAction = UIAlertAction(title: "回家", style: UIAlertActionStyle.default, handler: { (action) -> Void in
[1mprog.swift:20:28: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertAction'
[0m let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
[0;1;32m ^~~~~~~~~~~~~
[0m[1mprog.swift:20:66: [0;1;31merror: [0m[1muse of unresolved identifier 'UIAlertActionStyle'
[0m let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
[0;1;32m ^~~~~~~~~~~~~~~~~~
[0m<unknown>:0: error: error opening input file 'prog.o' (No such file or directory
)
clang: error: no such file or directory: 'prog.o'
clang: error: no such file or directory: '@prog.autolink'