Skip to content

Unable to build the project with Xcode 15.2 #138

@sushil-tiwari

Description

@sushil-tiwari

Describe the bug
I am working on an ongoing project where I am using PagerTabStripView library. I have added it as SPM. The project is compiling and building successfully with Xcode 14.2.

I have upgraded my Xcode to 15.2 and the same project is not compiling. When compiling the project with Xcode 15.2, I am seeing below error. Reference screenshots are attached.

Error: Initializer for conditional binding must have Optional type, not 'CGFloat'

To Reproduce
Steps to reproduce the behavior:

  1. Use library version 3.2.0 in the project
  2. Compile it with Xcode 15.2
  3. Check the build error

Expected behavior
The project should be commpiled with Xcode 15.

Screenshots
Screenshot 2024-01-10 at 4 53 12 PM

Screenshot 2024-01-10 at 4 47 55 PM Screenshot 2024-01-10 at 4 48 17 PM

Versions (please complete the following information):

  • Xcode: Xcode 15.2
  • Device: iPhoneXR (& other models)
  • OS: iOS17.1.2
  • Library version 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions