sindresorhus / LaunchAtLogin-Legacy

Add โ€œLaunch at Loginโ€ functionality to your macOS app in seconds
MIT License
1.55k stars 122 forks source link

Platform filter to exclude iOS in xcode multiplatform targets #94

Closed tonyfahrion closed 1 year ago

tonyfahrion commented 1 year ago

Hi,

It would be very cool if the package came with a platform filter in the package description to exclude it to build for iOS as well. In a multi-platform setup I am currently unable to use the xcode preview because I can't limit the package to build for the iOS preview environment.

Excluding it for the actual build works.

Would a platform filter help here?

Thank you very much for this great package ๐Ÿ‘

sindresorhus commented 1 year ago

It's already defined to only be available on macOS: https://github.com/sindresorhus/LaunchAtLogin/blob/7ad6331f9c38953eb1ce8737758e18f7607e984a/Package.swift#L6-L8

tonyfahrion commented 1 year ago

Oh my bad, I missed this line ๐Ÿ™ˆ

Thank you sindresorhus ๐Ÿ™ then it seems to be a bug in xcodes preview ๐Ÿค”