Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Link Error both in Sample Code and after implementation #5

Open
shazahsan opened this issue Mar 21, 2013 · 14 comments
Open

Link Error both in Sample Code and after implementation #5

shazahsan opened this issue Mar 21, 2013 · 14 comments

Comments

@shazahsan
Copy link

Hey! First up, thanks for the awesome module.

Unfortunately, the sample project does not seem to build. It complains about a
'clang error: linker command failed with exit code 1 (use -v to see invocation)'.

It initially complains about there not being a VideoPlayerKit.h but I copy all the files from the folder 'Code' and paste them into the sample project.

Even when I add the code to my app, it fails to build with the same error.

@cannyboy
Copy link

I get the same issue with 'missing' VideoPlayerKit.h

'VideoPlayerKit.h' file not found (on the #import line in VideoPlayerSampleViewController.h)

Maybe the make clean setup is overcomplicating things? Can't we just use cocoapods on it's own?

@markawil
Copy link

Same issue. Has anyone gotten this working?

@markawil
Copy link

Ok, you need to manually copy the files from VideoPlayerKit that arrive in your pod list into your project, .git throws an error if you try to manually add them to the folder within the Pods project. Only solution is to delete the .git folder inside the pods folder and then manually copy them into your project by "Add files..."

ETA: Looks like there's still a problem VideoPlayerKit.m can't find "ShareThis.h"

Guys, did you actually try and open this project up with your instructions?

@gunhi
Copy link

gunhi commented Mar 24, 2013

no one handle this code, I think so...!!
To the sample project can run on my case is that

  1. type in Terminal: "pod install". this can download all of needed frameworks and create an Xcode workspace.
  2. Open VideoPlayerSample.xcworkspace then delete pod lib, and add following framework manually:

lsqlite3.0 -
AVFoundation -
AudioToolbox -
CoreGraphics -
CoreLocation -
CoreMedia -
MediaPlayer -
MessageUI -
QuartzCore -
Security -
Twitter -
Accounts -
AdSupport -
Social -

  1. All of other framework can be found in "POD" folder that was made by command "pod install". Just drag and drop them in.
  2. go to -> Build Setting then delete this line ""$(SRCROOT)/../../../Desktop/Cocoa_StreamStitcherDemo/StreamStitcherDemo"" at "Framework Seach Parth"

DONE. BUILD AND RUN

@pellet
Copy link
Contributor

pellet commented Apr 3, 2013

I've followed gunhi's instructions and also fixed the pods_root and pod_build_headers/header paths/library paths variables to get it building. I've pushed the changes to my fork- https://github.com/pellet/VideoPlayerKit

@dapang
Copy link

dapang commented Apr 3, 2013

Thanks pellet, your code is running

@markawil
Copy link

markawil commented Apr 4, 2013

pellet, I'm getting an architecture error problem with your fork do I need to run this on a device?

this is the error I'm getting.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /Users/markw/Library/Application Support/iPhone Simulator/5.0/Applications/42EAF9BE-4861-4CD2-BE69-723A26AFF9BA/VideoPlayerSample.app/VideoPlayerSample
Reason: no suitable image found. Did find:
/System/Library/Frameworks/Social.framework/Social: mach-o, but wrong architecture
(lldb)

@dapang
Copy link

dapang commented Apr 7, 2013

markawil, Social.framework is only in iOS 6 SDK, maybe you should compile in iOS 6 SDK

@ubia
Copy link

ubia commented May 10, 2013

I cannot do "pod install" in macbook pro with OSX 10.8.3+xcode 6.1

@martingodec
Copy link

hi i make all steps but i have a "Sell Script Invocation Error"

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 4: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/Facebook-iOS-SDK/src/FacebookSDKResources.bundle
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/REComposeViewController/REComposeViewController/REComposeViewController.bundle
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Instapaper-Icon.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Instapaper-Icon@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Pocket-Icon.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Pocket-Icon@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Readability-Icon.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/ShareThis/Assets/Readability-Icon@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/airplay-display.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/airplay-display@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/fullscreen-button.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/fullscreen-button@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/minimize-button.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/minimize-button@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/pause-button.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/pause-button@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/play-button.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/play-button@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/share-button.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/share-button@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/transparentBar.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
/VideoPlayerKit/Assets/transparentBar@2x.png
/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied
rsync: failed to open files-from file /resources-to-copy-VideoPlayerSample.txt: No such file or directory
rsync error: syntax or usage error (code 1) at /SourceCache/rsync/rsync-42/rsync/main.c(1333) [client=2.6.9]
rm: /resources-to-copy-VideoPlayerSample.txt: No such file or directory

how solve this ?

Thanks !

@dapang
Copy link

dapang commented Jul 4, 2013

you can fork this object https://github.com/blizzard-op/VideoPlayerKit

Date: Wed, 3 Jul 2013 08:14:51 -0700
From: notifications@github.com
To: VideoPlayerKit@noreply.github.com
CC: lingyi_xu@hotmail.com
Subject: Re: [VideoPlayerKit] Link Error both in Sample Code and after implementation (#5)

hi i make all steps but i have a "Sell Script Invocation Error"

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 4: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/Facebook-iOS-SDK/src/FacebookSDKResources.bundle

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/REComposeViewController/REComposeViewController/REComposeViewController.bundle

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Instapaper-Icon.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Instapaper-Icon@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Pocket-Icon.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Pocket-Icon@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Readability-Icon.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/ShareThis/Assets/Readability-Icon@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/airplay-display.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/airplay-display@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/fullscreen-button.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/fullscreen-button@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/minimize-button.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/minimize-button@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/pause-button.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/pause-button@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/play-button.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/play-button@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/share-button.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/share-button@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/transparentBar.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

/VideoPlayerKit/Assets/transparentBar@2x.png

/Users/martingodec/Desktop/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 27: /resources-to-copy-VideoPlayerSample.txt: Permission denied

rsync: failed to open files-from file /resources-to-copy-VideoPlayerSample.txt: No such file or directory

rsync error: syntax or usage error (code 1) at /SourceCache/rsync/rsync-42/rsync/main.c(1333) [client=2.6.9]

rm: /resources-to-copy-VideoPlayerSample.txt: No such file or directory

how solve this ?

Thanks !

¡ª
Reply to this email directly or view it on GitHub.

@tywhite
Copy link

tywhite commented Oct 4, 2013

I've tried @pellet's version, and got Cocoapods set up on Mountain Lion (finally), but am still getting errors when I try to build:

ld: warning: directory not found for option '-L/Users/tywhite/Downloads/VideoPlayerKit-master 2/VideoPlayerKitSampleProject/Pods/build/Debug-iphonesimulator'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone have ideas? I'm pretty new to iOS development, so a lot of this is over my head. Any help would be greatly appreciated.

screen shot 2013-10-03 at 5 26 03 pm

@tywhite
Copy link

tywhite commented Oct 4, 2013

Figured it out -- had installed CocoaPods wrong, and hadn't put the VideoPlayerSample project into the Workspace created by install pods

@starecho
Copy link

I have a shell script invocation error
/Users/dev/Documents/ioscode/video/VideoPlayerKit-master/VideoPlayerKitSampleProject/Pods/Pods-resources.sh: line 5: /resources-to-copy-VideoPlayerSample.txt: Permission denied

Can anyone solve it?
Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants