pili-engineering / PLShortVideoKit

PLShortVideoKit 是七牛推出的一款适用于 iOS 平台的短视频 SDK,提供了包括美颜、滤镜、水印、断点录制、分段回删、视频编辑、混音特效、视频剪辑、本地转码、视频上传在内的多种功能,支持高度定制以及二次开发。
https://github.com/pili-engineering/PLShortVideoKit
Apache License 2.0
448 stars 122 forks source link

报错 #22

Closed lichunhuan closed 6 years ago

lichunhuan commented 7 years ago

ld: warning: directory not found for option '-L/Users/apple/Downloads/PLShortVideoKit-master/Example/PLShortVideoKitDemo/Librarys' ld: warning: directory not found for option '-F/Users/apple/Downloads/PLShortVideoKit-master/Example/PLShortVideoKitDemo/Librarys' ld: framework not found IOSurface for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

下载下来的dome怎么报这个错

depthlove commented 7 years ago

@lichunhuan 通过以下方式下载的demo是正常的 (1)clone 工程的方式 (2)在 https://github.com/pili-engineering/PLShortVideoKit/releases 下载最新的 demo

yuhangjob commented 7 years ago

@depthlove 我也遇到同样的问题,下载最新的demo运行时也报同样的错误,请问一下有没有七牛的短视频问题的qq群?

depthlove commented 7 years ago

@lichunhuan @LiuYuHangNB demo 在 Xcode 9 环境下编译并修改过,需要使用 Xcode 9 才可编译通过。 在 Xcode 8 上会报错:ld: framework not found IOSurface for architecture arm64

njwangchuan commented 6 years ago

@lichunhuan

ld: warning: directory not found for option '-L/Users/njwangchuan/Library/Developer/Xcode/DerivedData/PLShortVideoKitDemo-anoeobhqxknwwtfcxjexfrpmwizq/Build/Products/Debug-iphonesimulator/HappyDNS' ld: warning: directory not found for option '-L/Users/njwangchuan/Library/Developer/Xcode/DerivedData/PLShortVideoKitDemo-anoeobhqxknwwtfcxjexfrpmwizq/Build/Products/Debug-iphonesimulator/Masonry' ld: warning: directory not found for option '-L/Users/njwangchuan/Library/Developer/Xcode/DerivedData/PLShortVideoKitDemo-anoeobhqxknwwtfcxjexfrpmwizq/Build/Products/Debug-iphonesimulator/Qiniu' ld: library not found for -lHappyDNS clang: error: linker command failed with exit code 1 (use -v to see invocation)

模拟器目录下并没有HappyDNS、Masonry和Qiniu,网上找了一些删除search path的方法,没有解决问题

njwangchuan commented 6 years ago

@lichunhuan 已经找到问题了。xcode导入的工程不对,需要导入.xcworkspace

hb-chen commented 6 years ago

@depthlove 是必须Xcode9吗?

depthlove commented 6 years ago

@hb-chen 因为用的 Xcode 9.0 以上版本打包的短视频 SDK framework,用 Xcode 9.0 以下版本,比如 Xcode 8.x.x 就会编译出错