From 1432c202d5c3176c86bab9ee3c257ed336bfe566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=85=94?= <12625134+whitehare2023@user.noreply.gitee.com> Date: Tue, 21 May 2024 06:41:49 +0800 Subject: [PATCH 1/8] Add podspec file for TronWebSwift --- ._tron_issue_fix.md | Bin 0 -> 4096 bytes TronWebSwift.podspec | 21 +++++++++++++++++++++ tron_issue_fix.md | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 ._tron_issue_fix.md create mode 100644 TronWebSwift.podspec create mode 100644 tron_issue_fix.md diff --git a/._tron_issue_fix.md b/._tron_issue_fix.md new file mode 100644 index 0000000000000000000000000000000000000000..107435fba445164d656caa84c71d688fe99fb6f4 GIT binary patch literal 4096 zcmeH~J#W)M7{|{+rL+|#127;ISwhZ)6Tc*dHnJd1R6#?bkhiu7Md!;oHt}10mr#&8 z^aJn#kXS%sL_#o>fvGSt06T)A6JG&!2&u@Fc#Q8}O17HOr z{!W=+<3}Uh15@l(0GNHlX11Q)1At4g?;}ROQn}afzv_$}mznFsf0hZh$M(TF_8`wm zLEpD=s?&u5bgAWHCUJQd;s9JY)NM#;m*8d-QhaH(JUo-T%jO#ZoH@*MAhHJ{_l%uW z1VH#l!xS<PuFAQ&xr~mmd?i;f znF;6KekmE@zji)0)NlsdDE@8g=Yzth*VA8jKkx1IPlD#@eY!P${rS84K3M$zUL52d z5p>_S2$iIlT&xlQZBpu!g>>4mY)n!fv>1i}c`n5+O|jwzg1AwZdZ<(L3ROc#y&lQd zZ!LF>rOq{iHAPY~qLdXCsiG)?npfpP*hmsz3zDQ4Ca9t;i;|iofu<(|f{^CGO%b-R zpca++c|j=%iex!XmqOjfVMbGfltN@W>>h%;$mH;bE_6Z*4LrAD5z@sC!`e(a%_Ol} zT8TbczFk$?HM%a>S07d%Wvg~i^+^`n={4Fyx(N-vR@6)D8Foe^e)gbtWJ22VhvkA( zV1}CXMB z9swjOrbYMw6R#T}%o|?N=B+^=WqB^N?Z>>04a(~_bla>KJ`POA>;GHPMUd$C{{XHL B&B*`& literal 0 HcmV?d00001 diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec new file mode 100644 index 0000000..29749ae --- /dev/null +++ b/TronWebSwift.podspec @@ -0,0 +1,21 @@ +Pod::Spec.new do |spec| + spec.name = 'TronWebSwift' + spec.version = '1.0.0' + spec.summary = 'A Swift wrapper for Tron Web API' + spec.description = <<-DESC + A Swift wrapper for Tron Web API to interact with Tron blockchain. + DESC + spec.homepage = 'https://github.com/mathwallet/TronWebSwift' + spec.license = { :type => 'MIT', :file => 'LICENSE' } + spec.author = { 'Math Wallet' => 'support@mathwallet.org' } + + spec.requires_arc = true + spec.source = { git: 'https://github.com/mathwallet/TronWebSwift.git', tag: '1.0.0' } + spec.source_files = 'TronWebSwift/**/*.{h,m,swift}' + spec.exclude_files = 'Sources/**/LinuxSupport.swift' + spec.ios.deployment_target = '13.0' + spec.swift_version = '5.0' + + spec.dependency 'Alamofire', '~> 5.4' + end + \ No newline at end of file diff --git a/tron_issue_fix.md b/tron_issue_fix.md new file mode 100644 index 0000000..02a1c7b --- /dev/null +++ b/tron_issue_fix.md @@ -0,0 +1,38 @@ + +# TronWebSwift Issue Fix + +## 问题 / Issue +在运行 `pod install` 时,出现了以下警告: +While running `pod install`, the following warnings appeared: + +``` +[!] A license was specified in podspec `TronWebSwift` but the file does not exist - /Volumes/WhiteHare_/wallet_ios/TronWebSwift/LICENSE +[!] Unable to read the license file `LICENSE` for the spec `TronWebSwift (1.0.0)` +``` + +## 原因 / Cause +`TronWebSwift.podspec` 文件中指定了一个不存在的 `LICENSE` 文件。 +The `TronWebSwift.podspec` file specifies a `LICENSE` file that does not exist. + +## 解决方法 / Solution +创建并添加一个 `LICENSE` 文件到 `TronWebSwift` 目录中。以下是 `TronWebSwift.podspec` 的例子: +Create and add a `LICENSE` file to the `TronWebSwift` directory. Here is an example of the `TronWebSwift.podspec` file: + +```ruby +Pod::Spec.new do |s| + s.name = 'TronWebSwift' + s.version = '1.0.0' + s.summary = 'A Swift wrapper for TronWeb.' + s.description = 'This is a Swift wrapper for TronWeb, providing the necessary functionalities for interacting with Tron blockchain.' + s.homepage = 'https://github.com/mathwallet/TronWebSwift' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'Author Name' => 'author@example.com' } + s.source = { :git => 'https://github.com/mathwallet/TronWebSwift.git', :tag => '1.0.0' } + s.platform = :ios, '11.0' + s.source_files = 'TronWebSwift/**/*.{swift,h,m}' + s.requires_arc = true +end +``` + +确保在 `TronWebSwift` 目录中有一个 `LICENSE` 文件。你可以使用 MIT 许可的标准文本,或者根据需要自定义。 +Ensure that there is a `LICENSE` file in the `TronWebSwift` directory. You can use the standard text for the MIT license or customize it as needed. From 7eaa80d2b68dbb8dfa977ff6ebd95f912b2c0cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:55:13 +0800 Subject: [PATCH 2/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index 29749ae..473a57b 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -1,21 +1,20 @@ Pod::Spec.new do |spec| - spec.name = 'TronWebSwift' - spec.version = '1.0.0' - spec.summary = 'A Swift wrapper for Tron Web API' - spec.description = <<-DESC - A Swift wrapper for Tron Web API to interact with Tron blockchain. - DESC - spec.homepage = 'https://github.com/mathwallet/TronWebSwift' - spec.license = { :type => 'MIT', :file => 'LICENSE' } - spec.author = { 'Math Wallet' => 'support@mathwallet.org' } - - spec.requires_arc = true - spec.source = { git: 'https://github.com/mathwallet/TronWebSwift.git', tag: '1.0.0' } - spec.source_files = 'TronWebSwift/**/*.{h,m,swift}' - spec.exclude_files = 'Sources/**/LinuxSupport.swift' - spec.ios.deployment_target = '13.0' - spec.swift_version = '5.0' - - spec.dependency 'Alamofire', '~> 5.4' - end - \ No newline at end of file + spec.name = 'TronWebSwift' + spec.version = '1.0.0' + spec.summary = 'A Swift wrapper for Tron Web API' + spec.description = <<-DESC + A Swift wrapper for Tron Web API to interact with Tron blockchain. + DESC + spec.homepage = 'https://github.com/Whitehare2023/TronWebSwift' + spec.license = { :type => 'MIT', :file => 'LICENSE' } + spec.author = { 'Math Wallet' => 'support@mathwallet.org' } + + spec.requires_arc = true + spec.source = { git: 'https://github.com/Whitehare2023/TronWebSwift.git', branch: 'add-podspec' } + spec.source_files = 'TronWebSwift/**/*.{h,m,swift}' + spec.exclude_files = 'Sources/**/LinuxSupport.swift' + spec.ios.deployment_target = '13.0' + spec.swift_version = '5.0' + + spec.dependency 'Alamofire', '~> 5.4' +end From 929616f342199739f10eb93e00a3924f1c588f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:59:29 +0800 Subject: [PATCH 3/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index 473a57b..6027193 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |spec| spec.requires_arc = true spec.source = { git: 'https://github.com/Whitehare2023/TronWebSwift.git', branch: 'add-podspec' } - spec.source_files = 'TronWebSwift/**/*.{h,m,swift}' + spec.source_files = 'Sources/TronWebSwift/**/*.{h,m,swift}' spec.exclude_files = 'Sources/**/LinuxSupport.swift' spec.ios.deployment_target = '13.0' spec.swift_version = '5.0' From 887d44421d51801d78ece0b6bfb862b3ec553695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:29:11 +0800 Subject: [PATCH 4/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index 6027193..8e47be8 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -17,4 +17,5 @@ Pod::Spec.new do |spec| spec.swift_version = '5.0' spec.dependency 'Alamofire', '~> 5.4' + spec.dependency 'SwiftProtobuf' end From 53be736b38890c8d91a0ab3ef69bc6d9c8dbffd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:34:41 +0800 Subject: [PATCH 5/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index 8e47be8..f8b1921 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -18,4 +18,5 @@ Pod::Spec.new do |spec| spec.dependency 'Alamofire', '~> 5.4' spec.dependency 'SwiftProtobuf' + spec.dependency 'BigInt' end From 434ec4b3b8c3ad7b74311cd8726bffbc92f1668b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:41:06 +0800 Subject: [PATCH 6/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index f8b1921..b0baa8d 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -19,4 +19,5 @@ Pod::Spec.new do |spec| spec.dependency 'Alamofire', '~> 5.4' spec.dependency 'SwiftProtobuf' spec.dependency 'BigInt' + spec.dependency 'PromiseKit' end From d02adabf1663ba9c56a5e453f7e6f4ce92c83c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:53:31 +0800 Subject: [PATCH 7/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index b0baa8d..cbe7bfe 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -20,4 +20,6 @@ Pod::Spec.new do |spec| spec.dependency 'SwiftProtobuf' spec.dependency 'BigInt' spec.dependency 'PromiseKit' + spec.dependency 'CryptoSwift' + end From 426ebe9a0a02ae666a045565b436dc54ffb41ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=B0=8F=E5=85=94=E5=AD=90?= <124434634+Whitehare2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:00:09 +0800 Subject: [PATCH 8/8] Update TronWebSwift.podspec --- TronWebSwift.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TronWebSwift.podspec b/TronWebSwift.podspec index cbe7bfe..2c136f6 100644 --- a/TronWebSwift.podspec +++ b/TronWebSwift.podspec @@ -21,5 +21,5 @@ Pod::Spec.new do |spec| spec.dependency 'BigInt' spec.dependency 'PromiseKit' spec.dependency 'CryptoSwift' - + spec.dependency 'BIP32Swift' end