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

#include "./secp256k1.h" Report an error './secp256k1.h' file not found #443

Closed
yzi2333 opened this issue Oct 13, 2023 · 6 comments
Closed
Labels
🤔 question Further information is requested

Comments

@yzi2333
Copy link

yzi2333 commented Oct 13, 2023

#include "./secp256k1.h" Report an error './secp256k1.h' file not found

@yzi2333
Copy link
Author

yzi2333 commented Oct 13, 2023

I've tried many times

@csjones
Copy link
Contributor

csjones commented Oct 13, 2023

Hey @yzi2333 👋

Would you give me more details to where you're seeing this issue? Additionally, knowing what Swift toolchain and Xcode version you're using would be helpful.

@csjones csjones added the 🤔 question Further information is requested label Oct 13, 2023
@yzi2333
Copy link
Author

yzi2333 commented Oct 14, 2023

Xcode version 15.0
Apple Swift version 5.9
This happened after I imported the package from local through SPM. When I compiled xcode, I got this error, saying that the .h file could not be found.

@csjones
Copy link
Contributor

csjones commented Oct 14, 2023

It seems the submodules are not being fetched. When cloning the package locally, make sure to recurse the repository so libsecp256k1 is initialized. When cloning this package directly, it would look like this:

git clone --recurse-submodules https://github.com/GigaBitcoin/secp256k1.swift.git

@yzi2333
Copy link
Author

yzi2333 commented Oct 14, 2023

ok,Work out,thank you

@csjones
Copy link
Contributor

csjones commented Oct 14, 2023

You're welcome and I'm glad to hear it worked @yzi2333! If you want to return the favor, starring this repo helps a lot 😁

@csjones csjones closed this as completed Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants