alexmercerind / flutter_acrylic

Flutter library for window acrylic, mica & transparency effects.
MIT License
595 stars 53 forks source link

Usage of `macos_window_utils` broken in 1.1.1 #66

Closed ricardoboss closed 1 year ago

ricardoboss commented 1 year ago

Hi! When building an app that uses flutter_acrylic, I get these errors during build:

image

This looks like either an error in the latest version of macos_window_utils' exports or in the usages of it in this repo.

ricardoboss commented 1 year ago

As a workaround: downgrade to 1.0.0+2

Adrian-Samoticha commented 1 year ago

Thanks for your report. I have been able to reproduce it on my end. Another possible workaround is to install macos_window_utils: 1.0.2 if you wish to remain on a more recent version. I am still investigating the issue as we speak.

Adrian-Samoticha commented 1 year ago

I believe the issue is now resolved. It was caused by an accidental breaking change in macos_window_utils 1.1.0. I have retracted that version and released a hotfix.

ricardoboss commented 1 year ago

I tried your workaround, but now I am getting this error:

error: compiling for macOS 10.14, but module 'macos_window_utils' has a minimum deployment target of macOS 10.14.6

As the migration guide states, I have changed my Podfile to say: platform :osx, '10.14.6'.

What version does the hotfix have?

Adrian-Samoticha commented 1 year ago

The minimum deployment target in the Podfile has been 10.14.6 since macos_window_utils' very beginning (though it was lower back when flutter_acrylic was standalone). What's interesting is that the macOS Deployment Target in the flutter_acrylic example project is set to 10.14 and yet compiles fine on my end:

image

Either way, could you maybe try setting it to 10.14.6 or above (as described in the readme) and see if that resolves the issue?

Also, try setting Runner > Build Settings > Deployment > macOS Deployment Target to 10.14.6 or above as well:

Screenshot 2023-03-01 at 12 22 21
ricardoboss commented 1 year ago

Ah thanks! That fixed it for me. My bad, I didn't update the minimum target in the xcode project, just in the Podfile.

Feel free to close this issue.