joshuapinter / react-native-unified-contacts

Your best friend when working with the latest and greatest Contacts Framework in iOS 9+ in React Native.
MIT License
158 stars 56 forks source link

Use Legacy Swift Language Version #31

Closed Dielz98 closed 6 years ago

Dielz98 commented 7 years ago

Hi I encounter build error

Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

Am I missing something?

joshuapinter commented 7 years ago

What XCode version are you running?

Dielz98 commented 7 years ago

XCode 8.3 and iOS 10.2

eugenehp commented 7 years ago

@Dielz98 Did you add Contacts and ContactsUI frameworks? Do you have SWIFT_VERSION set in your Build Settings?

joshuapinter commented 6 years ago

I just updated this to use Swift 4 and it runs great in XCode 9.2.

Closing this issue for now.

Try out the latest version of the package, 1.6.1 and let me know how it goes.

Thanks.