清理重复 Podfile 配置
This commit is contained in:
parent
6a0a1223b1
commit
822949f6cc
@ -7,8 +7,8 @@
|
|||||||
## 语言与工程约束
|
## 语言与工程约束
|
||||||
|
|
||||||
- **主要语言**:Swift(Podspec 声明 `s.swift_versions = ["5.10"]`,见 `RDEpubReaderView.podspec`)
|
- **主要语言**:Swift(Podspec 声明 `s.swift_versions = ["5.10"]`,见 `RDEpubReaderView.podspec`)
|
||||||
- **最低系统版本**:Podspec `iOS 15.0`(`RDEpubReaderView.podspec`),示例工程 Podfile/构建设置里常见为 `iOS 15.6`(`Podfile`)
|
- **最低系统版本**:Podspec `iOS 15.0`(`RDEpubReaderView.podspec`),示例工程 Podfile/构建设置里常见为 `iOS 15.6`(`ReadViewDemo/Podfile`)
|
||||||
- **依赖管理**:CocoaPods(`Podfile`、`ReadViewDemo/Podfile`、`Podfile.lock`)
|
- **依赖管理**:CocoaPods(`ReadViewDemo/Podfile`、`ReadViewDemo/Podfile.lock`)
|
||||||
|
|
||||||
## 命名约定
|
## 命名约定
|
||||||
|
|
||||||
@ -76,7 +76,7 @@
|
|||||||
## Evidence(关键证据文件)
|
## Evidence(关键证据文件)
|
||||||
|
|
||||||
- `CONTEXT.md`
|
- `CONTEXT.md`
|
||||||
- `Podfile`
|
- `ReadViewDemo/Podfile`
|
||||||
- `RDEpubReaderView.podspec`
|
- `RDEpubReaderView.podspec`
|
||||||
- `ReadViewDemo/ReadViewDemo/ViewController.swift`
|
- `ReadViewDemo/ReadViewDemo/ViewController.swift`
|
||||||
- `Sources/RDEpubReaderView/ReaderView/RDEpubReaderView.swift`
|
- `Sources/RDEpubReaderView/ReaderView/RDEpubReaderView.swift`
|
||||||
|
|||||||
@ -64,13 +64,13 @@
|
|||||||
|
|
||||||
### CocoaPods 依赖准备
|
### CocoaPods 依赖准备
|
||||||
|
|
||||||
> 仓库包含示例工程 `ReadViewDemo`,并已提交 `Pods/` 与 `Podfile.lock`。如本地环境未同步,可在仓库根或示例工程目录运行:
|
> 仓库包含示例工程 `ReadViewDemo`,并已提交 `ReadViewDemo/Pods/` 与 `ReadViewDemo/Podfile.lock`。如本地环境未同步,请在示例工程目录运行:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pod install
|
cd ReadViewDemo && pod install
|
||||||
```
|
```
|
||||||
|
|
||||||
(依赖入口:`Podfile`、`ReadViewDemo/Podfile`)
|
(依赖入口:`ReadViewDemo/Podfile`)
|
||||||
|
|
||||||
### 运行 UI 测试
|
### 运行 UI 测试
|
||||||
|
|
||||||
|
|||||||
30
Podfile
30
Podfile
@ -1,30 +0,0 @@
|
|||||||
platform :ios, '15.6'
|
|
||||||
use_frameworks!
|
|
||||||
|
|
||||||
workspace 'ReadViewSDK.xcworkspace'
|
|
||||||
project 'ReadViewSDK.xcodeproj'
|
|
||||||
|
|
||||||
target 'ReadViewSDK' do
|
|
||||||
pod 'RDEpubReaderView', :path => '..'
|
|
||||||
end
|
|
||||||
|
|
||||||
post_install do |installer|
|
|
||||||
apply_settings = lambda do |config|
|
|
||||||
config.build_settings['ENABLE_USER_SCRIPT_SANDBOXING'] = 'NO'
|
|
||||||
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.6'
|
|
||||||
end
|
|
||||||
|
|
||||||
# Pods project (Pods.xcodeproj)
|
|
||||||
installer.pods_project.build_configurations.each { |c| apply_settings.call(c) }
|
|
||||||
installer.pods_project.targets.each { |t| t.build_configurations.each { |c| apply_settings.call(c) } }
|
|
||||||
|
|
||||||
installer.aggregate_targets.each do |at|
|
|
||||||
p = at.user_project
|
|
||||||
next unless p
|
|
||||||
|
|
||||||
# User project(s) that integrate Pods (e.g. ReadViewDemo / ReadViewSDK)
|
|
||||||
p.build_configurations.each { |c| apply_settings.call(c) }
|
|
||||||
p.targets.each { |t| t.build_configurations.each { |c| apply_settings.call(c) } }
|
|
||||||
p.save
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -3,7 +3,7 @@ platform :ios, '15.6'
|
|||||||
target 'ReadViewDemo' do
|
target 'ReadViewDemo' do
|
||||||
# Comment the next line if you don't want to use dynamic frameworks
|
# Comment the next line if you don't want to use dynamic frameworks
|
||||||
use_frameworks!
|
use_frameworks!
|
||||||
pod 'RDEpubReaderView', :path => '..'
|
pod 'RDEpubReaderView', :path => '../Sources/RDEpubReaderView'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user