jonreid / ViewControllerPresentationSpy

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

Document or add GitHub action to build framework binaries #10

Closed kikeenrique closed 2 years ago

kikeenrique commented 3 years ago

Hi,

Thanks for maintaining this project. I think it has many useful concepts/helpers.

I'm using the code examples on the book Unit testing by example, and I'm getting a compiler error using Xcode 13 beta (I guess on Xcode 12.5 it would be reproducible, as latest binaries provided are for Xcode 12.3).

This is the error log:

Module compiled with Swift 5.2 cannot be imported by the Swift 5.5 compiler: 
~/Developer/ios/unit-testing-by-example-code/Alert/AlertTests/ViewControllerPresentationSpy.framework/Modules/ViewControllerPresentationSpy.swiftmodule/x86_64.swiftmodule

What I miss are the instructions that I guess you have used to build the frameworks for the Prebuild binaries. Have you also thought of adding a GitHub action for that, in order for the instructions to be always updated?

Regards

jonreid commented 2 years ago

I just added instructions to the bottom of the README for how to build on your own.