urbanairship / ios-library

Urban Airship iOS SDK
http://urbanairship.com
Apache License 2.0
478 stars 265 forks source link

Xcode 14.3 Beta 2 - Compile error in AirshipCore #356

Closed greenmoon82 closed 1 year ago

greenmoon82 commented 1 year ago

❗For how-to inquiries involving Airship functionality or use cases, please contact (support)[https://support.airship.com/].

Preliminary Info

What Airship dependencies are you using?

Swift package Airship - 16.10.6 Targets:

What are the versions of any relevant development tools you are using?

XCode 14.3 Beta 2 (14E5207e)

Report

What unexpected behavior are you seeing?

Unable to compile the application with Airship SPM 16.10.6 package dependency added to the project. Compile error on line 30 and ln 38 in Airship > AirshipCore > Source > Shapes > rectangle(colorSceheme:border:) Error - Initializer for conditional binding must have Optional type, not 'Color'

Airship-Compile-Error-XCode14 3Beta2

What is the expected behavior?

ln. 25 sets a default Color to the strokeColor var so there is no unwrapping needed for strokeColor.

What are the steps to reproduce the unexpected behavior?

Airship SPM 16.10.6 package dependency added to a XCode project. Open project/workspace in XCode 14.3 Beta 2 and build.

Do you have logging for the issue?

No

greenmoon82 commented 1 year ago

Issue resolved in 16.11.2.