5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

"Configuration issue: platform iPhoneSimulator.platform doesn't have any non-simulator SDKs; ignoring it" でAdhoc ipa生成が失敗する時の対応

Posted at

はじめに

WebRTCの一部をカスタマイズしてビルドして生成したFrameworkを使い、XcodeのProduct > Archiveは成功。そこからipa生成しようとしたところ途中で失敗し、IDEDistribution.standard.logに以下が出力されていました。

2020-04-20 12:24:27 +0000  /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with 1
2020-04-20 12:24:27 +0000  ipatool JSON: {
    alerts =     (
                {
            code = 3620;
            description = "Configuration issue: platform AppleTVSimulator.platform doesn't have any non-simulator SDKs; ignoring it";
            info =             {
            };
            level = WARN;
        },
                {
            code = 3620;
            description = "Configuration issue: platform WatchSimulator.platform doesn't have any non-simulator SDKs; ignoring it";
            info =             {
            };
            level = WARN;
        },
                {
            code = 3620;
            description = "Configuration issue: platform iPhoneSimulator.platform doesn't have any non-simulator SDKs; ignoring it";
            info =             {
            };
            level = WARN;
        }
    );
}
2020-04-20 12:33:24 +0000 [MT] Canceled distribution assistant

その際の対応メモです。

対応

Framework内の不要なアーキテクチャをlipoコマンドで削除する。

ターミナルでプロジェクト内の該当framework直下へ移動。

-infoで現在含まれている情報を確認。

% lipo -info WebRTC
Architectures in the fat file: WebRTC are: x86_64 i386 armv7 arm64 

-removeで削除。

% lipo -remove i386 WebRTC -o WebRTC  
% lipo -remove x86_64 WebRTC -o WebRTC

-infoで変更後の情報を確認。

% lipo -info WebRTC
Architectures in the fat file: WebRTC are: armv7 arm64
5
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?