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

Dyld Library Error. #83

Closed
duckduckgo-eng opened this issue Jun 4, 2018 · 59 comments
Closed

Dyld Library Error. #83

duckduckgo-eng opened this issue Jun 4, 2018 · 59 comments

Comments

@duckduckgo-eng
Copy link

IDE Specs

Xcode Version (iOS) -->9.2
Razorpay Package Version -->2.0.5 (Downloaded RazorPay FrameWork Swift 3.1 )
React_native Version--0.55.4

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/containers/Bundle/Application/053EBB13-7618-4E1A-B133-8B1AE4510B58/ul88.app/Frameworks/Razorpay.framework/Razorpay
Reason: image not found

screen shot 2018-06-04 at 1 45 43 pm

@AbhinavArora95
Copy link
Contributor

Please ensure that Razorpay.framework is present in both the Embedded Binaries and Linked Frameworks in your project settings. Also ensure that Always Embed Swift Libraries is set to "yes" in the project settings.

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 4, 2018

Yes it is Present in both Embedded Binaries and Linked FrameWorks also Always Embed Swift Libraries is set to "Yes. librazorpaycheckout.a also added in Linked Libraries

@iThink32
Copy link
Contributor

iThink32 commented Jun 4, 2018

Hey Ashish please go through the readme , this will not work on Xcode 9.2 as it is built on Swift 4.1 , you must upgrade to Xcode 9.3 or higher.

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 4, 2018

Hey,But I am using RazorPay FrameWork =>Razorpay(with bit code enabled) | 1.0.15 | Swift 3.1,
by replacing the Framework .So this will not Work in Xcode 9.2(1.0.15) ?

@iThink32
Copy link
Contributor

iThink32 commented Jun 4, 2018

We have no framework that supports Xcode 9.2 as of now , even 1.0.15 will not work as it is compiled with Swift 3 and Xcode 9.2 does not support it.I suggest you to upgrade to Xcode 9.3 and above and use version 1.0.16.

@duckduckgo-eng
Copy link
Author

Okay,Thanks For Quick Reply.Will Update the Xcode and then Update the Status here

@iThink32
Copy link
Contributor

iThink32 commented Jun 4, 2018

sure.

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 6, 2018

screen shot 2018-06-06 at 4 06 52 pm
Updated Xcode to 9.4,
Cleaned the Project,Deleted Derived Data.Had done all the Steps.
Still Getting Errors!!Working Smooth in Android,Depending on this, had to deliver this Asap.
Please Help!!

screen shot 2018-06-06 at 3 59 14 pm

@iThink32
Copy link
Contributor

iThink32 commented Jun 6, 2018

Give me your team viewer credentials and a phone number , we'll fix this .

@duckduckgo-eng
Copy link
Author

Okay,Your Email ID Please

@duckduckgo-eng
Copy link
Author

Sent!!!!

@guggume
Copy link

guggume commented Jun 11, 2018

I'm facing the same issue in Xcode 9.4, any help would be appreciated.

@iThink32
Copy link
Contributor

Please go through the readme and go through the notes specified.And let me know if you still face the issue and the steps you have tried

@guggume
Copy link

guggume commented Jun 11, 2018

@iThink32 I got it working, I was trying to add Razorpay.framework to embedded binaries, but it was not showing in the list, I couldn't see there was another option Add Other. I think you should add this step in wiki, most of the react-native developers are javascript heavy developers than native developers.

@iThink32
Copy link
Contributor

iThink32 commented Jun 11, 2018

Cool , closing this issue please reopen if any issue persists

@duckduckgo-eng
Copy link
Author

Working Fine When Running in Simulator,but When Running on Device Or Archiving the App it gives Link Error. "libRazorpayCheckout.a(RazorPayEventEmiitter.o) does not contain bitcode.

@duckduckgo-eng duckduckgo-eng changed the title Dyld Library Error Dyld Library Error. Jun 14, 2018
@iThink32
Copy link
Contributor

Hey ashish , our framework has been shipped with simulator architectures which you have to remove before you create an archive , even though the error says bitcode it actually means this.

Follow this link,

http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

@iThink32 iThink32 reopened this Jun 14, 2018
@iThink32
Copy link
Contributor

hey @ashishrokr please reopen issues before commenting.

@duckduckgo-eng
Copy link
Author

How do i remove simulator architectures in order to create archive?

@iThink32
Copy link
Contributor

please follow the link I just sent you.

@iThink32
Copy link
Contributor

hey Ashish , I had helped you a while ago , no worries , ill help you fix it , can you send me your team viewer credentials once again , I guess you already have my id

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 14, 2018

Okay!! Thanks !!!

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 14, 2018

Do i need to add both the script
1)
#!/bin/sh
lipo -remove i386 Razorpay.framework/Razorpay -output Razorpay.framework/Razorpay
lipo -remove x86_64 Razorpay.framework/Razorpay -output Razorpay.framework/Razorpay
rm Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftdoc
rm Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftmodule
rm Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftdoc
rm Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule

  1. and from this site http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

@iThink32
Copy link
Contributor

iThink32 commented Jun 14, 2018 via email

@duckduckgo-eng
Copy link
Author

duckduckgo-eng commented Jun 14, 2018

Archive Works Successfully by setting "Enable Bitcode" to "No" in build Setting.

Do i Need to add this extra script including the above that you have added when submitting to App Store:-

lipo -remove i386 Razorpay.framework/Razorpay -output Razorpay.framework/Razorpay
lipo -remove x86_64 Razorpay.framework/Razorpay -output Razorpay.framework/Razorpay
rm Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftdoc
rm Razorpay.framework/Modules/Razorpay.swiftmodule/i386.swiftmodule
rm Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftdoc
rm Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule

@iThink32
Copy link
Contributor

iThink32 commented Jun 14, 2018 via email

@duckduckgo-eng
Copy link
Author

Okay!!

@ManoharaK
Copy link

Giving Following error after update xcode 10

dyld: Symbol not found: __T0BOWV
Referenced from: /Users/apple/Library/Developer/CoreSimulator/Devices/315C4D86-B68C-482C-8E7A-8FB882B77071/data/Containers/Bundle/Application/30A737EE-74B2-419D-980A-F32283D0DA1E/StayAbode.app/Frameworks/Razorpay.framework/Razorpay
Expected in: /Users/apple/Library/Developer/CoreSimulator/Devices/315C4D86-B68C-482C-8E7A-8FB882B77071/data/Containers/Bundle/Application/30A737EE-74B2-419D-980A-F32283D0DA1E/StayAbode.app/Frameworks/libswiftCore.dylib
in /Users/apple/Library/Developer/CoreSimulator/Devices/315C4D86-B68C-482C-8E7A-8FB882B77071/data/Containers/Bundle/Application/30A737EE-74B2-419D-980A-F32283D0DA1E/StayAbode.app/Frameworks/Razorpay.framework/Razorpay
(lldb)

@pritamhinger
Copy link

Getting the same error. Looks like the framework has complied with Swift 4.1 and XCode by default use Swift 4.2.

screen shot 2018-09-20 at 5 23 25 pm

I further tried using Swift 4.1 compiler but getting the error "Could not find module RazorpayCommonCrypto" which couldn't be resolved even after running the SelectDefaultXcode.sh script as my Xcode name Xcode.app only. Can you please help here.

@iThink32
Copy link
Contributor

Hey @pritamhinger Xcode 10 uses Swift 4.2 and our latest framework uses Swift 4.1 , we are making a release on 28th September.Please wait till or use Xcode 9.4.1

@iThink32 iThink32 reopened this Sep 21, 2018
@TarunNarula
Copy link

@iThink32 is there any workaround for this with Xcode 10?

@iThink32
Copy link
Contributor

@TarunNarula please wait till the end of this week as we are making a major release.

@manojkraftly
Copy link

manojkraftly commented Sep 25, 2018

Getting this error when i try to compile code in Xcode 10 but its working fine in Xcode 9.4.1, Please give me solution for it

dyld: Symbol not found: __T0BOWV
Referenced from: /private/var/containers/Bundle/Application/B022838F-9096-4818-8D7B-526C9E059467/KartRocketMarketPlace.app/Frameworks/Razorpay.framework/Razorpay
Expected in: /private/var/containers/Bundle/Application/B022838F-9096-4818-8D7B-526C9E059467/KartRocketMarketPlace.app/Frameworks/libswiftCore.dylib
in /private/var/containers/Bundle/Application/B022838F-9096-4818-8D7B-526C9E059467/KartRocketMarketPlace.app/Frameworks/Razorpay.framework/Razorpay

@iThink32
Copy link
Contributor

iThink32 commented Sep 25, 2018

@manojkraftly Please reopen issues before commenting , anyway Xcode 10 requires a framework built on Swift 4.2 but our latest framework is built on Swift 4.1 , please wait until Friday as we are making another release for it.

@iThink32 iThink32 reopened this Sep 25, 2018
@manojkraftly
Copy link

manojkraftly commented Sep 28, 2018 via email

@iThink32
Copy link
Contributor

@manojkraftly we are following an incremental release process , iOS will be released first , react - native and Cordova will be released by EOD.

@manojkraftly
Copy link

manojkraftly commented Sep 28, 2018 via email

@Mayur-Wadpalliwar
Copy link

@manojkraftly @TarunNarula @pritamhinger The latest SDK shall be available here: https://razorpay.com/docs/ios/ by EOD.

@iThink32
Copy link
Contributor

iThink32 commented Oct 1, 2018

closing due to inactivity

@iThink32 iThink32 closed this as completed Oct 1, 2018
@iThink32
Copy link
Contributor

iThink32 commented Oct 1, 2018

@manojkraftly @TarunNarula @pritamhinger the latest version of our framework has been released please go through the Readme of this repo without fail before you update.

@aakashbapna
Copy link

aakashbapna commented Nov 13, 2018

Getting dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Users/aakash/..../Frameworks/Razorpay.framework/Razorpay Reason: image not found

We are on react-native-razorpay 1.5.0 and Xcode 9.4.1 .
Tried all solutions here - https://stackoverflow.com/questions/26024100/dyld-library-not-loaded-rpath-libswiftcore-dylib

Do you think updating to latest 2.0.x release will fix this?

@iThink32
Copy link
Contributor

iThink32 commented Nov 13, 2018

@aakashbapna please reopen issues before commenting , anyway our latest release will only work on Xcode 10 and above as it is compiled with Swift 4.2.
you are mostly getting that issue because you are using a very old version of our package on Xcode 9.4.1 , I suggest you to update react-native , react and Xcode and use our latest version.Refer the readme for more information.

@iThink32 iThink32 reopened this Nov 13, 2018
@iThink32
Copy link
Contributor

closing due to inactivity.

@rishiankush
Copy link

dyld: Library not loaded: @rpath/Razorpay.framework/Razorpay
  Referenced from: /Users/ankushrishi/Library/Developer/CoreSimulator/Devices/639978A2-3923-434E-9582-EC0782FDE03E/data/Containers/Bundle/Application/9CB0C2EC-3EAD-49C1-B8D3-E3B40BB1175C/MyApp.app/MyApp
  Reason: image not found

Xcode version: 10.1

@iThink32
Copy link
Contributor

@rishiankush please provide more details as mentioned in the issue and also go through the integration videos mentioned on this link
https://razorpay.com/docs/ios/integration-videos/

@rishiankush
Copy link

@iThink32 my issue resolved by updating to the newest version of this module. I added version 2.0.20 and its resolved. Thanks

@savioseb
Copy link

savioseb commented May 1, 2019

I fixed this by upgrading to the latest Xcode 10.2.1 - but proceed with caution because you might break your RN project by upgrading to 10.2.1

I didn't have any issues though - RN v56. I was using Xcode 10.1 with swift v3.1.

After upgrading the Xcode I'm on Swift v5.0.1

@dileepkumarbenbanshi
Copy link

@manojkraftly we are following an incremental release process , iOS will be released first , react - native and Cordova will be released by EOD.

Please ensure that Razorpay.framework is present in both the Embedded Binaries and Linked Frameworks in your project settings. Also ensure that Always Embed Swift Libraries is set to "yes" in the project settings.

I have do this but not solve

@dileepkumarbenbanshi
Copy link

@rishiankush please provide more details as mentioned in the issue and also go through the integration videos mentioned on this link
https://razorpay.com/docs/ios/integration-videos/

I have do all possibility but facing same problem can you help me plz

@Nautiyalsachin
Copy link
Contributor

@dileepkumarbenbanshi, What Xcode version are you using?

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