症状
「Playストア」アプリの起動を試みると繰り返し以下のアラートダイアログを表示して異常終了する。
問題が発生したためGoogle Play ストアを終了します
パーソナルクラウドストレージ(個人向けNAS)製品 "WD Cloud" に、macOS 10.12 (Sierra) から ssh接続を試みると失敗する。
1 2 |
$ ssh -l sshd wdcloud.local Unable to negotiate with 192.168.xx.xx port 22: no matching host key type found. Their offer: ssh-dss |
(macOSに限らず)最新のsshクライアントにおいて、暗号化アルゴリズム ssh-dss がデフォルトでは無効にされている。
1 |
$ ssh -oHostKeyAlgorithms=+ssh-dss sshd@wdcloud.local |
.ssh/config
でssh-cssを有効にする
1 2 3 4 |
Host wdcloud HostName wdcloud.local User sshd HostKeyAlgorithms +ssh-dss |
1 |
- (void) enumerateObjectsUsingBlock: (void (^)(id obj, NSUInteger idx, BOOL *stop)) block |
アプリがカメラ機能を使用するにもかかわらず xxx-Info.plist にカメラ機能を使用する理由の記載(NSCameraUsageDescription)がない。
カメラ機能を明示的には使用していないケースであっても、OpenCV(opencv2.framework)を組み込むとカメラ機能を呼び出す(ことができる)バイナリ・オブジェクトがアプリに含まれてしまう。
Objective-CからSwiftのクラスが参照できない。
Use of undeclared identifier 'xxx'
Objective-C(*.m, *.mm)において ProjectName-Swift.h をインポートしなければならない。
1 |
#import "MyProject-Swift.h" |
Objective-Cから参照するSwiftで実装するクラスは NSObject の派生クラスでなければならない。
1 2 3 |
class MyClass : NSObject { ... } |
ImageMagick の mogrifyコマンドを使う
1 |
$ mogrify -resize x240 *.png |
高さ240pxに解像度を一括変換する。
1 |
$ mogrify -format png *.jpg |
JPEGファイルをPNGファイルへ一括変換する。
1 |
enum { NO, GAIN, GAIN_BLOCKS }; |
ヘッダーファイル(*.hpp)において "Expected Identifier" が発生する。
直前のソースコードで以下の警告(Warning)が発生している。
1 2 3 |
#if defined(NO) # warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. #endif |
Apple (Xcode) が提供するヘッダーファイルにおいて "NO" が定義される前に、OpenCVのヘッダーファイルを先に読み込んで "NO;" を定義しなければならない。
続きを読む
2017年6月現在
OpenCV 安定板最新: 3.2.0 – Dec 23, 2016 released
2017年6月現在 Xcode 8.2.1, MacOS 10.11 (El Capitan) にてビルド成功
Dear developer,
We have discovered one or more issues with your recent delivery for “xxxxx”. To process your delivery, the following issues must be corrected:
Missing Info.plist key – This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
アプリがカメラ機能を使用するにもかかわらず xxx-Info.plist にカメラ機能を使用する理由の記載(NSCameraUsageDescription)がない。
オブジェクトファイルのシンボルテーブルをダンプする