targetsArray.each do

source "https://github.com/TuyaInc/TuyaPublicSpecs.git"
source 'https://cdn.cocoapods.org/'

use_frameworks!
inhibit_all_warnings!

platform :ios, '9.0'

# ruby 语法
# target 数组 如果有新的 target 直接加入该数组
targetsArray = ['PETONEER', 'Hangen', 'Wavcare']
# 循环

targetsArray.each do |t|

target t do

end
   

推荐阅读更多精彩内容