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

ld: building for 'iOS-simulator', but linking in object file Tink.framework/Tink[arm64][2](TINKKeysetHandle+Cleartext.o)) built for 'iOS' #4

Open
gtokman opened this issue Nov 8, 2023 · 4 comments
Labels

Comments

@gtokman
Copy link

gtokman commented Nov 8, 2023

TINKKeysetHandle+Cleartext.o precompiled binary is not built for arm64. This causes integration issues for folks that want to run and test Tink on simulator.

Error:

ld: building for 'iOS-simulator', but linking in object file (Tink.framework/Tink[arm64][2](TINKKeysetHandle+Cleartext.o)) built for 'iOS'
@tholenst tholenst added the p3 label Nov 21, 2023
@erksch
Copy link

erksch commented Jul 8, 2024

Did you find a solution?

@erksch
Copy link

erksch commented Jul 15, 2024

We ended up making a custom build of the xcframework and hosting it in a private podspec.

git clone git@github.com:tink-crypto/tink-objc.git
cd tink-objc
bazel build //Tink:preprocessed_tink_static_xcframework

@chuckx
Copy link
Contributor

chuckx commented Jul 17, 2024

You might have noticed that the build target you used (//Tink:preprocessed_tink_static_xcframework) did not exist at the time this issue was opened. It was added recently as part of the process of reviving the Obj-C release process.

Out of curiosity, were you able to try to use the //Tink:Tink_static_xcframework target? It goes through a symbol hiding pass to avoid issues where it's linked in binaries which also include OpenSSL.

@erksch
Copy link

erksch commented Jul 17, 2024

@chuckx No we have only used the preprocessed_tink_static_xcframework target and had no issues. But we can switch to Tink_static_xcframework if its recommended.

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

No branches or pull requests

4 participants