# Podfile 依赖配置示例

## 纯 XMagic 体系（独立相机场景）

```ruby
platform :ios, '12.2'

target 'YourApp' do
  use_frameworks!
  
  # 替换为你购买的套餐（如 S1-07、A1-00、All 等）
  pod 'TencentEffect_S1-07'
end
```

## TEBeautyKit 体系（TRTC / 直播 SDK 场景）

### TRTC + TEBeautyKit

```ruby
platform :ios, '12.2'

target 'YourApp' do
  use_frameworks!
  
  # TRTC SDK
  pod 'TXLiteAVSDK_TRTC'
  
  # TEBeautyKit（替换 S1-07 为你购买的套餐）
  pod 'TEBeautyKit/S1-07', :podspec => 'https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/TEBeautyKit/latest/TEBeautyKit.podspec'
end

# TEBeautyKit 依赖的 Masonry、SSZipArchive 等源码三方库默认最低 iOS 版本较低，
# 需要与项目最低版本保持一致，否则会编译警告或报错。
post_install do |installer|
  tebeautykit_deps = ['Masonry', 'SSZipArchive']
  installer.pods_project.targets.each do |target|
    if tebeautykit_deps.include?(target.name)
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.2'
      end
    end
  end
end
```

### 直播 SDK + TEBeautyKit

```ruby
platform :ios, '12.2'

target 'YourApp' do
  use_frameworks!
  
  # 直播 SDK
  pod 'TXLiteAVSDK_Live'
  
  # TEBeautyKit（替换 S1-07 为你购买的套餐）
  pod 'TEBeautyKit/S1-07', :podspec => 'https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/TEBeautyKit/latest/TEBeautyKit.podspec'
end

# TEBeautyKit 依赖的 Masonry、SSZipArchive 等源码三方库默认最低 iOS 版本较低，
# 需要与项目最低版本保持一致，否则会编译警告或报错。
post_install do |installer|
  tebeautykit_deps = ['Masonry', 'SSZipArchive']
  installer.pods_project.targets.each do |target|
    if tebeautykit_deps.include?(target.name)
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.2'
      end
    end
  end
end
```

## 注意事项

1. `pod 'TEBeautyKit/S1-07'` 已包含 XMagic SDK，不需要再单独 pod `TencentEffect_*`
2. 套餐名必须与购买的 License 套餐一致
3. 执行 `pod install` 后，使用 `.xcworkspace` 打开项目
4. 如果 pod install 报错，尝试 `pod repo update` 更新本地仓库
