Skip to content

Instantly share code, notes, and snippets.

Henry Han Henry0422

  • Canada
Block or report user

Report or block Henry0422

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Henry0422
Henry0422 / fix_ios_errors.md
Created Nov 12, 2016 — forked from aldeed/fix_ios_errors.md
Fix iOS Project Swift Errors
View fix_ios_errors.md

Fix iOS Project Swift Errors

In order to build the iOS app in the latest XCode, you need to convert the project to Swift 3.0. After you do this, when you try to run or archive the project, you will get a bunch of errors. This section explains how to fix them.

IMPORTANT NOTE: Fix all the RED errors. There will also be yellow triangles and the option to "update to recommended settings". Do NOT fix these things and do NOT update to recommended settings.

Info from Apple on what has changed in Swift: http://adcdownload.apple.com/Developer_Tools/Xcode_8_beta_6/Release_Notes_for_Xcode_8_beta_6.pdf ("New in Xcode 8 beta 6 - Swift Compiler" section on page 8)

"NSURL" is not implicitly convertible to "URL"

@Henry0422
Henry0422 / assign_field_in_map.go
Created Oct 20, 2016
Assign to a field of a map - Golang
View assign_field_in_map.go
var m = make(map[string] newDataType)
type newDataType struct {
x int
y string
}
func main() {
var tmp = m["foo"]
tmp.x = 4
You can’t perform that action at this time.