R.swift: failed with exit code 1

Created on 27 Sep 2017  路  2Comments  路  Source: mac-cain13/R.swift

Command /bin/sh failed with exit code 1

Unknown Arguments: /Users/keith/iosProject/TicGame

Arguments:

outputDir - Output directory for the 'R.generated.swift' file.

this is my screenShot
https://imgur.com/a/eNO4T

Most helpful comment

The Run Script for R.swift 3.3.0 should not have the generate argument, it should be this:

"$PODS_ROOT/R.swift/rswift" "$SRCROOT"

The generate argument _is_ needed for R.swift 4.0, but that version hasn't been released yet. It is currently only an alpha release. However, we have already merged the code for R.swift 4 to the master branch. So that's why you're currently seeing documentation for R.swift 4, while CocoaPods still resolves to R.swift 3.3.0.

Sorry about that, that's a bit unclear, I'll update the documentation.

All 2 comments

I have the same problem when using Xcode 9 and swift 4.
I change R.swift verson to '3.3.0', still have this problem.

The Run Script for R.swift 3.3.0 should not have the generate argument, it should be this:

"$PODS_ROOT/R.swift/rswift" "$SRCROOT"

The generate argument _is_ needed for R.swift 4.0, but that version hasn't been released yet. It is currently only an alpha release. However, we have already merged the code for R.swift 4 to the master branch. So that's why you're currently seeing documentation for R.swift 4, while CocoaPods still resolves to R.swift 3.3.0.

Sorry about that, that's a bit unclear, I'll update the documentation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexpersian picture alexpersian  路  6Comments

aliasdoc picture aliasdoc  路  3Comments

mac-cain13 picture mac-cain13  路  4Comments

Horse888 picture Horse888  路  5Comments

scaio picture scaio  路  3Comments