Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple commands produced error xcode 10 [duplicate]

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!

like image 899
Akshay Sunderwani Avatar asked Jun 27 '18 20:06

Akshay Sunderwani


1 Answers

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

like image 112
Akshay Sunderwani Avatar answered Sep 23 '22 00:09

Akshay Sunderwani