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

Not compiling, OpenSSL linking issue #31

Open
yspreen opened this issue Apr 9, 2021 · 5 comments
Open

Not compiling, OpenSSL linking issue #31

yspreen opened this issue Apr 9, 2021 · 5 comments

Comments

@yspreen
Copy link

yspreen commented Apr 9, 2021

Building for iOS Simulator, but linking in dylib built for macOS, file '/usr/local/Cellar/[email protected]/1.1.1k/lib/libcrypto.dylib' for architecture x86_64
@yspreen
Copy link
Author

yspreen commented Apr 9, 2021

That's obviously compiled for simulator. If I instead compile for a physical device, I get different errors:

Undefined symbol: _BN_bin2bn
Undefined symbol: _RSA_set0_key
Undefined symbol: _BIO_s_mem
Undefined symbol: _RSA_set0_crt_params
Undefined symbol: _BIO_read
Undefined symbol: _RSA_set0_factors
Undefined symbol: _PEM_write_bio_PrivateKey
Undefined symbol: _BIO_ctrl
Undefined symbol: _BIO_new
Undefined symbol: _EVP_PKEY_free
Undefined symbol: _RSA_new
Undefined symbol: _EVP_PKEY_assign
Undefined symbol: _PEM_write_bio_PUBKEY
Undefined symbol: _EVP_PKEY_new

@yspreen
Copy link
Author

yspreen commented Apr 9, 2021

Ah okay, there the warning is again:

Ld: warning: ignoring file /usr/local/Cellar/[email protected]/1.1.1k/lib/libcrypto.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64

@dannys42
Copy link
Contributor

Hi @yspreen, how are you compiling BlueECC? Are you including it in your project via cocoapods or SPM? Also what version of Xcode and macOS are you using?

@yspreen
Copy link
Author

yspreen commented Apr 13, 2021

Thanks for the reply @dannys42

I'm running Xcode 12.4 (12D4e), compiling via SPM. My macOS is still on Catalina.

@yspreen
Copy link
Author

yspreen commented Apr 13, 2021

It seems like the issue is actually with ibm-cloud-security/Swift-JWK-to-PEM

So the question becomes: Is there any way to use JWK public keys for signature validation?

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

2 participants