diff --git a/Doc/CONVENTIONS.md b/Doc/CONVENTIONS.md index df801b0..f53d617 100644 --- a/Doc/CONVENTIONS.md +++ b/Doc/CONVENTIONS.md @@ -7,8 +7,8 @@ ## 语言与工程约束 - **主要语言**:Swift(Podspec 声明 `s.swift_versions = ["5.10"]`,见 `RDEpubReaderView.podspec`) -- **最低系统版本**:Podspec `iOS 15.0`(`RDEpubReaderView.podspec`),示例工程 Podfile/构建设置里常见为 `iOS 15.6`(`Podfile`) -- **依赖管理**:CocoaPods(`Podfile`、`ReadViewDemo/Podfile`、`Podfile.lock`) +- **最低系统版本**:Podspec `iOS 15.0`(`RDEpubReaderView.podspec`),示例工程 Podfile/构建设置里常见为 `iOS 15.6`(`ReadViewDemo/Podfile`) +- **依赖管理**:CocoaPods(`ReadViewDemo/Podfile`、`ReadViewDemo/Podfile.lock`) ## 命名约定 @@ -76,7 +76,7 @@ ## Evidence(关键证据文件) - `CONTEXT.md` -- `Podfile` +- `ReadViewDemo/Podfile` - `RDEpubReaderView.podspec` - `ReadViewDemo/ReadViewDemo/ViewController.swift` - `Sources/RDEpubReaderView/ReaderView/RDEpubReaderView.swift` diff --git a/Doc/TESTING.md b/Doc/TESTING.md index 95431ad..f506a58 100644 --- a/Doc/TESTING.md +++ b/Doc/TESTING.md @@ -64,13 +64,13 @@ ### CocoaPods 依赖准备 -> 仓库包含示例工程 `ReadViewDemo`,并已提交 `Pods/` 与 `Podfile.lock`。如本地环境未同步,可在仓库根或示例工程目录运行: +> 仓库包含示例工程 `ReadViewDemo`,并已提交 `ReadViewDemo/Pods/` 与 `ReadViewDemo/Podfile.lock`。如本地环境未同步,请在示例工程目录运行: ```bash -pod install +cd ReadViewDemo && pod install ``` -(依赖入口:`Podfile`、`ReadViewDemo/Podfile`) +(依赖入口:`ReadViewDemo/Podfile`) ### 运行 UI 测试 diff --git a/Podfile b/Podfile deleted file mode 100644 index 25027ab..0000000 --- a/Podfile +++ /dev/null @@ -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 diff --git a/ReadViewDemo/Podfile b/ReadViewDemo/Podfile index c3171a7..e7e4bf7 100644 --- a/ReadViewDemo/Podfile +++ b/ReadViewDemo/Podfile @@ -3,7 +3,7 @@ platform :ios, '15.6' target 'ReadViewDemo' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! - pod 'RDEpubReaderView', :path => '..' + pod 'RDEpubReaderView', :path => '../Sources/RDEpubReaderView' end