iOS
Swift Package Manager
( ´ ‿ )
Masayuki Ono(@_mono)
potatotips #32 (iOS/Android Tips )
Swift Package Manager
(SwiftPM, SPM)
•
• CocoaPods Carthage
•
•
• Swift 3 👀
SwiftPM
Carthage CocoaPods
Swift - infoQ
Xcode 8 Swift 3
SwiftPM
SwiftPM
swift.org
- https://swift.org/package-manager/
SwiftPM
- https://github.com/apple/swift-package-manager
- https://lists.swift.org/mailman/listinfo/swift-build-dev
Slack
- https://swift-package-manager.herokuapp.com
Qiita 😞
JPMartha 👀
👀
Apple 👼
https://github.com/apple/example-package-playingcard/pull/2
Pull Request 🎉
👀
https://apple.github.io/swift-evolution/
Xcode 8 Swift 3
SwiftPM
🤔
Xcode 8 Swift 3
SwiftPM
iOS
Carthage
CocoaPods
Git Submodule(or Subtree)
SwiftPM🆕
👍
👌
😩
😡
🤔
SwiftPM iOS
•
• HomeBrew
• Carthage CocoaPods
https://github.com/apple/swift-package-manager/blob/master/CODE_OWNERS.txt#L11
SwiftPM
- Swift
-
OSS SwiftPM
- Carthage CocoaPods SwiftPM
Apple
- iOS
-
- SwiftPM ( Swift 3 🤔)
SwiftPM
- Xcode 8 beta 6 -
1.
2.
3. ( )
Potatotips
$ swift package init --type=executable
➜ Potatotips swift package init --type=executable
Creating executable package: Potatotips
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/main.swift
Creating Tests/
Package.swift
Package
$ swift build
➜ Potatotips swift build
Cloning git@github.com:apple/example-package-playingcard.git
HEAD is now at 6e772a6 Fixing a Linux-specific test failure.
Resolved version: 3.0.1
Compile Swift Module 'PlayingCard' (3 sources)
Compile Swift Module 'Potatotips' (1 sources)
Linking ./.build/debug/Potatotips
main.swift
$ swift build
➜ Potatotips swift build
Compile Swift Module 'Potatotips' (1 sources)
Linking ./.build/debug/Potatotips
$ ./debug/Potatotips
➜ .build ./debug/Potatotips
card: ♣A
$ swift package generate-xcodeproj
➜ .build swift package generate-xcodeproj
generated: /Users/mono/Desktop/Potatotips/Potatotips.xcodeproj
Xcode
IDE 😋
- Xcode
- iOS (fastlane ) 

8 17 : [swift-evolution] Swift Package Manager 3.0 Project Status
- Swift Modules
- SwiftPM
- SwiftPM Packages on GitHub: Statistics
- SwiftPM
- neonichu/schoutedenapus
- PodSpec → Package.swift
- Package.swift - manual
- Package.swift ( )
- NSLondon: Swift Package Manager
- 6 SwiftPM

iOSアプリのライブラリ依存管理ツールとして Swift Package Managerを使うのは まだしばらく先かなと思った話