question

samay-s1 avatar image
samay-s1 asked Dan converted comment to answer

README Instructions for iOS Example App Unclear/Needs to Be Fixed

I tried following the directions on https://github.com/clover/remote-pay-ios-examples, but was having difficulty as I am still a beginner programmer. I installed CocoaPods and cloned/downloaded the CloverConnector repository from https://github.com/clover/remote-pay-ios. The instructions then say to cd into remote-pay-ios/Example and run pod install but there is no file or directory called Example in remote-pay-ios. Whenever I try to run pod install it gives me a "No `Podfile' found in the project directory." error. I believe these instructions are quite unclear and wanted to know how I can just build this example application.
Remote Pay iOS
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Dan avatar image
Dan answered

I don't know anything about building/developing iOS apps or the example, but this is what I did to get pod install to do something (I think its correct but no promises)
As near as I can tell, you need to download the remote-pay-ios and remote-pay-ios-examples repositories, extract both to the same parent directory, and the remote-pay-ios directory needs to be named exactly remote-pay-ios
I think that the line

pod 'CloverConnector', :path => '../../remote-pay-ios'

in

/remote-pay-ios-examples-master/CloverConnector iOS Example/Podfile
Is using the local remote-pay-ios library to build remote-pay-ios-examples example project


Download the repo https://github.com/clover/remote-pay-ios
Download the repo https://github.com/clover/remote-pay-ios-examples
Extract both directories in the same parent directory, something like:
mkdir CloverExample
cd CloverExample
mv ~/Downloads/remote-pay-ios-examples-master.zip .
mv ~/Downloads/remote-pay-ios-master.zip .
unzip remote-pay-ios-examples-master.zip
unzip remote-pay-ios-master.zip
mv remote-pay-ios-master remote-pay-ios
cd remote-pay-ios-examples-master/CloverConnector\ iOS\ Example
pod install

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community