Hi, everyone.
I think I found a swift 3 whole module optimization issue. The code
below, when building with release configuration and running on an iOS 10
real device, will always causes a crash.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
super.viewDidLoad()
if let url = URL(string: url) {
let request = URLRequest(url: url)
print(request)
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
Thanks for the report! Please file it on bugs.swift.org if you have a moment.
-Joe
···
On Dec 21, 2016, at 7:08 PM, Jun Zhang via swift-users <swift-users@swift.org> wrote:
Hi, everyone.
I think I found a swift 3 whole module optimization issue. The code below, when building with release configuration and running on an iOS 10 real device, will always causes a crash.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
super.viewDidLoad()
if let url = URL(string: url) {
let request = URLRequest(url: url)
print(request)
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
On Thu, Dec 22, 2016 at 11:08 AM, Jun Zhang <j.h.z.hang.dev@gmail.com> wrote:
Hi, everyone.
I think I found a swift 3 whole module optimization issue. The code
below, when building with release configuration and running on an iOS 10
real device, will always causes a crash.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
super.viewDidLoad()
if let url = URL(string: url) {
let request = URLRequest(url: url)
print(request)
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}