24
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.

[Multiple commands produce '/Users/ユーザ名/...省略.../Info.plist']が発生した場合

Posted at

問題

Info.plistを誤って削除してしまい、手動で追加し直した。
その後、エミュレータでアプリを実行すると下記のようなエラーが出るようになった。

Multiple commands produce '/Users/ユーザ名/Library/Developer/Xcode/DerivedData/Runner-hogehoge/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist':
1) Target 'Runner' (project 'Runner') has copy command from ‘/Users/…省略…/Info.plist'
2) Target 'Runner' (project 'Runner') has process command with output '/Users/…省略…/Info.plist'

対応

Xcodeで下記の場所まで移動。

Runner → Build Phases → Copy Bundle Resources

Copy Bundle Resourcesに記載されているInfo.plistを削除。

以上

軽ーく調べてみたけど、手動で追加したときにファイルが重複しちゃってるみたいな感じっぽい
詳しいこと知ってる人いたら教えてください。

24
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
24
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?