jonreid / ViewControllerPresentationSpy

Unit test presented and dismissed iOS view controllers, including alerts and action sheets
MIT License
149 stars 15 forks source link

Module compiled with Swift 5.4 cannot be imported by the Swift 5.5 compiler #12

Closed Sangsom closed 2 years ago

Sangsom commented 2 years ago

Hey there recently I've got updated Xcode and now I'm receiving following errors after importing ViewControllerPresentationSpy.

Module compiled with Swift 5.4 cannot be imported by the Swift 5.5 compiler: /Users/sangsom/Developer/Pragmatic coding/My code/Navigation/NavigationTests/ViewControllerPresentationSpy-5.1.0/ViewControllerPresentationSpy.framework/Modules/ViewControllerPresentationSpy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

Module compiled with Swift 5.4 cannot be imported by the Swift 5.5 compiler: /Users/sangsom/Developer/Pragmatic coding/My code/Navigation/NavigationTests/ViewControllerPresentationSpy-5.1.0/ViewControllerPresentationSpy.framework/Modules/ViewControllerPresentationSpy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
dsanjrani commented 2 years ago

Hey, you can download or clone the repository and execute the script Source/MakeDistribution.sh in your Terminal. That will create a fresh version of the framework using the Xcode version on your machine (which probably builds it with Swift 5.5).

Sangsom commented 2 years ago

Thank you for suggestion! Appreciate!

jonreid commented 2 years ago

Thank you, @dsanjrani @Sangsom let me know if you have questions. It really depends on what mechanism you use to bring in the code. I try to keep https://github.com/jonreid/ViewControllerPresentationSpy/releases updated with compiler-specific builds.