casatwy / CTVideoPlayerView

A video player view for iOS based on AVFoundation, better than PBJVideoPlayer, which can let you to play multiple video at the same time, and provide download, customized operation buttons, customized cover of video
Other
641 stars 81 forks source link

git clone 下来运行错误 #7

Closed ryokinki closed 8 years ago

ryokinki commented 8 years ago

PhaseScriptExecution 📦\ Check\ Pods\ Manifest.lock /Users/ios/Library/Developer/Xcode/DerivedData/CTVideoView-gwmiwslchfcwozageloqcjhgajdy/Build/Intermediates/CTVideoView.build/Debug-iphonesimulator/CTVideoView.build/Script-C7F799C8385037A3FAE95CAE.sh cd /Users/ios/Desktop/CTVideoPlayerView /bin/sh -c /Users/ios/Library/Developer/Xcode/DerivedData/CTVideoView-gwmiwslchfcwozageloqcjhgajdy/Build/Intermediates/CTVideoView.build/Debug-iphonesimulator/CTVideoView.build/Script-C7F799C8385037A3FAE95CAE.sh

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 不知道是什么问题,缺少文件么?

casatwy commented 8 years ago

你pod install了么?

ryokinki commented 8 years ago

哦,最后pod install解决了,不过由于AFN更新了,其中一些调用方法发生了变动,屏蔽了两个报红方法,播放器可以正常运行了,3q

casatwy commented 8 years ago

不应该啊,我这边AFNetworking3.1.0,没有任何报红的方法

ryokinki commented 8 years ago

CTVideoManager里面, - (void)resumeDownloadWithUrl:(NSURL )url 和 - (void)downloadWithUrl:(NSURL )url 这两个方法,调用AFN的[self.sessionManager downloadTaskWithRequest:request progress:^(NSProgress * _Nonnull downloadProgress) .....会报红,貌似这个progress没有回调了,sessionManager只让传递NSProgress,所以出错;

我进入sessionManager查看了下这个方法

casatwy commented 8 years ago

你的AFN是3.1.0的吗?

ryokinki commented 8 years ago

这个怎么不知道怎么查看啊,我只是用你的Profile里面的库,直接pod install的,你的里面是

Uncomment this line to define a global platform for your project

platform :ios, '9.0'

target 'CTVideoView' do

Uncomment this line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for CTVideoView

pod "AFNetworking" pod "CTPersistance" pod "HandyFrame"

end

casatwy commented 8 years ago

你cd进~/.cocoapods/repos/master,然后git pull origin master,然后再回项目pod update一下。

ryokinki commented 8 years ago

照楼主的方法做了, 为啥Podfile自动导入的是低版本的

就是不知为啥自动导入的是低版本的...在看楼主写的RTNetworking,写的非常好.

casatwy commented 8 years ago

你是不是在你自己的项目里面引用CTPlayerView的?你直接在CTPlayerView这个项目里面pod install呢?

ryokinki commented 8 years ago

是在CTVideoPlayerView项目里面,pod install的,也有可能是我pod安装的不正确,导致的. 我只是这样安装的 gem sources -a http://ruby.taobao.org/ sudo gem install cocoapods 可能安装缺少了一些步骤导致的问题

casatwy commented 8 years ago

淘宝源已经不可用了,装cocoapods的时候gem source要换一个源。你可以网上搜一下,貌似是开源中国的源。

ryokinki commented 8 years ago

ok