2019-05-07
xcode 10 error: multiple commands produce - react native
源自: stackoverflow
问题

So there are a lot of questions like this already, but I'm having the same error, not relating to cocoapods or info.plist, at least I don't think, because none of the solutions worked for me.

I just recently upgraded to Xcode 10.0, and building my react native app gives this error:

Multiple commands produce '/Users/username/Library/Developer/Xcode/DerivedData/appname-code/Build/Products/Release-iphoneos/appname.app':
1) Target 'appname' has create directory command with output '/Users/username/Library/Developer/Xcode/DerivedData/appname-code/Build/Products/Release-iphoneos/appname.app'
2) That command depends on command in Target 'appname': script phase “[CP] Copy Pods Resources”

How do I fix this error?

答案
1

I fixed it by upgrading cocoapods to the latest version:

  1. Close Xcode project.
  2. Upgrade cocoapods to latest version - run "sudo gem install cocoapods"
  3. Follow steps here to remove existing pods
  4. Run "pod install" in the project directory
xcode 10 error: multiple commands produce - react native
查看原网页