SWIFT3 – Error via the Cocoapods installation field

I encountered this strange error when installing realm on xcode 8, cocoa pods version cocoapods-1.2.0

The error is –

Installing Realm (2.4.3)

[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

./scripts/swift-version.sh: line 59: [: =: unary operator expected
No version of Xcode found that supports Swift 3.0.2

All other pods are great.

I would like to thank you for your help first.

div>

Hey, for anyone looking for an answer –

I did find out that I installed a second xcode (xcode 7), so the command line tool of choice It was xcode 7.3 that caused the error.

So what I did was, I went to –
xcode>>Preferences>>Location>>CommandLineTools

and chose commandLineTools as the latest version (xcode 8).

Thank you…

I encountered this strange when installing realm on xcode 8, cocoa pods version cocoapods-1.2.0

The error is –

Installing Realm (2.4.3)

[!] / bin/bash -c
set -e
sh build.sh cocoapods-setup

./scripts/swift-version.sh: line 59: [: =: unary operator expected
No version of Xcode fou nd that supports Swift 3.0.2

All other pods are great.

I would like to thank you for your help first.

Hey, for anyone looking for an answer –

I did find out that I installed a second xcode (xcode 7), so the command line of choice The tool is xcode 7.3 which caused the error.

So what I did was, I went to –
xcode>>Preferences>>Location>>CommandLineTools

and chose commandLineTools as the latest Version (xcode 8).

Thank you…

Leave a Comment

Your email address will not be published.