torusresearch / customauth-swift-sdk

Swift SDK that allows applications to directly interact with the Torus Network, similar to how Torus Wallet does.
BSD 3-Clause "New" or "Revised" License
10 stars 17 forks source link

Xcode 12.5 compile issues with cocoapods #7

Open simonmcl opened 3 years ago

simonmcl commented 3 years ago

Hi,

I'm trying to integrate this pod into an app using cocoapods and i'm getting complication errors from an outdated version of CryptoSwift. And a warning that there is "No rule to process" one of the bundled json files for arm64 arch.

Screenshot 2021-06-17 at 16 39 29

CryptoSwift is aware of the build errors issue and fixed it, seems you are using one that is out of date: https://github.com/krzyzanowskim/CryptoSwift/issues/870

SaleemFlatCircle commented 3 years ago

Having this issue as well

SaleemFlatCircle commented 3 years ago

Seems to be because the Torus-utils dependency is dependent on Torus-fetchNodeDetails which is dependent on web3swift which is dependant on CryptoSwift version 1.0.0, an older version of CryptoSwift thats causing these errors in Xcode 12.5+

phuctm97 commented 3 years ago

Hi @SaleemFlatCircle, one workaround now is to go to your Flutter project /ios/Podfile, add this line

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  # Add this line
  pod 'web3swift', :git => 'https://github.com/lvyikai/web3swift.git', :branch => 'develop'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

Let me know if it works for you.

SaleemFlatCircle commented 3 years ago

I can confirm the above workaround does work

phuctm97 commented 3 years ago

Thanks @SaleemFlatCircle, if it is resolved, please close the issue 🙏🏻

simonmcl commented 3 years ago

@phuctm97 he has only proposed a workaround, it doesn’t fix the issue for everyone else. Also I was the one that opened the issue.

The dependencies of this library need to be updated to fix the issue permanently