53

I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error:

:-1: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist':
1) Target 'TLYShyNavBar' has copy command from '/Users/.../Desktop/Workspace/iOS/.../Pods/TLYShyNavBar/TLYShyNavBar/Info.plist' to '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist'
2) Target 'TLYShyNavBar' has process command with input '/Users/.../Desktop/Workspace/iOS/.../Pods/Target Support Files/TLYShyNavBar/Info.plist'

I tried the solutions from this post but they didn't work. Any help provided is appreciated. Thanks!

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Akshay Sunderwani
  • 12,428
  • 8
  • 29
  • 52
  • For me, nothing worked from the post. I deleted info file, renamed and mapped correctly in build settings - it is working fine now. Hope this might help you. – Suresh Durishetti Jul 09 '18 at 09:49
  • 1
    Try this : https://stackoverflow.com/a/50719379/3024579 – Alok Nov 12 '18 at 09:47
  • One more solution especially for case with pods files – deintegrate and install pods: exec commands in 'Terminal' `$ cd path/to/project_toot` then `$ pod deintegrate` and `$ pod install`. – SiavA Jun 17 '19 at 12:40

1 Answers1

193

I found the solution for this build error, for anybody else having the same issue with Xcode 10 build system, follow the following steps to fix it:

  1. In Xcode, go to File->Project/Workspace settings.
  2. Change the build system to Legacy Build system.

enter image description here

It will resolve the build issue with the new Xcode 10.

If you want to work with the new build system, then you can find the troubleshooting help from this apple Xcode help page.

Edit:

I was able to resolve the issue with the new Xcode build system by removing the duplicate info.plist from the Pod by following steps:

Solution - Open target > Build phase > Copy Bundle Resource/Compile Sources > removed info.plist from here

Barath
  • 1,656
  • 19
  • 19
Akshay Sunderwani
  • 12,428
  • 8
  • 29
  • 52
  • 2
    If you're using xcbuild directly (for example on a CI) then you can set the same via this flag: `-UseModernBuildSystem=NO`. Source: https://stackoverflow.com/a/51205222/851490 – Adam Ivancza Oct 02 '18 at 15:35
  • 2
    I'm getting same error, and i'm not using pods. It's complaining about some icon file being copied multiple times. And since Apple doesn't care about developers, there's zero info about where these alleged conflicts are. So thanks for tip on switching back to legacy build mode. – Hashman Oct 08 '18 at 02:16
  • There is better solution...here-> https://stackoverflow.com/a/50719379 – rajugautam Oct 11 '18 at 08:25
  • I tried it but just this solved for me https://stackoverflow.com/a/52451421/2238515 – Almeida Nov 04 '18 at 22:02
  • I had the same issue once update x-code to Version 10.1 (10B61). Simply deleted info.plist from Copy Bundle Resources https://stackoverflow.com/a/51089254/1823043 – eranda.del Dec 22 '18 at 14:49
  • Apparently now we can't have multiple files with the same name even if they are in different directories. THANKS APPLE!! At least they left us the legacy build (for now). – Dpedrinha May 23 '19 at 01:32