razorpay / razorpay-cordova

Cordova wrapper around Razorpay's Android and iOS SDKs
https://www.npmjs.com/package/com.razorpay.cordova
51 stars 32 forks source link

Unable to get Cordova sample working #161

Open gwhenne opened 2 years ago

gwhenne commented 2 years ago

Description

I'm unable to do a Cordova build using the instructions in the Readme. The error messages appear below.

Razorpay Package Version :

"com.razorpay.cordova": "github:razorpay/razorpay-cordova",

Xcode Version (iOS) :

Version 13.2.1 (13C100)

What you did:

I performed the steps below.

What happened:

...
Create build description
Build description signature: 44f6b200bc3df61762072915df6c39d1
Build description path: /Users/george/Library/Developer/Xcode/DerivedData/HelloCordova-hevhodyjzgtojicfvtxwtizqbhkm/Build/Intermediates.noindex/XCBuildData/44f6b200bc3df61762072915df6c39d1-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
/Users/george/Documents/GitHub/VoltBuilder/rzp/platforms/ios/cordova/build-debug.xcconfig:34:1: error: could not find included file 'Pods/Target Support Files/Pods-HelloCordova/Pods-HelloCordova.debug.xcconfig' in search paths
/Users/george/Documents/GitHub/VoltBuilder/rzp/platforms/ios/cordova/build-debug.xcconfig:34:1: error: could not find included file 'Pods/Target Support Files/Pods-HelloCordova/Pods-HelloCordova.debug.xcconfig' in search paths
/Users/george/Documents/GitHub/VoltBuilder/rzp/platforms/ios/cordova/build-debug.xcconfig:34:1: error: could not find included file 'Pods/Target Support Files/Pods-HelloCordova/Pods-HelloCordova.debug.xcconfig' in search paths
** BUILD FAILED **

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. I downloaded the sample from razorpay-cordova-sample
  2. I did cd into the folder.
  3. cordova platform add ios
  4. Went into Xcode and set Always Embed Swift Standard Libraries to yes.
  5. Also set enable bitcode to yes.
  6. Exited Xcode
  7. cordova build ios - here's the output:

Suggested solution:

Code example, screenshot, or link to a repository:

caresoftin commented 2 years ago

Dear Partner, Sincere apologies for the delay and inconvenience caused. The cordova plugin is wrapper around native SDK, so it doesn't work with the tools like vold.build which doesn't support native modules.