yaslab / CSV.swift

CSV reading and writing library written in Swift.
MIT License
646 stars 78 forks source link

Build error in Xcode 11 #100

Open ataravati opened 4 years ago

ataravati commented 4 years ago

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

yaslab commented 4 years ago

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.

ataravati commented 4 years ago

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.

yaslab commented 4 years ago

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.

ataravati commented 4 years ago

Here's my environment:

ataravati commented 4 years ago

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