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

razarpay iOS cordova build error. #104

Closed piyusha89 closed 4 years ago

piyusha89 commented 5 years ago

I am getting an error when I am creating the iOS Cordova build:

ERROR:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/nishantpatel/Library/Developer/CoreSimulator/Devices/77195F61-4405-4229-997B-7DA6566BD926/data/Containers/Bundle/Application/6EBF52AD-C712-4EF5-AF34-A62958216794/MorningBag.app/Frameworks/Razorpay.framework/Razorpay
  Reason: image not found
(lldb)

I am using the latest Xcode 10.2.1 I am also using the Razorpay framework in embedded binaries and linked frameworks.

Please resolve this issue I need to create the app and launched on the App store ASAP.

pronav commented 5 years ago

Are you using version 1.4.5 of this plugin? Can you confirm first line from Razorpay-swift.h file?

piyusha89 commented 5 years ago

Yes I am using the latest version of razorpay-cordova the first line of Razorpay-swift.h is: // Generated by Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)

pronav commented 5 years ago

This is not the latest version, please put 1.4.5 in package.json and re-install

piyusha89 commented 5 years ago

Update Razorpay plugin version but error not resolve

piyusha89 commented 5 years ago

Can You please help me on this issue. I am not able to create an iOS app using Razorpay plugin. If this issue not resolve. I should need to move on the Paytm payment gateway.

sgadekar81 commented 5 years ago

Was facing same issue, Tried to downgrade com.razorpay.cordova@1.4.3 "com.razorpay.cordova": "^1.4.3" in package.json in plugins/main.h => #import <Razorpay/Razorpay-Swift.h> in build settings => always embedded swift libraries was true add razorpay framework in embedded binaries Screenshot 2019-05-28 at 5 12 11 PM worked for me, might help you also

to downgrade cordova plugin rm com.razorpay.cordova cordova plugin add com.razorpay.cordova@1.4.3 --save

pronav commented 5 years ago

It's recommended to use xcode 10.2 and latest version of com.razorpay.cordova package, which is 1.4.5. If multiple xcode are installed on your system, make sure, version 10.2 is selected in xcode > preferences > locations:

58465773-ff7b8880-8155-11e9-849b-a51e19ff8979

To check if latest version of razorpay plugin is installed, you can simply check initial lines of Razorpay-swift.h file, if first line is // Generated by Apple Swift version 4.2.1 then razorpay plugin being used is not the latest one.

We can have a remote session to debug the issue if it doesn't work for you.

sgadekar81 commented 5 years ago

@pronav Thanks for the reply, I am using one xcode version is 10.1 and it is selected in location tab Screenshot 2019-05-29 at 9 57 16 AM Every thing was working for me unless com.razorpay.cordova@1.4.3 as I tried to release a new version of my app it picked the latest version com.razorpay.cordova@1.4.5 and error started to come, after debugging what has changed found this. I will try upgrading the xcode10.2 com.razorpay.cordova@1.4.5 and let you know if it doesn't work.

nsrivastav commented 4 years ago

Hi,

I am getting the following warning "Not running swift-stdlib-tool: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES is enabled, but the product type 'Static Library' is not a wrapper type."

Even if I ignore this warning and try to upload the app to App Store, it says that the SwiftSupport Folder is empty.

I am using ionic 3. Xcode: 10.1 MacOS: 10.13.6

Please help as my app is not getting uploaded.

Thank you.

tusharvikky commented 4 years ago

Hello,

I'm on Xcode 11.2.1 with "com.razorpay.cordova": "^1.4.8". Is anyone facing similar issue? And how did you guys resolve this?

Regards

pramodjaypore commented 4 years ago

yes facing same issue with Xcode 11.2.1

On Thu, Nov 28, 2019 at 12:01 AM Tushar Deo notifications@github.com wrote:

Hello,

I'm on Xcode 11.2.1 with "com.razorpay.cordova": "^1.4.8". Is anyone facing similar issue? And how did you guys resolve this?

Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-cordova/issues/104?email_source=notifications&email_token=AEWFZC2UZEIRY6F4EJDQITLQV24HDA5CNFSM4HPUCN52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFKMN2A#issuecomment-559204072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWFZC3JJV5MFDTU5M54EATQV24HDANCNFSM4HPUCN5Q .

tusharvikky commented 4 years ago

Any contributors still active here? Waiting for this plugin to sort out. waiting for the app to release to patch.

cooldp007 commented 4 years ago

Hello,

I'm on Xcode 11.2.1 with "com.razorpay.cordova": "^1.4.8". Is anyone facing similar issue? And how did you guys resolve this?

Regards

I am facing same problem

Kunj-Choksi commented 4 years ago

@tusharvikky @cooldp007 Hey... Check this out https://github.com/razorpay/react-native-razorpay/issues/83#issuecomment-394285167

It worked for me You have to allow two configurations under build settings. Screenshot 2019-12-12 at 11 10 31 AM

//:configuration = Debug ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

//:configuration = Release ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

//:completeSettings = some ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES

AND

//:configuration = Debug ENABLE_BITCODE = YES

//:configuration = Release ENABLE_BITCODE = YES

//:completeSettings = some ENABLE_BITCODE

Second, you have to change "Embed and sign" in general > Linked frameworks and Libraries for Razorpay.framwork

cooldp007 commented 4 years ago

@tusharvikky @cooldp007 Hey... Check this out razorpay/react-native-razorpay#83 (comment)

It worked for me You have to allow two configurations under build settings. Screenshot 2019-12-12 at 11 10 31 AM

//:configuration = Debug ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

//:configuration = Release ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

//:completeSettings = some ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES

AND

//:configuration = Debug ENABLE_BITCODE = YES

//:configuration = Release ENABLE_BITCODE = YES

//:completeSettings = some ENABLE_BITCODE

Second, you have to change "Embed and sign" in general > Linked frameworks and Libraries for Razorpay.framwork

I got following error

https://lh3.googleusercontent.com/--RYd3w5PIik/XfIXKDqJNrI/AAAAAAAADlM/1alYwPyDtRkQbzN_vueKTYBUXk5nWSi7wCK8BGAsYHg/s0/2019-12-12.png

nsrivastav commented 4 years ago

@tusharvikky @cooldp007 Hey... Check this out razorpay/react-native-razorpay#83 (comment) It worked for me You have to allow two configurations under build settings. Screenshot 2019-12-12 at 11 10 31 AM //:configuration = Debug ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES //:configuration = Release ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES //:completeSettings = some ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES AND //:configuration = Debug ENABLE_BITCODE = YES //:configuration = Release ENABLE_BITCODE = YES //:completeSettings = some ENABLE_BITCODE Second, you have to change "Embed and sign" in general > Linked frameworks and Libraries for Razorpay.framwork

I got following error

https://lh3.googleusercontent.com/--RYd3w5PIik/XfIXKDqJNrI/AAAAAAAADlM/1alYwPyDtRkQbzN_vueKTYBUXk5nWSi7wCK8BGAsYHg/s0/2019-12-12.png

Am Also getting the same error. Any resolution please?

vivekshindhe commented 4 years ago

Closing this issue due to no activity. Please feel free to either re-open the issue or create a new issue if you have any additional queries.