0
0

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 1 year has passed since last update.

Xcode 14.3にしたら PhaseScriptExecution Exit status: 65

Posted at

Xcodeを14.3に更新したら今までリリースビルドで来ていたアプリが、以下のようなエラーを出力しビルドできなくなってしまいました。

The following build commands failed:
        PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/takashi/Library/Developer/Xcode/DerivedData/PROJECT_NAME-dzvvnurbcslkerbahonaorsgyjqe/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT_NAME/IntermediateBuildFilesPath/PROJECT_NAME.build/Release-watchos/watch\ Extension.build/Script-28A7333371E1B343FC311B8F.sh (in target 'watch Extension' from project 'PROJECT_NAME')
(1 failure)
[15:53:39]: Exit status: 65

今回はFlutterのプロジェクトでしたが、たぶんFlutterはあまり関係ないと思います。

修正方法

cocoapodsを使っているプロジェクトだと思うので、Podfileのpost_installを以下のように編集します。
cocoapodsが生成する *frameworks.shsource="$(readlink "${source}")"source="$(readlink -f "${source}")" に置換する処理です。

Podfile
post_install do |installer|
  command = <<~EOS
    find . -name *frameworks.sh | tr \\n \\0 |  xargs -0 sed -i -e 's/source="$(readlink "${source}")"/source="$(readlink -f "${source}")"/'
  EOS
  system(command)
end

根本解決としてはcocoapodsのバージョンアップを待つしか無いようです。

参考

0
0
1

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?