Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beni-smoca opened this issue Oct 19, 2023 · 2 comments
Open

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

beni-smoca opened this issue Oct 19, 2023 · 2 comments
Labels

Comments

@beni-smoca
Copy link

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):

  • OS: macOS 13/14
  • XCode Version 15.0/14.3.1
  • CocoaPods Version 1.10.0

Deployment Environment (please complete the following information)

  • Device: iPhone Simulator 14 Pro
  • OS: iOS 16/17
@beni-smoca beni-smoca added the bug label Oct 19, 2023
@afjgeorge
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants