From c85b9e53df077839841abbd632c8aadcb23f9f6f Mon Sep 17 00:00:00 2001 From: Shun Usami Date: Fri, 17 Aug 2018 10:57:59 +0900 Subject: [PATCH] :recycle: Fix podspec --- BitcoinKit.podspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BitcoinKit.podspec b/BitcoinKit.podspec index 49e5fdc2..caec896a 100644 --- a/BitcoinKit.podspec +++ b/BitcoinKit.podspec @@ -12,8 +12,9 @@ Pod::Spec.new do |spec| spec.requires_arc = true spec.source = { git: 'https://github.com/yenom/BitcoinKit.git', tag: "v#{spec.version}" } - spec.source_files = 'BitcoinKit/**/*.{h,m,swift}' + spec.source_files = 'BitcoinKit/**/*.{h,m,swift}', 'Sources/BitcoinKit/**/*.{h,m,swift}' spec.private_header_files = 'BitcoinKit/**/BitcoinKitPrivate.h' + spec.exclude_files = 'Sources/**/LinuxSupport.swift' spec.module_map = 'BitcoinKit/BitcoinKit.modulemap' spec.ios.deployment_target = '8.0' spec.swift_version = '4.1' @@ -22,7 +23,8 @@ Pod::Spec.new do |spec| 'APPLICATION_EXTENSION_API_ONLY' => 'YES', 'SWIFT_INCLUDE_PATHS' => '${PODS_ROOT}/BitcoinKit/Libraries', 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/BitcoinKit/Libraries/openssl/include" "${PODS_ROOT}/BitcoinKit/Libraries/secp256k1/include"', - 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/BitcoinKit/Libraries/openssl/lib" "${PODS_ROOT}/BitcoinKit/Libraries/secp256k1/lib"' } + 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/BitcoinKit/Libraries/openssl/lib" "${PODS_ROOT}/BitcoinKit/Libraries/secp256k1/lib"', + 'OTHER_SWIFT_FLAGS' => '-D BitcoinKitXcode' } spec.preserve_paths = ['setup', 'Libraries'] spec.prepare_command = 'sh setup/build_libraries.sh' end