Skip to content

Instantly share code, notes, and snippets.

Changbeom Ahn kewlbear

Block or report user

Report or block kewlbear

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
xcodebuild archive -scheme "KissXML (iOS)" -destination "generic/platform=iOS" -archivePath iOS SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive -scheme "KissXML (iOS)" -destination "platform=macOS,variant=Mac Catalyst" -archivePath catalyst SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive -scheme "KissXML (iOS)" -destination "generic/platform=iOS Simulator" -archivePath simulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
for framework in iOS catalyst simulator
FRAMEWORKS="$FRAMEWORKS -framework $framework.xcarchive/Products/Library/Frameworks/KissXML.framework"
View APFS fix
if let normalized = url.withUnsafeFileSystemRepresentation({ fileSystemRepresentation -> URL? in
guard let bytes = fileSystemRepresentation, let path = String(utf8String: bytes) else {
print("not UTF8?", fileSystemRepresentation)
return nil
return URL(fileURLWithPath: path.decomposedStringWithCanonicalMapping)
normalized != url {
do {
try FileManager.default.moveItem(at: url, to: normalized)
kewlbear / gist:699c3bb15b25eef58df85f8c4f4c1b76
Created May 11, 2017
Webkit document.querySelector('meta[name=viewport]').content = 'width=320' call flow
View gist:699c3bb15b25eef58df85f8c4f4c1b76
kewlbear / gist:394980573ea9dd38e2d5ed96671442b1
Created May 8, 2017
Fix swift playground unable to find headers used by cocoa pods
View gist:394980573ea9dd38e2d5ed96671442b1
In project navigator, navigate to workspace > Pods > Pods > {Pod name here} > Support files > {Pod name here}.xcconfig.
Copy relevant path from HEADER_SEARCH_PATHS and paste at the end of SWIFT_INCLUDE_PATHS.
For Kanna, copy and paste libxml2 include path.
kewlbear / gist:5d3aa493cd806a3f9f6ea84e6738977c
Created May 8, 2017
Generate swift playground with cocoa pods for macOS
View gist:5d3aa493cd806a3f9f6ea84e6738977c
pod playgrounds --platform osx {Pod name here}
kewlbear / gist:44ee10fcfdd7c26817a71b12e3e00950
Last active May 8, 2017
repl.swift:2:1: error: 'URLQueryItem' is only available on OS X 10.10 or newer
View gist:44ee10fcfdd7c26817a71b12e3e00950
error: repl.swift:2:1: error: 'URLQueryItem' is only available on OS X 10.10 or newer
swift -target x86_64-macosx10.12
You can’t perform that action at this time.