tink-crypto / tink

Tink is a multi-language, cross-platform, open source library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
https://developers.google.com/tink
Apache License 2.0
13.47k stars 1.18k forks source link

Can't create static framework for ObjC #529

Closed miwandn closed 8 months ago

miwandn commented 3 years ago

Trying to create a static library following the steps provided in the read me.

Cloned the repository cd Tink Running this command

export XCODE_VERSION=12.5.1
export IOS_SDK=13
bazel build -c opt --ios_multi_cpus=i386,x86_64,armv7,arm64 --xcode_version="${XCODE_VERSION}" --ios_sdk_version="${IOS_SDK}" //objc:Tink_framework

gives this error

Skipping '//objc:Tink_framework': error loading package 'objc': Unable to find package for @build_bazel_rules_apple//apple:ios.bzl: The repository '@build_bazel_rules_apple' could not be resolved.
WARNING: Target pattern parsing failed.
ERROR: error loading package 'objc': Unable to find package for @build_bazel_rules_apple//apple:ios.bzl: The repository '@build_bazel_rules_apple' could not be resolved.
INFO: Elapsed time: 0.078s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
sethfri commented 2 years ago

Hi @chuckx @thaidn, any update on this? Tink hasn't been buildable from source for Obj-C in at least 7 months it seems

garrettmoon commented 2 years ago

I'm sure it's the wrong way to fix, and I doubt Google wants me to PR it but I was able to get a build: https://github.com/garrettmoon/tink

I updated the instructions as well.

morambro commented 8 months ago

Tink Obj-C has moved to its own repo: https://github.com/tink-crypto/tink-objc. Please create a new issue in https://github.com/tink-crypto/tink-objc/issues for any related concern.