Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ._tron_issue_fix.md
Binary file not shown.
25 changes: 25 additions & 0 deletions TronWebSwift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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/Whitehare2023/TronWebSwift'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.author = { 'Math Wallet' => '[email protected]' }

spec.requires_arc = true
spec.source = { git: 'https://github.com/Whitehare2023/TronWebSwift.git', branch: 'add-podspec' }
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'

spec.dependency 'Alamofire', '~> 5.4'
spec.dependency 'SwiftProtobuf'
spec.dependency 'BigInt'
spec.dependency 'PromiseKit'
spec.dependency 'CryptoSwift'
spec.dependency 'BIP32Swift'
end
38 changes: 38 additions & 0 deletions tron_issue_fix.md
Original file line number Diff line number Diff line change
@@ -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' => '[email protected]' }
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.