building with Xcode 8.2, running on iPhone 6 iOS 10
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug, OptimizedOnly, RunTimeCrash
Assignee
None
Priority
Medium
md5: 527562dfe02323edd05f58e89e529e0e
Issue Description:
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.
importUIKitclassViewController: UIViewController {
overridefuncviewDidLoad() {
// Do any additional setup after loading the view.super.viewDidLoad()
let orderby ="time"let url ="http://www.sample.com/api/index.php?\(orderby)"Log("Request url: \(url)")
iflet url =URL(string: url) {
let request =URLRequest(url: url)
print(request)
}
}
overridefuncdidReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
funcLog(_log: String) {
// NSLog("%@", log)
}
swift-ci commentedDec 22, 2016
Attachment: Download
Environment
building with Xcode 8.2, running on iPhone 6 iOS 10
Additional Detail from JIRA
md5: 527562dfe02323edd05f58e89e529e0e
Issue Description:
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.
You can see the attachment for more detail info.
Or if you use github, this is the repo:
https://github.com/zaczh/Swift3ClosureDemo
The text was updated successfully, but these errors were encountered: