Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build archive error vs Xcode10 #21583

Closed
tunm1228 opened this issue Oct 9, 2018 · 8 comments
Closed

Build archive error vs Xcode10 #21583

tunm1228 opened this issue Oct 9, 2018 · 8 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@tunm1228
Copy link

tunm1228 commented Oct 9, 2018

Multiple commands produce '/Users/tu/Library/Developer/Xcode/DerivedData/Tituk-fndmfujccqhdareyswrxhslqzyvn/Build/Intermediates.noindex/ArchiveIntermediates/Tituk/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a':

  1. Target 'yoga' has a command with output '/Users/tu/Library/Developer/Xcode/DerivedData/Tituk-fndmfujccqhdareyswrxhslqzyvn/Build/Intermediates.noindex/ArchiveIntermediates/Tituk/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a'
  2. Target 'yoga' has a command with output '/Users/tu/Library/Developer/Xcode/DerivedData/Tituk-fndmfujccqhdareyswrxhslqzyvn/Build/Intermediates.noindex/ArchiveIntermediates/Tituk/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a'
@tunm1228 tunm1228 changed the title Build archive error Build archive error vs Xcode10 Oct 9, 2018
@wd
Copy link

wd commented Oct 9, 2018

There should something like bellow in your Podfile

  installer.pods_project.targets.each do |target|
    if target.name == "React"
      target.remove_from_project
    end

    if target.name == "yoga"
      target.remove_from_project
    end
  end

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Oct 9, 2018
@dreallday
Copy link

dreallday commented Oct 15, 2018

Thanks @wd !

I ran into the same problem as OP and by adding what you said to the Podfile fixed the issue.

    if target.name == "yoga"
      target.remove_from_project
    end

@ashokseervidev
Copy link

The above solution works...

@ObidosDev
Copy link

Also do not forget call pod install

@prashen
Copy link

prashen commented Jan 14, 2019

@wd Thanks it worked for me.

@joeljerushan
Copy link

pod Install then File > Workspace Settings > Build System > Legacy Build System. will work in all time :)

@gudbrand3
Copy link

gudbrand3 commented Aug 20, 2019

I got following errors with react-native 0.60.5

1) Target 'yoga' has a command with output '~/Library/Developer/Xcode/DerivedData/.../IntermediateBuildFilesPath/UninstalledProducts/project/libyoga.a'
2) Target 'yoga' has a command with output '~/Library/Developer/Xcode/DerivedData/.../IntermediateBuildFilesPath/UninstalledProducts/project/libyoga.a'

Solved it by adding below:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "React"
      target.remove_from_project
    end

    if target.name == "yoga"
      target.remove_from_project
    end
  end
end

at the end of the pod file followed by pod update

@facebook facebook locked as resolved and limited conversation to collaborators Oct 9, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants