yenom / BitcoinKit

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

Pod Install Fails #255

Open MagicFlow29 opened 4 years ago

MagicFlow29 commented 4 years ago

Current behavior

Pod Install fails with the following:

`++ xcrun -sdk iphoneos --show-sdk-path

Steps to reproduce

  1. Follow instructions - run pod. (After installing l$ brew install autoconf automake and libtools

Environment

iampawan commented 4 years ago

Facing same issue 😑

tranhoangthanh commented 4 years ago

hj, pro please check email?

iampawan commented 4 years ago

Anyone found a solution?

tranhoangthanh commented 4 years ago

please help i fix error?

Vào 20:55, Th 7, 29 thg 8, 2020 Pawan Kumar notifications@github.com đã viết:

Anyone found a solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yenom/BitcoinKit/issues/255#issuecomment-683293538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKQLCZK46DIFI4F2AJVW3LSDECEDANCNFSM4QILCK7Q .

nabbestemmia commented 4 years ago

Any news about this issue? I am stuck on the same problem, with Big Sur. Xcode 11 or 12 doesn't change anything

ivanlunardi commented 4 years ago

I made a lot of test: if you try to add (cd src && make distclean > /dev/null) (cd src && ./autogen.sh) after line 22 in setup/build_secp256k1.sh it seems works

nabbestemmia commented 4 years ago

I made a lot of test: if you try to add (cd src && make distclean > /dev/null) (cd src && ./autogen.sh) after line 22 in setup/build_secp256k1.sh it seems works

So according to your suggestion lines 21-25 would become


(cd src && ./autogen.sh)
(cd src && ./configure --host=x86_64-apple-darwin CC=`xcrun -find clang` CFLAGS="-O3 -arch i386 -arch x86_64 -isysroot `xcrun -sdk iphonesimulator --show-sdk-path` -fembed-bitcode-marker -mios-simulator-version-min=8.0" CXX=`xcrun -find clang++` CXXFLAGS="-O3 -arch i386 -arch x86_64 -isysroot `xcrun -sdk iphonesimulator --show-sdk-path` -fembed-bitcode-marker -mios-simulator-version-min=8.0" --prefix="$TARGETDIR_IPHONEOS" && make install)
(cd src && make distclean > /dev/null)
(cd src && ./autogen.sh)
(cd src && ./configure --host=arm-apple-darwin CC=`xcrun -find clang` CFLAGS="-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot `xcrun -sdk iphoneos --show-sdk-path` -fembed-bitcode -mios-version-min=8.0" CXX=`xcrun -find clang++` CXXFLAGS="-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot `xcrun -sdk iphoneos --show-sdk-path` -fembed-bitcode -mios-version-min=8.0" --prefix="$TARGETDIR_SIMULATOR" && make install)

Am I correct?

ivanlunardi commented 4 years ago

Yes,

I made a lot of test: if you try to add (cd src && make distclean > /dev/null) (cd src && ./autogen.sh) after line 22 in setup/build_secp256k1.sh it seems works

So according to your suggestion lines 21-25 would become


(cd src && ./autogen.sh)
(cd src && ./configure --host=x86_64-apple-darwin CC=`xcrun -find clang` CFLAGS="-O3 -arch i386 -arch x86_64 -isysroot `xcrun -sdk iphonesimulator --show-sdk-path` -fembed-bitcode-marker -mios-simulator-version-min=8.0" CXX=`xcrun -find clang++` CXXFLAGS="-O3 -arch i386 -arch x86_64 -isysroot `xcrun -sdk iphonesimulator --show-sdk-path` -fembed-bitcode-marker -mios-simulator-version-min=8.0" --prefix="$TARGETDIR_IPHONEOS" && make install)
(cd src && make distclean > /dev/null)
(cd src && ./autogen.sh)
(cd src && ./configure --host=arm-apple-darwin CC=`xcrun -find clang` CFLAGS="-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot `xcrun -sdk iphoneos --show-sdk-path` -fembed-bitcode -mios-version-min=8.0" CXX=`xcrun -find clang++` CXXFLAGS="-O3 -arch armv7 -arch armv7s -arch arm64 -isysroot `xcrun -sdk iphoneos --show-sdk-path` -fembed-bitcode -mios-version-min=8.0" --prefix="$TARGETDIR_SIMULATOR" && make install)

Am I correct?

Yes

nabbestemmia commented 4 years ago

I forked this project on my account and tried you suggestion but it did not work unfortunately. It actually works for simulator but not on my physical device

ivanlunardi commented 4 years ago

I forked this project on my account and tried you suggestion but it did not work unfortunately. It actually works for simulator but not on my physical device

the setup/build_secp256k1.sh end without error ? Have you try to remove from cocoapods cache ? ( if you use cocoapods )

lpardo-atix commented 4 years ago

Facing same issue 😑 in a new project, in an old one works fine

shuvayansaha commented 3 years ago

(cd src && ./autogen.sh)

where need to add this?

CYC666 commented 2 years ago

pod 'BitcoinCore.swift', :path => './BTCSDK/' pod 'BitcoinKit.swift', :path => './BTCSDK/' pod 'BitcoinCashKit.swift', :path => './BTCSDK/' pod 'Hodler.swift', :path => './BTCSDK/' pod 'HsToolKit.swift', git: 'https://github.com/horizontalsystems/hs-tool-kit-ios'

It seems OK. But I Cann't send BTC to any wallet. Can you help me?

SurpriseMF3000 commented 2 years ago

Same issue here.

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '14.7'

target 'btctransaction' do
  use_frameworks!
  pod 'BitcoinKit', '~> 1.1.0'

end

Error: xctoolchain/usr/bin/lipo: /var/folders/gp/zf5ylzvn7d326cwb67646j6c0000gn/T/tmp.8tza5xtA/.build/iphoneos/lib/libsecp256k1.a and /var/folders/gp/zf5ylzvn7d326cwb67646j6c0000gn/T/tmp.8tza5xtA/.build/iphonesimulator/lib/libsecp256k1.a have the same architectures (i386) and can't be in the same fat output file

...have the same architectures (i386) and can't be in the same fat output file

Without this package works everything fine.

Apple M1 MacOS: 15.2 Big Sur

Are there any solutions?

OvergrowthZhang commented 3 months ago

face same issue