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

Unable to include web3swift as a Podspec dependency #1

Open
cawfree opened this issue Apr 23, 2020 · 0 comments
Open

Unable to include web3swift as a Podspec dependency #1

cawfree opened this issue Apr 23, 2020 · 0 comments

Comments

@cawfree
Copy link
Owner

cawfree commented Apr 23, 2020

Issue

It is not possible to install web3swift in web3-react-native.podspec because it relies on us to specify :modular_headers => true, which the linter does not recognize:

s.dependency 'secp256k1.c', '0.1.2', :modular_headers => true
s.dependency 'web3swift', '2.2.1', :modular_headers => true

However, when doing this, executing pod install throws the following error:

[!] Invalid `Podfile` file: 
[!] Invalid `web3-react-native.podspec` file: [!] Unsupported version requirements. ["0.1.2", {:modular_headers=>true}] is not valid.

Workaround

Specify these dependencies manually in the App's Podfile:

pod 'secp256k1.c', '0.1.2', :modular_headers => true
pod 'web3swift', '2.2.1', :modular_headers => true

This is not acceptable though, because React Native libraries (>0.60) should not necessitate any manual configuration of the Podfile.

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

No branches or pull requests

1 participant