LoginSignup
1
1

More than 5 years have passed since last update.

cocoapodsでxcconfigファイルが正しく登録されないとき

Last updated at Posted at 2017-03-18

現象

備忘録です。
Unityのプロジェクトにcocoapodsを実行しても正常にビルドできない。
xcconfingが正常に読めていないためプロジェクトの設定にxcconfigのファイルが表示されない。

エラー内容

ビルドしたら以下のようなエラーが出た。

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

プロジェクトの設定をみるとxcconfigファイルが正常に設定されていない。

正常に設定されているときは以下のようになる。
スクリーンショット 2017-03-19 5.34.54.png

修正手順

Unityプロジェクトに登録されているPodsフォルダが古いものがあると
pod installやupdateをしても正常に最新のものに更新できないようです。

このため以下のような手順で状態を復帰。

1.UnityプロジェクトのPodsフォルダを削除
2.Xcodeを閉じる
3.pod installまたはupdateを実行

スクリーンショット 2017-03-19 4.13.53.png

これでPodsファイルがUnityプロジェクトへ再登録され
xcconfigファイルの設定自体も正常に復帰していた。

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