aferodeveloper / AferoSwiftSDK

SDK for creating Swift/iOS-based Afero clients
MIT License
3 stars 1 forks source link

[BUG] Afero Framework Issue: Compiler error for simulator #45

Open beni-smoca opened 1 year ago

beni-smoca commented 1 year ago

Describe the bug AferoSwiftSDK has a compiler error when building for simulator.

File: AferoSwiftSDK/Core/Extensions.swift on line 608.

#if targetEnvironment(simulator)
extension Float80: DataConvertible { }
#endif

Compiler error: 'Float80' is unavailable: Float80 is not available on target platform.

To Reproduce Steps to reproduce the behavior:

  1. Checkout AferoSwiftSDK
  2. cd Examples
  3. bundle install
  4. pod install (might need to update CocoaPods version because of CryptoSwift dependency)
  5. open AferoSwiftSDK.xcworkspace
  6. Select any simulator as run destination
  7. Build & run project

Expected behavior AferoLab app starts on Simulator.

Development Environment (please complete the following information):

Deployment Environment (please complete the following information)

afjgeorge commented 1 year ago

Beni, did this work for you previously and just stopped working, or has it never worked?

Did you just recently switch from an intel Mac to an Apple Silicon Mac?

Thanks,

Joe

beni-smoca commented 1 year ago

Hi Joe. It has never worked in the last 12 months.

I tried it on two other machines. The problem only appears on Apple Silicon, on Intel Macs it works.

Seems to be only available on Intel Macs: https://developer.apple.com/documentation/swift/float80