
Githubで作ってしばらく放置していたAndroidのプロジェクトを、買い替えたマシンでクローンしてきて再開したら、いくつかの落とし穴にはまったのでメモ。
関連するstackoverflowのページを見て、app/build.gradle
のokhttpのバージョン指定を4.1.0から4.9.0に更新して対応した。
Configure and link your app clips - WWDC 2020 - Videos - Apple Developerのメモ。
app clipは以下の方法でエンコードしたURLや地図上の物理的な位置から起動することができる:
- NFC
NFCタグをiPhoneに近づける。URLをiPhoneが読み取り、App Clipを起動する。
Swiftのis
演算子は、サブクラスでもマッチする。
例:
あるUIViewControllerのサブビューのうち、UIViewのみを削除したいとする。
for view in self.view.subviews {
if view is UIView {
view.removeFromSuperview()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swift-tools-version:5.3 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "Qiita", | |
dependencies: [ | |
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.3.0")), | |
.package(url: "https://github.com/YusukeHosonuma/SwiftPrettyPrint.git", .upToNextMajor(from: "1.0.0")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm -rf /usr/local/bin/pod | |
$ sudo gem install cocoapods | |
Password: | |
Successfully installed cocoapods-1.9.3 | |
Parsing documentation for cocoapods-1.9.3 | |
Done installing documentation for cocoapods after 2 seconds | |
1 gem installed | |
$ pod setup | |
bash: /usr/local/bin/pod: No such file or directory | |
$ rbenv rehash # これが重要っぽい |