polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
447 stars 147 forks source link

iOS example not working #432

Closed itssagunkarki closed 5 months ago

itssagunkarki commented 5 months ago

Platform on which you observed the bug:

Describe the bug Description of your observation

pftp_request.pb

#if swift(>=4.2)

extension Communications_PbPFtpOperation.Command {
  // Support synthesized by the compiler.
}

#endif  // swift(>=4.2)

How to Reproduce The GitHub actions are throwing some errors, and the build has failed. When I try to build the example app, it shows an error somewhere in the file I posted above.

image
itssagunkarki commented 5 months ago

I found that we need to install the older versions of SDK and upgrade it to the newer version, not just the newest one.

YohayBar commented 2 months ago

Had the same issue, based on the answer above here how it was solved for me:

  1. downgrade to version 5.4.0 in PodFile
target 'iosBleSdkTestApp' do
    pod 'PolarBleSdk', '5.4.0'
end
  1. run pod install `
  2. set back to 5.5.0

target 'iosBleSdkTestApp' do pod 'PolarBleSdk', '5.5.0' end



4. run` pod install ` again