<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I had similar issues with UIApplicationMain when I moved to Swift 3:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><<a href="rdar://problem/25693546" class="">rdar://problem/25693546</a>> UIApplicationMain's argv parameter should be declared nullable</div></blockquote><div class=""><br class=""></div><div class="">Presumably NSApplicationMain's argv parameter needs the same nullable annotation.</div><div class=""><br class=""></div><div class="">—Nathan</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 12, 2016, at 3:56 PM, Marco S Hyman via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">My first try with 5/31 swift 3 snapshot gave me a warning regarding an unused return value -- in main.swift. Wouldn’t you know, NS ApplicationMain is declared as<br class=""><br class="">func NSApplicationMain(_ argc: Int32,<br class=""> _ argv: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>) -> Int32<br class=""><br class="">And what does the second line of function help say?<br class=""><br class="">"This method never returns a result code."<br class=""><br class="">OK ;)<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users</div></div></blockquote></div></div></body></html>