smart-on-fhir / Swift-SMART

Swift SMART on FHIR framework for iOS and OS X
Other
135 stars 47 forks source link

'$' is not an identifier; use backticks to escape it #20

Closed Fedenieto90 closed 6 years ago

Fedenieto90 commented 6 years ago

When installing Swift-SMART 3.2.0 with cocoapods, the following error appears and the project does not build. The file is FHIROperation.swift, line 184:

/// Alias to FHIROperation for neat operation usage. public typealias $ = FHIROperation

The message is the following: '$' is not an identifier; use backticks to escape it.

This does not happen when installing as embedded framework.

Fedenieto90 commented 6 years ago

I could solve it. In Xcode I selected Pods targets, then SMART. Under the tab Build Settings I changed the Swift language version to 3.2. Maybe this can help others who came across the same problem. Now it works ok!

andreasHausberger commented 6 years ago

What xcode version are you using? I only can select 3.3 as a language version, and that doesn't solve it. Did you embed it via git clone or did you use a podfile?