Nexmo / stitch-ios-quickstart

A repository containing everything you need when getting started with the Nexmo Stitch API and the iOS SDKs
MIT License
1 stars 3 forks source link

Swift compiler version issues fails build on Xcode 10 #32

Closed altanai closed 5 years ago

altanai commented 5 years ago

Build fails with following errors

Showing All Messages
:-1: Multiple commands produce '/Users/altanaibisht/Library/Developer/Xcode/DerivedData/QuickStarts-bojinmzzqqinetghrvipslgsitkt/Build/Products/Debug-iphonesimulator/QuickStartsOne.app/Info.plist':
1) Target 'QuickStartsOne' (project 'QuickStarts') has copy command from '/Users/altanaibisht/Nexmo/stitch-ios-quickstart/examples/QuickStartOne/Supporting Files/Info.plist' to '/Users/altanaibisht/Library/Developer/Xcode/DerivedData/QuickStarts-bojinmzzqqinetghrvipslgsitkt/Build/Products/Debug-iphonesimulator/QuickStartsOne.app/Info.plist'
2) Target 'QuickStartsOne' (project 'QuickStarts') has process command with output '/Users/altanaibisht/Library/Developer/Xcode/DerivedData/QuickStarts-bojinmzzqqinetghrvipslgsitkt/Build/Products/Debug-iphonesimulator/QuickStartsOne.app/Info.plist'

and

Module compiled with Swift 4.1.2 cannot be imported by the Swift 4.2 compiler: /Users/altanaibisht/Nexmo/stitch-ios-quickstart/examples/Pods/Nexmo-Stitch/Carthage/Build/iOS/Stitch.framework/Modules/Stitch.swiftmodule/x86_64.swiftmodule

Have tried updated pods and switching between legacy build on xcode workspace settings , Any other workarounds >

altanai commented 5 years ago

Error appears on module stitch image

tbass134 commented 5 years ago

@altanai the latest version of the SDK does not currently support Swift 4.2. As a workaround, you can use Xcode 9, go to https://developer.apple.com/download/more/ and search for xCode 9.4.1 Note, you will need to sign in to your developer account