2019-11-01から1ヶ月間の記事一覧

CodaDataで"NSMergeConflict for NSManagedObject"エラーが発生する

CoreDataのNSManagedObjectContextインスタンスのsave:を実行した時にNSErrorが以下のエラーを返す。 NSError: code=133020, domain=NSCocoaErrorDomain, userInfo= { conflictList= ( NSMergeConflict (0x28164b080) for NSManagedObject (0x282e0ba70) wit…

XCodeでサポートされていないバージョンのiOSを使用しているデバイスにアプリをインストール&デバッグする

XCode 10ではiOS 13がインストールされているiOSデバイスに対してアプリをインストールしたりデバッグをすることはできない。XCode 11にバージョンをあげられない場合は、以下でXCode 10でもiOS 13のデバイスを扱うことができるようになる。 DeviceSupportフ…

The error "you must first sign the relevant contracts online (1048)" occurred when you upload archive file on XCode Organizer

The error below occurred when you upload archive file on XCode Organizer. you must first sign the relevant contracts online (1048) It say we have to agree with something contract but XCode nothing to show it even we restart XCode. How to r…

The error "error: unable to read property list from file:..." occurred for "Preprocessed-Info.plist" file while XCode building

XCode 10.3 The error below occurred while XCode building when you set YES to Preprocess Info.plist File of "Build Settings". "error: unable to read property list from file:<Preprocessed-Info.plist file path>" error: The operation couldn't be completed. (XCBUtil.PropertyList</preprocessed-info.plist>…

AWSのRoute53でZone Apexへのアクセスをリダイレクトする

AWS

やりたい事 AWS(Amazon Web Service)のRoute53で管理しているドメイン(example.com)について、Zone Apex(example.com)へのHTTP/HTTPSアクセスをサブドメイン(www.example.com)にリダイレクトする。 Route 53ではZone Apexに対して通常のCNAMEやAレコードを設…

頻繁にmdwrite wants to use the "metadata" keychainが表示されてパスワードの入力を求められる

XCode 10.3で発生。 症状 XCodeでビルドすると何度もmdwrite wants to use the "metadata" keychainが表示されてパスワードの入力を求められる。 ログインパスワードを入力してもパスワードが違うと言われる。仕方なくキャンセルすると、何事もなくビルドが…

iOS, macOS用アプリでバージョン番号をヘッダファイルで管理する

iOS, macOSではアプリのバージョン番号をInfo.plistのBundle VersionおよびBundle versions string, shortで指定する必要がある。 このバージョン番号をヘッダファイルに記載して、その値がInfo.plist内で使用されるようにしたい。 手順 バージョン番号を記…

XCodeでビルド時にPreprocessed-Info.plistで"error: unable to read property list from file:..."エラー

XCode 10.3で確認。 ビルド設定でPreprocess Info.plist FileをYESに設定している場合、ビルド時に以下のエラーが発生する。 "error: unable to read property list from file:<Preprocessed-Info.plistのファイルパス>"エラー: The operation couldn't be completed. (XCBUtil.PropertyListConversi</preprocessed-info.plistのファイルパス>…

Microsoft Edgeでカスタムプロトコルによるアプリ起動が動作しない

Windows 10のMicrosoft Edgeでカスタムプロトコルによるアプリ起動が動作しない症状。 IEやChrome, Firefoxなど、他のブラウザでは問題なく起動できる。 Edgeのデバッガを見ると "<カスタムプロトコルのURL> は開けませんでした" というメッセージのみが表示…

XCodeでのビルド時にcodesignでerrSecInternalComponentエラーが発生する

XCodeでアプリをビルドした際、codesignコマンドでerrSecInternalComponentエラーが発生する場合がある。 以下に類似のエラー報告と解決方法がある。 stackoverflow.com 解決方法 "キーチェーンアクセス"アプリを起動する。 "キーチェーンアクセス"アプリの"…

macOS 10.15以上でアプリを実行するために必要になるNotarization処理

アプリのNotarization macOS 10.15以上でアプリを配布する場合、アプリのNotarizationを行う必要がある。App Storeからアプリを配布する場合はXCodeでアップロードする際に行われるので、特に気にする必要は無い。 Notarizing macOS Software Before Distrib…

How to identify user is iOS when 'Request Desktop Website' of Safari is enabled on iOS13.

iOS

Safari on iOS13 has a setting "Request Desktop Website" that changes value of 'userAgent' same with macOS 10.15. *The default value of this setting is on on iPadOS and off on iOS. The 'navigator' object properties when 'Request Desktop Web…

XCodeのOrganizerで"you must first sign the relevant contracts online (1048)"エラー

XCodeのOrganizerでアプリをアップロードすると以下のエラーが発生する場合がある。 you must first sign the relevant contracts online (1048) 何か利用規約に同意する必要があるようだが、XCodeを起動し直しても特に何も表示されない。 解決策 XCodeのメ…