1. 程式人生 > >PLPlayer 官方demo 怎麼支援模擬器

PLPlayer 官方demo 怎麼支援模擬器

如果用demo工程內部的pod的話

 

pod "PLPlayerKit", :path => "../../PLPlayerKit-Universal.podspec" #真機和模擬器都支援

pod "PLPlayerKit", :path => "../../" #只支援真機

 

注意:即使像上面這樣用本地工程中自帶的pod庫,修改完畢也要pod install一遍

 

如果是在自己工程中引入pod的話

pod "PLPlayerKit", :podspec => 'https://raw.githubusercontent.com/pili-engineering/PLPlayerKit/master/PLPlayerKit-Universal.podspec' #真機和模擬器都支援

pod "PLPlayerKit" #只支援真機