steprescott / SCPStoreKitManager

Block based store kit manager for In-App Purchase on iOS 7, 8 & 9 with receipt validation.
MIT License
68 stars 29 forks source link

Fixed podspec, added subspec for the receipt validator and removed OpenSSL source. #3

Closed per2plex closed 10 years ago

per2plex commented 10 years ago

The podspec didn't work so I fixed it, I created a subspec for the receipt validator which depends on OpenSLL, so you don't have to build OpenSSL if you just want to use the SCPStoreKitManager. I also removed all source for OpenSSL for security reasons.

I did not update the example nor the readme.

Nice work btw :)

steprescott commented 10 years ago

Wow, this is what is great about open sourcing Frameworks. I am not that up to scratch with CocoaPods and I am still learning. Thanks!

steprescott commented 10 years ago

I have merged your pull request but now when I try and install it to a new project via pod install it fails to work. The error is "_OBJC_CLASS_$_SCPStoreKitManager", referenced from:

per2plex commented 10 years ago

That was the problem I had before, did you update the spec on the CocoaPods repo? I built a clean build and it's working for me you can test it by specify a Git repo directly in the podfile:

pod "SCPStoreKitManager", :git => "https://github.com/steprescott/SCPStoreKitManager"
steprescott commented 10 years ago

When I try to build I get an OpenSSL compiler error. Would you know why? I have flagged it up with the repo. https://github.com/CocoaPods/Specs/issues/12143.

This happens when I try and install everything. pod "SCPStoreKitManager/SCPStoreKitReceiptValidator", :git => "https://github.com/steprescott/SCPStoreKitManager"

per2plex commented 10 years ago

OpenSSL take a long time (up to 20min) to build, try:

pod install --verbose

To see what the OpenSSL build is doing exactly, as long as no error is printed or the process quits everything should be alright.

steprescott commented 10 years ago

It does compile, but does not link it to the workspace. So any reference to it in the code can not work.

per2plex commented 10 years ago

I fixed the example project and created a pull request. The example project now does compile for me, including the validator, maybe that helps.

https://github.com/steprescott/SCPStoreKitManager/pull/5

tueht commented 10 years ago

It's because your path to Podfile contains spaces. Remove it and it will work like charm.