RocketChat / Rocket.Chat.iOS

Legacy mobile Rocket.Chat client in Swift for iOS
https://rocket.chat
MIT License
1.04k stars 438 forks source link

Build error - Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1 compiler #2682

Open zsliu opened 5 years ago

zsliu commented 5 years ago

I am trying to build Rocket.Chat.iOS on branch origin/chore/upgrade_libraries_swift_versions with Xcode 10.2. It always end up with error as below.

Rocket.Chat.iOS/Rocket.Chat/Controllers/Video Conferencing/JitsiViewController.swift:10:8: Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1 compiler: /xxxx/source/Rocket.Chat.iOS/Rocket.Chat/External/JitsiMeet/JitsiMeet.framework/Modules/JitsiMeet.swiftmodule/x86_64.swiftmodule

It seems Xcode 10.2 can not import Swift 4.2.1 jitsi meet framework.

Would you please advise if there's any work around, or should I use different version xcode ?

rudrankriyam commented 5 years ago

@zsliu for now, you can checkout the revert-2690-revert-2689-swift5 branch!