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

Facing the issue image not loaded #174

Closed
gssinghgautam opened this issue Apr 12, 2019 · 43 comments
Closed

Facing the issue image not loaded #174

gssinghgautam opened this issue Apr 12, 2019 · 43 comments

Comments

@gssinghgautam
Copy link

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/kunwar/Library/Developer/CoreSimulator/Devices/0BF83DEB-10AF-4E9E-B164-4A996801D58F/data/Containers/Bundle/Application/18DB00FE-64B7-464C-A541-4D7ABC9271B3/milkbasket_native_app.app/Frameworks/Razorpay.framework/Razorpay
Reason: image not found

Did everything mentioned in the manual installation guide as well as followed the integration video, but no luck. Please help me with this.

@pronav
Copy link
Contributor

pronav commented Apr 12, 2019

Issue seems to be incompatibility of old version of react-native-razorpay with xcode10.2/swift 5. We had published a new version - 2.1.0, please install that.

@gssinghgautam
Copy link
Author

After updating to the latest version, now I am getting this error.

Not running swift-stdlib-tool: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES is enabled, but the product type 'Static Library' is not a wrapper type.

@gssinghgautam
Copy link
Author

Also these errors are coming.

Screenshot 2019-04-12 at 1 22 32 PM

@atulmy
Copy link

atulmy commented Apr 13, 2019

Also these errors are coming.

Screenshot 2019-04-12 at 1 22 32 PM

I'm also facing same issue.

@atulmy
Copy link

atulmy commented Apr 13, 2019

@pronav @pronav @iThink32 please look into the issue ASAP as this is blocking our app release.

@akshaykumar12527
Copy link

I am in the queue. Same error. Can you guys please revert to this.

@AbhinavArora95
Copy link
Contributor

We are able to reproduce the issue for projects in Objective-C. We are actively looking into the issue.

@atulmy
Copy link

atulmy commented Apr 19, 2019

@pronav @AbhinavArora95 @iThink32 any update on this? This issue is blocking our app release.

@pronav
Copy link
Contributor

pronav commented Apr 19, 2019

Updated plugin, it should work now. previous version works in device but not simulator. Reason was an issue in XCode10.2 didn't let single framework support both simulator and device architectures (https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes/#3141454)

@gssinghgautam
Copy link
Author

gssinghgautam commented Apr 22, 2019 via email

@pronav
Copy link
Contributor

pronav commented Apr 22, 2019

@atulmy @akshaykumar12527 @gssinghgautam can you confirm if ENABLE_BITCODE flag is true (Enable Bitcode in project settings)

@gssinghgautam
Copy link
Author

@pronav After enabling bit code it's still giving the error while installing on the simulator and also the Image not loaded error when installing from the diwai link.

When installing on simulator
Screenshot 2019-04-22 at 12 52 18 PM

XCODE SETTINGS
Screenshot 2019-04-22 at 12 57 23 PM

@pronav
Copy link
Contributor

pronav commented Apr 22, 2019

Please update to latest version.

@gssinghgautam
Copy link
Author

@pronav I have already updated to the latest version of razorpay i.e 2.1.22

@gssinghgautam
Copy link
Author

@pronav As discussed with you over the call, I have already mentioned this to you.

@MITDD6338
Copy link

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/containers/Bundle/Application/C074A08D-59FE-414E-AC1A-C36072400066/PCS.app/Frameworks/Razorpay.framework/Razorpay
Reason: image not found

Please help me with this.

@gssinghgautam
Copy link
Author

@pronav 2.1.3 version is working fine. Thanks for the help. Now I am closing this thread.

@vikaskhandekar001
Copy link

i am also facing isssue :

dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
Reason: image not found

xcode version: 10.1
react-native-razorpay:2.1.23

@kinnarshah08
Copy link

kinnarshah08 commented May 27, 2019

Facing the same issue:

dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
Reason: image not found

Xcode: 10.2.1
Razorpay SDK: ^2.1.3
RN: 0.59.8

This is a blocking issue for us at the moment. Swift help is appreciated.

@pronav
Copy link
Contributor

pronav commented May 28, 2019

Can you check if Razorpay-swift.h file starts with following line:

#include <TargetConditionals.h>

If not, razorpay plugin is not the latest version, and you need to update it.

Secondly, ensure that Razorpay framework is added in both the "Embedded Binaries" and "Linked Frameworks and Libraries" under "Target settings - General".

Also, Always Embed Swift Standard Libraries option must be ticked.

@kinnarshah08
Copy link

Hi @pronav,

Yes. I have checked all three.

  • The Razorpay-swift.h file starts with the line mentioned.
  • The framework is added in both the places mentioned by you
  • Always Embed Swift Standard Libraries is checked

I have tried using multiple simulators as well. Would prefer to get on a screen-share to sort this out asap, if that is feasible.

@pronav
Copy link
Contributor

pronav commented May 28, 2019

Sure, please message me at [email protected]

@pronav
Copy link
Contributor

pronav commented May 29, 2019

@vikaskhandekar001 you either need to upgrade xcode to 10.2, or use version 2.0.20 of react-native-razorpay package.

@sohelmk
Copy link

sohelmk commented Jun 23, 2019

we are facing same error in ionic, everything is latest version

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/sohelkhan/Library/Developer/CoreSimulator/Devices/616C80ED-6BE2-4F19-A46E-6ACEE4FD3258/data/Containers/Bundle/Application/40B58AA2-DB43-45CB-8C34-2E050EC4E4F8/consultengine.app/Frameworks/Razorpay.framework/Razorpay
Reason: image not found
(lldb)

@Pardeep03315
Copy link

@pronav Thanks Buddy ....razorpay version 2.0.20 is working fine with Xcode 10.1

@azharpatel4
Copy link

@pronav Hello Pranav!
I'm getting the same error while trying to emulate the ios build from xcode.
Xcode version: 10
MacOS: 10.13.6
Ionic: 5

WE have already enabled BitCode and enabled Embed Swift Standard Libraries.
Also we created a run script and added the necessary code to strip simulated architecture but still getting same error.

Could you please help resolve the issue? Can we have a shared screen?

@nihilultra
Copy link

nihilultra commented Aug 31, 2019

I am having a similar problem: I have done everything mentioned above. Please help. Very Critical.

dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
Referenced from: /var/containers/Bundle/Application/
{COMMENTED OUT}
Reason: image not found

macOS Version: 10.14.6 (18G84)
XCode Version: Version 10.3 (10G8)
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-razorpay": "^2.1.29",

@salujaharkirat
Copy link

salujaharkirat commented Sep 10, 2019

was facing the same issue, Embed Swift Standard Libraries was not checked for me. Works fine after enabling that.

@michaelspeed
Copy link

facing the same issue
Screenshot at Jan 18 18-06-28
Screenshot at Jan 18 18-08-15
Screenshot at Jan 18 18-06-15
Screenshot at Jan 18 18-10-02
Please fix this blocking our app release

@SahilKKothari
Copy link

SahilKKothari commented Jan 28, 2020

@michaelspeed still you are facing issue related to image not found?

@Nautiyalsachin
Copy link
Contributor

@michaelspeed try to include Razorpay.framework in Target > General Settings> Framework, Libraries and Embedded Content section, set the Embed status of Razorpay.framework to Embed & Sign. If the framework is not there then Drag the Razorpay.framework file from the Libraries folder and drop it under the root folder.

@SatyaRedian
Copy link

I am also facing issue in ios: dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
Reason: image not found, i am using latest react native and latest npm version. Please suggest solution, it is hampering our business.

@Nautiyalsachin
Copy link
Contributor

@SatyaRedian : Which version are you using of react-native-razorpay, also please check the new Auto Link for integrating the new SDK.

@SatyaRedian
Copy link

Thank you for your reply @Nautiyalsachin, I am using "react-native-razorpay": "^2.1.32", version and "react-native": "0.60.5", but only i am getting same issue.

@Nautiyalsachin
Copy link
Contributor

@SatyaRedian: Have you tried the mentioned step from here, mentioned in Readme?

@SatyaRedian
Copy link

Yes, @Nautiyalsachin , in Android it is working but in iOS getting same error.

@SahilKKothari
Copy link

SahilKKothari commented Feb 14, 2020

@SatyaRedian which version of Xcode you are using? You can refer provided link for more clarification

Let me know if you still facing issues after following steps that I provided in demo.

@Nautiyalsachin
Copy link
Contributor

@SatyaRedian : I'll suggest you create a sample app first and try to replicate it in that.

Here are the steps you can follow : -

  1. Create a sample app.
  2. npm install react-native-razorpay --save
  3. cd ios && open podfile #Change the platform from iOS 9.0 to 10.0
  4. pod install && cd ..#CocoaPods on iOS needs this extra step
  5. yarn react-native run-ios#run

@SatyaRedian
Copy link

Thank you @SahilKKothari @Nautiyalsachin, I am using Xcode: Version 10.1 (10B61) and follow these steps:

  1. npm install react-native-razorpay --save
  2. cd ios && open podfile #Change the platform from iOS 9.0 to 10.0
  3. pod install && cd ..#CocoaPods on iOS needs this extra step
  4. yarn react-native run-ios#run

But i am getting : dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
Reason: image not found

@Nautiyalsachin
Copy link
Contributor

@SatyaRedian : Please update your Xcode to the latest 11.3, the SDK is not supported for Xcode 10.1, you have to update it to the latest version and if you use Cocoapods then these issues won't be there.

@SahilKKothari
Copy link

@SatyaRedian : Please update to Xcode 11.1 or newer version.

@SatyaRedian
Copy link

Okay, Sure I will upgrade and get back to you.

@SatyaRedian
Copy link

SatyaRedian commented Feb 18, 2020

Xcode 11.1 or newer version working perfectly. Thank you @RazorPayTeam.

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

No branches or pull requests