Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CONTRIBUTING TO SWIFT
Search
giginet
PRO
July 21, 2017
3
490
CONTRIBUTING TO SWIFT
#oi_study
giginet
PRO
July 21, 2017
Tweet
Share
More Decks by giginet
See All by giginet
Creating Intuitive Developer Tool in Swift
giginet
PRO
0
980
Mergeable Libraryで 高速なアプリ起動を実現しよう!
giginet
PRO
2
4.1k
5分でわかるExplicitly Built Modules
giginet
PRO
0
550
Introduction for Open Source Swift Workshop
giginet
PRO
0
1.5k
Swift Packageを使った 巨大な依存グラフのキャッシュ戦略
giginet
PRO
5
4.9k
Deep Dive into Mergeable Library
giginet
PRO
1
1.8k
Go beyond the Actor Boundary ~ Swift 6へのConcurrency対応 ~
giginet
PRO
1
3.4k
新しいビルドツールScipioのご紹介
giginet
PRO
3
1.1k
ポケモンで学ぶiOS 16弾丸ツアー 🚅
giginet
PRO
1
930
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
A better future with KSS
kneath
238
17k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
The World Runs on Bad Software
bkeepers
PRO
65
11k
We Have a Design System, Now What?
morganepeng
50
7.2k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Documentation Writing (for coders)
carmenintech
65
4.4k
Visualization
eitanlees
145
15k
Transcript
CONTRIBUTING TO SWIFT @giginet
@giginet • iOS Engineer @ Cookpad • ։ൃج൫ͬͯ·͢ • झຯɿήʔϜ։ൃ
• Contributor of fasltane • &⌚ͷਓ
giginet/Toybox
giginet/xcprofile
ࠓ͢͜ͱ • SwiftʹContributionͯ͠Έ͔ͨͬͨͷͰ ͪΐͬͱࢼͯ͠Έͨ
apple/Swift
։ൃڥΛ࡞Δ
։ൃڥ • جຊతʹREADME௨ΓʹΕྑ͍ • Xcode 9betaɺPython 2.7ɺ͍͔ͭ͘ͷґଘ ύοέʔδ͕ඞཁ
$ brew install cmake ninja $ mkdir swift-source $ git
clone https://github.com/apple/ swift.git $ ./swift/utils/update-checkout —clone $ ./swift/utils/build-script -x
Ϗϧυ • ΊͬͪΌ͔͔࣌ؒΔ • Ϗϧυʹ3~4࣌ؒ
Xcode Project • -xΦϓγϣϯͰXcodeϓϩδΣΫτ͕ੜ͞Ε Δ • build/swift-macosx-x86_64/swift-macosx- x86_64/Swift.xcworkspace
None
ςετΛ࣮ߦ͢Δ • docs/Testing.md $ ./Swift/utils/build-script --test
None
swift-source • update-checkoutsʹΑͬͯෳͷϦϙδτϦ ͕clone͞ΕΔ
swift-source • Swift • swift-corelibs-foundation • swift-corelibs-libdispatch • swift-corelibs-xctest •
swift-xcode-playground-support • swift-integration-tests
swift-source • Swift • swift-corelibs-foundation • swift-corelibs-libdispatch • swift-corelibs-xctest •
swift-xcode-playground-support • swift-integration-tests
$ mkdir swift-foundation $ cd swift-foundation $ git clone
[email protected]
:apple/
swift-corelibs-foundation.git $ git clone
[email protected]
:apple/ swift-corelibs-xctest.git $ open swift-corelibs-foundation/ Foundation.xcworkspace
swift-corelibs-foundation • https://swift.org ͔Β࠷৽ͷtoolchainΛऔಘ • Xcode > Preferences > ComponentsͰઃఆ
swift-corelibs-foundation
ωλΛ୳͢
• 1. issueτϥοΧʔΛݟΔ • 2. FIXME୳͢ • 3. warning௵͢ ωλͷ୳͠ํ
Issue TrackerΛݟΔ
https://bugs.swift.org/
issueͷݟ͚ͭํ • FoundationXCTestSwiftͰॻ͔Ε͍ͯΔͷ ͰखΛ͚͍͢ • ίϯύΠϥLLVMݫ͍͠ • ʮContributing to Open
Source SwiftʯݟΔ
https://news.realm.io/jp/news/tryswift-jesse- squires-contributing-open-source-swift/
None
FIXMEΛ͢
None
$ git grep 'FIXME' | wc -l > 3367
WARNINGΛ௵͢
None
PRΛૹΔ
PRΛૹΔ • CONTRIBUTING GUIDEಡΉ • https://swift.org/contributing • ଞͷPRݟΔ
None
None
CI • PR͝ͱʹউखʹճΒͳ͍ • ϨϏϡΞʔ͕ඞཁʹԠͯ͡ճͯ͘͠ΕΔ • 1PRʹ30͙Β͍͔͔Δ
None
None
·ͱΊ • ڥ࡞ͬͯwarning௵͚ͩ͢ͳΒ୭ͰͰ͖Δ • FIXME͢ͱ͜Ζଟͦ͏ʢઓதʣ • Ϗϧυ͕ͱʹ͔ͯ͘͘ٳ͕௵ΕΔ
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠