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

Improve installation instructions #363

Closed
AndrewSB opened this issue May 24, 2017 · 8 comments
Closed

Improve installation instructions #363

AndrewSB opened this issue May 24, 2017 · 8 comments

Comments

@AndrewSB
Copy link

AndrewSB commented May 24, 2017

Hey! I'm having a little trouble integrating with beta 9 (upgrading from a much older version, so it may not be a beta 9 specific issue).

Currently, Carthage is telling me the PINRemoteImage wants these things:

*** Checking out libwebp at "v0.5.1"
*** Checking out PINOperation at "1.0.3"
*** Downloading PINCache.framework binary at "3.0.1 Beta 4"
*** Downloading PINRemoteImage.framework binary at "Beta 9: Support for resuming downloads, faster operation queue"
*** xcodebuild output can be found in /var/folders/dz/30qkdl_13rb525_f_d70g3mr0000gn/T/carthage-xcodebuild.RL1rde.log
*** Building scheme "PINOperation" in PINOperation.xcodeproj
*** Building scheme "iOS" in PINCache.xcodeproj
*** Building scheme "PINRemoteImage" in PINRemoteImage.xcodeproj

I've integrated all 3 frameworks into my target (added to linked libraries & carthage copy-frameworks), but I'm getting a runtime error on launch, saying

dyld: Symbol not found: _PINDiskCachePrefix
  Referenced from: /Users/asb/Library/Developer/CoreSimulator/Devices/77E331CB-1C32-45DF-A704-0F665702520E/data/Containers/Bundle/Application/8FD99541-2F2F-4C63-A5BE-BAC7071F2965/wrytr.app/Frameworks/PINRemoteImage.framework/PINRemoteImage
  Expected in: /Users/asb/Library/Developer/CoreSimulator/Devices/77E331CB-1C32-45DF-A704-0F665702520E/data/Containers/Bundle/Application/8FD99541-2F2F-4C63-A5BE-BAC7071F2965/wrytr.app/Frameworks/PINCache.framework/PINCache
 in /Users/asb/Library/Developer/CoreSimulator/Devices/77E331CB-1C32-45DF-A704-0F665702520E/data/Containers/Bundle/Application/8FD99541-2F2F-4C63-A5BE-BAC7071F2965/wrytr.app/Frameworks/PINRemoteImage.framework/PINRemoteImage

and I'm not sure where it's coming from. Also, do I need to do anything with libwebp, or is that handled for me?
Any ideas why dyld cant find _PINDiskCachePrefix? I grepped and found the symbol PINCache, but I'm (almost completely) sure I've integrated PINCache correctly, so I'm not sure where the complaint is coming from.

@garrettmoon
Copy link
Collaborator

libwebp is linked into PINRemoteImage automatically if you're using carthage.

I'm not sure why you're getting a runtime error, can you upload a sample project?

@AndrewSB
Copy link
Author

AndrewSB commented May 24, 2017 via email

@AndrewSB
Copy link
Author

AndrewSB commented Jun 7, 2017

Hmm, so it seems like my Carthage setup is just super weird for the one project I'm working on. Anytime I run carthage update, it fails, but if I run carthage build --no-skip-current from inside pinterest/PINRemoteImage, and drag those binaries over to my project's Carthage/Build/iOS, it works for me.

The only difference is that when I build pinterest/PINRemoteImage I'm building the head, instead of 3.0.0-beta.9 in my project.
I'll try with pinterest/PINRemoteImage master soon

@garrettmoon
Copy link
Collaborator

Ok, I'm going to close this for now, but report back and I'll re-open if necessary.

@robinhayward
Copy link

I have this issue also: dyld: Symbol not found: _PINDiskCachePrefix

I have included PINCache, PINOperation and PINRemoteImage correctly as normal too, a fresh checkout of my app and running carthage update gives me that missing symbol error when trying to run the app.

@AndrewSB
Copy link
Author

AndrewSB commented Jun 22, 2017 via email

@robinhayward
Copy link

Yea thanks very much for sharing, that did also work for me.

Related: PINRemoteImage is still awesome :)

@AndrewSB
Copy link
Author

PINRemoteImage is definitely still awesome

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

No branches or pull requests

3 participants