yenom / BitcoinKit

Bitcoin protocol toolkit for Swift
MIT License
842 stars 262 forks source link

Fails to install using cocoapods #193

Open Sajjon opened 5 years ago

Sajjon commented 5 years ago

Current behavior

Fails to install using cocoapods 1.5.3 and Xcode 10.1, see detailed environment description below.

⬅️ CLICK HERE to expand for error log from console ```bash Installing BitcoinKit (1.0.2) [!] /bin/bash -c set -e sh setup/build_libraries.sh glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. glibtoolize: copying file 'build-aux/ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'. glibtoolize: copying file 'build-aux/m4/libtool.m4' glibtoolize: copying file 'build-aux/m4/ltoptions.m4' glibtoolize: copying file 'build-aux/m4/ltsugar.m4' glibtoolize: copying file 'build-aux/m4/ltversion.m4' glibtoolize: copying file 'build-aux/m4/lt~obsolete.m4' checking build system type... x86_64-apple-darwin18.2.0 checking host system type... x86_64-apple-darwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-apple-darwin-strip... no checking for strip... strip checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) checking for x86_64-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to accept ISO C89... none needed checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang understands -c and -o together... yes checking dependency style of /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... no checking for x86_64-apple-darwin-dumpbin... no checking for x86_64-apple-darwin-link... no checking for dumpbin... no checking for link... link -dump checking the name lister (nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin18.2.0 file names to x86_64-apple-darwin format... func_convert_file_noop checking how to convert x86_64-apple-darwin18.2.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for x86_64-apple-darwin-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-apple-darwin-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-apple-darwin-ar... no checking for ar... ar checking for archiver @FILE support... no checking for x86_64-apple-darwin-strip... strip checking for x86_64-apple-darwin-ranlib... no checking for ranlib... ranlib checking command to parse nm output from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for x86_64-apple-darwin-mt... no checking for mt... no checking if : is a manifest tool... no checking for x86_64-apple-darwin-dsymutil... no checking for dsymutil... dsymutil checking for x86_64-apple-darwin-nmedit... no checking for nmedit... nmedit checking for x86_64-apple-darwin-lipo... no checking for lipo... lipo checking for x86_64-apple-darwin-otool... no checking for otool... otool checking for x86_64-apple-darwin-otool64... no checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -fno-rtti -fno-exceptions... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to produce PIC... -fno-common -DPIC checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang PIC flag -fno-common -DPIC works... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang static flag -static works... no checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -c -o file.o... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -c -o file.o... (cached) yes checking whether the /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether make supports nested variables... (cached) yes checking for x86_64-apple-darwin-pkg-config... no checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for x86_64-apple-darwin-ar... no checking for ar... /usr/bin/ar checking for x86_64-apple-darwin-ranlib... no checking for ranlib... /usr/bin/ranlib checking for x86_64-apple-darwin-strip... no checking for strip... /usr/bin/strip checking for gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to accept ISO C89... (cached) none needed checking dependency style of /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... gcc3 checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -fvisibility=hidden... yes checking for __int128... no checking for __builtin_expect... yes checking native compiler: gcc... gcc does not produce working binaries. Please set CC_FOR_BUILD checking for x86_64 assembly availability... no checking gmp.h usability... no checking gmp.h presence... no checking for gmp.h... no checking for libcrypto... yes checking for main in -lcrypto... no checking openssl/crypto.h usability... yes checking openssl/crypto.h presence... no checking for openssl/crypto.h... yes checking for main in -lcrypto... (cached) no checking whether byte ordering is bigendian... universal configure: Using static precomputation: no configure: Using assembly optimizations: no configure: Using field implementation: 32bit configure: Using bignum implementation: no configure: Using scalar implementation: 32bit configure: Using endomorphism optimizations: no configure: Building benchmarks: yes configure: Building for coverage analysis: no configure: Building ECDH module: no configure: Building ECDSA pubkey recovery module: no configure: Using jni: no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libsecp256k1.pc config.status: creating src/libsecp256k1-config.h config.status: executing depfiles commands config.status: executing libtool commands CC src/bench_verify.o CC src/libsecp256k1_la-secp256k1.lo CCLD libsecp256k1.la CCLD bench_verify CC src/bench_sign.o CCLD bench_sign CC src/bench_internal-bench_internal.o CCLD bench_internal CC src/bench_ecmult-bench_ecmult.o CCLD bench_ecmult CC src/tests-tests.o CCLD tests CC src/exhaustive_tests-tests_exhaustive.o CCLD exhaustive_tests build-aux/install-sh -c -d '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib' /bin/sh ./libtool --mode=install /usr/bin/install -c libsecp256k1.la '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib' libtool: install: /usr/bin/install -c .libs/libsecp256k1.0.dylib /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/libsecp256k1.0.dylib libtool: install: (cd /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib && { ln -s -f libsecp256k1.0.dylib libsecp256k1.dylib || { rm -f libsecp256k1.dylib && ln -s libsecp256k1.0.dylib libsecp256k1.dylib; }; }) libtool: install: /usr/bin/install -c .libs/libsecp256k1.lai /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/libsecp256k1.la libtool: install: /usr/bin/install -c .libs/libsecp256k1.a /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/libsecp256k1.a libtool: install: chmod 644 /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/libsecp256k1.a libtool: install: /usr/bin/ranlib /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/libsecp256k1.a build-aux/install-sh -c -d '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/include' /usr/bin/install -c -m 644 include/secp256k1.h '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/include' build-aux/install-sh -c -d '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/pkgconfig' /usr/bin/install -c -m 644 libsecp256k1.pc '/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos/lib/pkgconfig' checking build system type... x86_64-apple-darwin18.2.0 checking host system type... arm-apple-darwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-apple-darwin-strip... no checking for strip... strip checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) checking for arm-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to accept ISO C89... none needed checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang understands -c and -o together... yes checking dependency style of /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... no checking for arm-apple-darwin-dumpbin... no checking for arm-apple-darwin-link... no checking for dumpbin... no checking for link... link -dump checking the name lister (nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin18.2.0 file names to arm-apple-darwin format... func_convert_file_noop checking how to convert x86_64-apple-darwin18.2.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for arm-apple-darwin-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for arm-apple-darwin-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for arm-apple-darwin-ar... no checking for ar... ar checking for archiver @FILE support... no checking for arm-apple-darwin-strip... strip checking for arm-apple-darwin-ranlib... no checking for ranlib... ranlib checking command to parse nm output from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for arm-apple-darwin-mt... no checking for mt... no checking if : is a manifest tool... no checking for arm-apple-darwin-dsymutil... no checking for dsymutil... dsymutil checking for arm-apple-darwin-nmedit... no checking for nmedit... nmedit checking for arm-apple-darwin-lipo... no checking for lipo... lipo checking for arm-apple-darwin-otool... no checking for otool... otool checking for arm-apple-darwin-otool64... no checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -fno-rtti -fno-exceptions... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to produce PIC... -fno-common -DPIC checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang PIC flag -fno-common -DPIC works... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang static flag -static works... no checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -c -o file.o... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -c -o file.o... (cached) yes checking whether the /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether make supports nested variables... (cached) yes checking for arm-apple-darwin-pkg-config... no checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for arm-apple-darwin-ar... no checking for ar... /usr/bin/ar checking for arm-apple-darwin-ranlib... no checking for ranlib... /usr/bin/ranlib checking for arm-apple-darwin-strip... no checking for strip... /usr/bin/strip checking for gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang option to accept ISO C89... (cached) none needed checking dependency style of /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang... gcc3 checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang supports -fvisibility=hidden... yes checking for __int128... no checking for __builtin_expect... yes checking native compiler: gcc... gcc does not produce working binaries. Please set CC_FOR_BUILD checking for x86_64 assembly availability... no checking gmp.h usability... no checking gmp.h presence... no checking for gmp.h... no checking for libcrypto... yes checking for main in -lcrypto... yes checking for EC functions in libcrypto... yes checking whether byte ordering is bigendian... no configure: Using static precomputation: no configure: Using assembly optimizations: no configure: Using field implementation: 32bit configure: Using bignum implementation: no configure: Using scalar implementation: 32bit configure: Using endomorphism optimizations: no configure: Building benchmarks: yes configure: Building for coverage analysis: no configure: Building ECDH module: no configure: Building ECDSA pubkey recovery module: no configure: Using jni: no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libsecp256k1.pc config.status: creating src/libsecp256k1-config.h config.status: executing depfiles commands config.status: executing libtool commands CC src/bench_verify.o CC src/libsecp256k1_la-secp256k1.lo CCLD libsecp256k1.la CCLD bench_verify ++ dirname setup/build_libraries.sh + SCRIPT_DIR=setup + cd setup + sh build_secp256k1.sh ++ dirname build_secp256k1.sh + SCRIPT_DIR=. ++ mktemp -d + TDIR=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK + trap '{ cd - ; rm -rf /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK; exit 255; }' SIGINT + cd /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK + git clone https://github.com/bitcoin-core/secp256k1.git src Cloning into 'src'... ++ pwd + CURRENTPATH=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK + TARGETDIR_IPHONEOS=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos + mkdir -p /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos + TARGETDIR_SIMULATOR=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphonesimulator + mkdir -p /var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphonesimulator + cd src + ./autogen.sh configure.ac:10: installing 'build-aux/compile' configure.ac:5: installing 'build-aux/config.guess' configure.ac:5: installing 'build-aux/config.sub' configure.ac:9: installing 'build-aux/install-sh' configure.ac:9: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' + cd src ++ xcrun -find clang ++ xcrun -sdk iphonesimulator --show-sdk-path ++ xcrun -find clang++ ++ xcrun -sdk iphonesimulator --show-sdk-path + ./configure --host=x86_64-apple-darwin CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 'CFLAGS=-O3 -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fembed-bitcode-marker -mios-simulator-version-min=8.0' CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ 'CXXFLAGS=-O3 -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fembed-bitcode-marker -mios-simulator-version-min=8.0' --prefix=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphoneos configure: WARNING: using cross tools not prefixed with host triplet configure: WARNING: openssl/crypto.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: openssl/crypto.h: proceeding with the compiler's result + make install ld: warning: -flat_namespace is deprecated on iOS Simulator ld: warning: -flat_namespace is deprecated on iOS Simulator + cd src ++ xcrun -find clang ++ xcrun -sdk iphoneos --show-sdk-path ++ xcrun -find clang++ ++ xcrun -sdk iphoneos --show-sdk-path + ./configure --host=arm-apple-darwin CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 'CFLAGS=-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -fembed-bitcode -mios-version-min=8.0' CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ 'CXXFLAGS=-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -fembed-bitcode -mios-version-min=8.0' --prefix=/var/folders/qp/6xfqjd090yb93vh59t5ttkb80000gn/T/tmp.KKF3B0UK/.build/iphonesimulator configure: WARNING: using cross tools not prefixed with host triplet + make install ld: warning: -flat_namespace is deprecated on iOS ld: warning: -flat_namespace is deprecated on iOS ld: warning: -flat_namespace is deprecated on iOS ld: warning: ignoring file /usr/local/opt/openssl/lib/libcrypto.dylib, file was built for x86_64 which is not the architecture being linked (armv7): /usr/local/opt/openssl/lib/libcrypto.dylib Undefined symbols for architecture armv7: "_ECDSA_verify", referenced from: _benchmark_verify_openssl in bench_verify.o "_EC_GROUP_free", referenced from: _main in bench_verify.o "_EC_GROUP_new_by_curve_name", referenced from: _main in bench_verify.o "_EC_KEY_free", referenced from: _benchmark_verify_openssl in bench_verify.o "_EC_KEY_new", referenced from: _benchmark_verify_openssl in bench_verify.o "_EC_KEY_set_group", referenced from: _benchmark_verify_openssl in bench_verify.o "_o2i_ECPublicKey", referenced from: _benchmark_verify_openssl in bench_verify.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bench_verify] Error 1 ```

Expected behavior

Expect Cocoapods to be able to finish installing BitcoinKit

Steps to reproduce

  1. Podfile:

Neither swift4.2 branch neither tag ~> 1.0.2 works

platform :ios, '11.0'
inhibit_all_warnings!
use_frameworks!

def shared
  pod 'SwiftLint'
  pod 'SwiftyBeaver' 
  pod 'RxSwift'
  pod 'BitcoinKit', :git => 'https://github.com/yenom/BitcoinKit.git', :branch => 'swift4.2'
end

target 'MyCocoaTouchFramework' do
  shared

  target 'MyCocoaTouchFrameworkTests' do
    inherit! :search_paths
    pod 'RxTest'
    pod 'RxBlocking'
  end
end
  1. bundle exec pod install
  2. Fail.

Environment

Sajjon commented 5 years ago

Works fine using Carthage though.

iov42sgazdag commented 5 years ago

Carthage is sometimes not an option. btw still not working the secp256k1 referenced in the modulemap is nowhere to be found.

iov42sgazdag commented 5 years ago

Any luck anyone?

Sajjon commented 5 years ago

This project seems abandoned.

iov42sgazdag commented 5 years ago

Ah thanks. Good to know.

usatie commented 5 years ago

Thank you for reporting, now I'm back to fix the issue.

Sajjon commented 5 years ago

Hopefully people will move over to Swift Package Manager instead of Cocoapods though, now that SPM is finally available for iOS🎉

usatie commented 5 years ago

@Sajjon that's so true.

And now CocoaPods works with this Podfile.

target 'SandBox' do
  use_frameworks!

  pod 'BitcoinKit', :git => 'https://github.com/yenom/BitcoinKit.git', :branch => 'cocoapods-1-1-0-beta4'
end
robertodaviduk commented 3 years ago

Hopefully people will move over to Swift Package Manager instead of Cocoapods though, now that SPM is finally available for iOS🎉

This works but I am getting the following error:

Value of type 'OpaquePointer' has no member 'pointee'

Do you have same issue?