Skip to content

ParseLiveQuery: 2 compilation errors related to Starscream #1738

Closed
@mathieulb

Description

@mathieulb

New Issue Checklist

Issue Description

Xcode 14.3.1 cannot compile ParseLiveQuery in ParseObjC 2.7.0 nor 2.3.0 (using StarScream 4.0.6, auto-installed as dep of ParseObjC)

Also cannot compile ParseLiveQuery & ParseObjC 1.19.4 recently (using pod), but 1.19.4 worked until updating pod.

Steps to reproduce

  • remove Parse from Podfile and run pod update
  • Xcode -> File -> Add Packages... -> add ParseObjC exact 2.7.0
  • Product -> Clean build folder... -> Clean
  • Product -> Build (2 errors)
  • Xcode -> File -> Add Packages... -> remove ParseObjC exact 2.7.0
  • Xcode -> File -> Add Packages... -> add ParseObjC exact 2.3.0
  • Product -> Clean build folder... -> Clean
  • Product -> Build (2 errors)
  • Xcode -> File -> Add Packages... -> remove ParseObjC exact 2.3.0
  • add back Parse 1.19.4 in Podfile and run pod update
  • Product -> Clean build folder... -> Clean
  • Product -> Build (2 errors, but this same version worked recently)

Actual Outcome

With two errors :

ParseLiveQuery/ParseLiveQuery/Internal/ClientPrivate.swift:116:1 Type 'Client' does not conform to protocol 'WebSocketDelegate' / fix: add public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocketClient)

ParseLiveQuery/ParseLiveQuery/Internal/ClientPrivate.swift:118:9 Switch must be exhaustive / fix: add case .peerClosed

Attempts to apply the 2 fixes require unlocking the file if installed as pod ; but if "Add Packages..." is used instead, those fixes cannot be apply because the file is read-only (note: buggy Xcode lets you apply the fix, then denies the possibility to remove the placeholders or typing anything)

Expected Outcome

No errors

Environment

Client

  • Parse ObjC SDK version: 2.7.0 or 2.3.0 (or fresh reinstall of 1.19.4 but not my former installation of the same version, which means an updated dep is causing the incompatibility)

Server

  • Parse Server version: not relevant for a compilation error in the client
  • Operating system: MacOS 13.5.1
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): not relevant for a compilation error in the client

Database

  • System (MongoDB or Postgres): not relevant for a compilation error in the client
  • Database version: not relevant until the client compiles
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): not relevant for a compilation error in the client

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions