NI-Lab.

nilog:

← 前の日 2020-11-03 次の日 →
← 一年前 一年後 →
Twitter (2020-11-03)
"I created a new pod TwitterKit5, migrated from UIWebView to WKWebView."

IOS removing UIWebView · Issue #120 · twitter-archive/twitter-kit-ios · GitHub https://github.com/twitter-archive/twitter-kit-ios/issues/120
[t] 2020-11-03 18:44:04
関連するかも情報
"The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020."

Updating Apps that Use Web Views - News - Apple Developer https://developer.apple.com/news/?id=12232019b
[t] 2020-11-03 18:41:11
"I created a new pod TwitterKit5, migrated from UIWebView to WKWebView."

IOS removing UIWebView · Issue #120 · twitter-archive/twitter-kit-ios · GitHub https://github.com/twitter-archive/twitter-kit-ios/issues/120
[t] 2020-11-03 18:44:04
TwitterKit5 というものを導入してみる。

$ pod install
Analyzing dependencies
Downloading dependencies
Installing TwitterKit5 (5.2.0)
Removing TwitterKit
Generating Pods project
Integrating client project
[t] 2020-11-03 18:47:26
TwitterKit のときの lock ファイル。

$ cat Podfile.lock
PODS:
- TwitterCore (3.2.0)
- TwitterKit (3.4.2):
- TwitterCore (>= 3.2.0)

DEPENDENCIES:
- TwitterKit

SPEC REPOS:
trunk:
- TwitterCore
- TwitterKit
[t] 2020-11-03 18:49:01
TwitterKit5 のときの lock ファイル。

$ cat Podfile.lock
PODS:
- TwitterCore (3.2.0)
- TwitterKit5 (5.2.0):
- TwitterCore (>= 3.1.0)

DEPENDENCIES:
- TwitterKit5

SPEC REPOS:
trunk:
- TwitterCore
- TwitterKit5
[t] 2020-11-03 18:49:21
characters.count ではなく count にする。

Xcode9.1で'characters' is deprecated: Please use String or Substring directlyのワーニングが出るようになった - Qiita https://qiita.com/NorsteinBekkler/items/55e7f493cdebe95b1896
[t] 2020-11-03 18:58:01
UIApplication.shared.openURL(URL(string: url)!) だと 'openURL' was deprecated in iOS 10.0 と警告が出てしまうので open(URL(string: URL(string: url)!, options: [:], completionHandler: nil) に書き換え。
[t] 2020-11-03 19:07:59
「completionHandlerは遷移完了or遷移失敗したタイミングで呼ばれます。引数は遷移が成功したかどうかの結果がBoolで渡されます」

openURLがDeprecatedだったので、新方式に置き換える - しめ鯖日記 https://llcc.hatenablog.com/entry/2017/09/02/175114
[t] 2020-11-03 19:08:24
「iOS 10 から UIApplication の openURL: メソッドが Deprecated になりました。代わりに利用することが推奨されたのは openURL:options:completionHandler: というメソッドです」

[iOS 10] UIApplication の openURL: が Deprecated になりました | Developers IO https://dev.classmethod.jp/articles/deprecated-openurl/
[t] 2020-11-03 19:09:23
ようやく Xcode の警告が最後の1個になった。あとは Conversion to Swift 5 is available だけ。これは移行に失敗して Convert to Current Swift Syntax Failed になるんだよなぁ・・・
[t] 2020-11-03 19:18:07
Please ensure that all selected targets build successfully with the currently configured Swift version before attempting a migration.

なるほど。メニューから Product -> Build For -> Testing で Build Failed になるのでこれが原因かな。
[t] 2020-11-03 19:21:28
"Bundle creator OS Type code" の値が "????" になってるっぽい。。。
[t] 2020-11-03 19:40:22
「Bundle OS Type code(デフォルト:APPL)」
「バンドルの種類を4文字で表すようです。アプリなので APPL固定で。OS9のなごりのようです」

Info.plistをいじってみる | ゲームクリエイターゆぅの大冒険 今に見てろよ! https://ameblo.jp/yusuke-sharp9th/entry-10750751318.html
[t] 2020-11-03 19:41:00
「Bundle OS Type code(CFBundlePackageType)」「バンドルのタイプを示す4文字の識別子で、アプリケーションの場合は『APPL』になります」

Xcodeのプロパティリストエディタ | Second Flush https://secondflush2.blog.fc2.com/blog-entry-131.html
[t] 2020-11-03 19:42:22
「Bundle creator OS Type code(CFBundleSignature)」「アプリケーションのクリエータを識別する4文字の識別子で、テキストエディタの場合『ttxt』になる・・・とありますが、それ以外はどうなのかよく分かりません」

Xcodeのプロパティリストエディタ | Second Flush https://secondflush2.blog.fc2.com/blog-entry-131.html
[t] 2020-11-03 19:43:39
Bundle creator OS Type code (String)

「アプリがファイルを保存/編集するとき、そのファイルのクリエーターを識別するためのアルファベット四文字のコード」

Applog: Info.plist 設定項目一覧 【iOS編】 https://applow-blog.blogspot.com/2011/03/infoplist-ios.html
[t] 2020-11-03 19:44:12
RT @year_progress:
▓▓▓▓▓▓▓▓▓▓▓▓▓░░ 84%
[t] 2020-11-03 20:04:05
Xcode のメニューから Product -> Build For -> Testing で Build Failed になってしまう。Cannot find type MyFooClass in scope が発生してた。MyFooClass を選択して右ペインの Target Membership でテストのターゲットを選択しておく必要があったみたい。
[t] 2020-11-03 20:18:11
「右側のチェックをつけておくことで、Test側でも参照できるようにしておきます」

SwiftでTestコード(on Xcode) - Qiita https://qiita.com/hmhmsh/items/a0289263b8ed2e1f808f
[t] 2020-11-03 20:19:28
RT @tomo_yuki2525:
もう滅茶苦茶なマナー講師 https://twitter.com/tomo_yuki2525/status/1323558032819646464/photo/1
[t] 2020-11-03 20:20:48
2020年11年03日のnilogをすべて表示する

- NI-Lab.
- Mastodon (@nilab@mastodon-japan.net)
- Twitter (@nilab)
- Timelog (@nilab)
- はてなブックマーク (id:nilab)

Web Services by Yahoo! JAPAN