CSV.swift icon indicating copy to clipboard operation
CSV.swift copied to clipboard

Build error in Xcode 11

Open ataravati opened this issue 4 years ago • 5 comments

I get the following build error in Xcode 11.

sed: ./Pods/CSV.swift: in-place editing only works for regular files Command PhaseScriptExecution failed with a nonzero exit code

ataravati avatar Nov 02 '19 00:11 ataravati

Are you editing the source code (.swift file) using the sed command in the build phase script? If so, you might be able to build by excluding the Pods directory from source code search.

By the way, the reason why the sed command fails is because ./Pods/CSV.swift is a directory, not a file.

yaslab avatar Nov 02 '19 01:11 yaslab

Are you editing the source code (.swift file) using the sed command in the build phase script? If so, you might be able to build by excluding the Pods directory from source code search.

By the way, the reason why the sed command fails is because ./Pods/CSV.swift is a directory, not a file.

No, I'm not editing the source code. As soon as I add CSV.swift to my Podfile, I get that error when trying to build.

ataravati avatar Nov 02 '19 01:11 ataravati

Hmm, when I created a new Xcode project, there was no PhaseScriptExecution command. . .

When pod install is executed, two PhaseScriptExecution commands, [CP] Check Pods Manifest.lock and [CP] Embed Pods Frameworks were added by CocoaPods. These are working properly.


The environment I tried is as follows.

  • Xcode 11.2
  • CocoaPods 1.8.4
  • macOS 10.15.1

yaslab avatar Nov 02 '19 01:11 yaslab

Here's my environment:

  • Xcode 11.1
  • CocoaPods 1.8.4
  • macOS 10.15.1

ataravati avatar Nov 02 '19 01:11 ataravati

I upgraded Xcode to 11.2 and I still have the same issue.

ataravati avatar Nov 02 '19 06:11 ataravati