Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone 下来运行错误 #7

Closed
ryokinki opened this issue Jul 27, 2016 · 12 comments
Closed

git clone 下来运行错误 #7

ryokinki opened this issue Jul 27, 2016 · 12 comments

Comments

@ryokinki
Copy link

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
Copy link
Owner

casatwy commented Jul 27, 2016

你pod install了么?

@casatwy casatwy closed this as completed Jul 27, 2016
@ryokinki
Copy link
Author

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

@casatwy
Copy link
Owner

casatwy commented Jul 28, 2016

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

@ryokinki
Copy link
Author

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

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

  • (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request
    progress:(NSProgress * __autoreleasing *)progress
    destination:(NSURL * (^)(NSURL *targetPath, NSURLResponse *response))destination
    completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler;
    貌似progress不是以block的形式传入的导致错误

@casatwy
Copy link
Owner

casatwy commented Jul 28, 2016

你的AFN是3.1.0的吗?

@ryokinki
Copy link
Author

这个怎么不知道怎么查看啊,我只是用你的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
Copy link
Owner

casatwy commented Jul 28, 2016

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

@ryokinki
Copy link
Author

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

  • AFNetworking, 2.6.1
    • CTPersistance, 0.1.11
    • HandyFrame, 1.0.2
      索性,直接在Podfile里面改为 pod 'AFNetworking', '~> 3.0'以后,用
      pod update --verbose --no-repo-update才最终保持AFN最新,pod update 没反应.
      更新后没有报错了

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

@casatwy
Copy link
Owner

casatwy commented Jul 28, 2016

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

@ryokinki
Copy link
Author

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

@casatwy
Copy link
Owner

casatwy commented Jul 28, 2016

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

@ryokinki
Copy link
Author

ok

@hoowang hoowang mentioned this issue Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants