- ビルドにおける問題:Cocoapodsを使用してアプリをビルドすると「... Framework Not Found AFNetworking For Architecture X 86_64 (Null): Linker Command Failed With Exit Code 1 (Use-V To See Invocation)」というリンクエラーが表示されます。
- 解決策:Cocoapods経由でインストールしたライブラリの中には、フレームワークの使用を許可していないものがあります。サードパーティのライブラリの新しいバージョンを使用するか、前述のようにInsert SDKを手動でインストールするようにしてください。あわせてこちらもご覧ください。
-
アップロードの問題:旧バージョンのXcodeでApp Storeにアップロードすると、次のようなエラーが発生します。
ERROR ITMS-90087: "Unsupported Architectures. The executable for XXX.app/Frameworks/InsertFramework.framework contains unsupported architectures '[x86_64, i386]'."
または
ERROR ITMS-90209: “Invalid Segment Alignment. The app binary at ‘XXX.app/Frameworks/InsertFramework.framework/InsertFramework’ does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.”
または
ERROR ITMS-90125: “The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple’s linker.”
または
WARNING ITMS-90080: "The executable 'XXX.app/Frameworks/InsertFramework.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library."
- 解決策:旧バージョンのXcodeでは、使用していないアーキテクチャを自動的に動的ライブラリから削除することはできません。ここから参照できるスクリプトで、使用されていないアーキテクチャを手動で削除する手順をビルドチェーンに追加します。