razorpay / razorpay-pod

:iphone: CocoaPod implementation of Razorpay's Payment SDK. Refer for instructions:
https://docs.razorpay.com/v1/page/ios-integration
MIT License
22 stars 18 forks source link

Razorpay 1.0.26 Podfile setup issue #51

Closed prem0423 closed 5 years ago

prem0423 commented 5 years ago

Am unable to use Pod file of either latest version or old version, with Xcode 10.1 Objective-C Project.

IDE Specs

Xcode Version 10.1 (10B61), Razorpay Package Version 1.0.26

Retro Steps

To support Razorpay Package Version 1.0.26 i made changes in deployment target as well(verified with Minimum deployment target as 9.0 and 10.0)

Also verified without mentioneing version number in Pod file as pod 'razorpay-pod' this leads to following error, When i cleaned and rebuild the solution i got following error,

dyld: Symbol not found: __T0BOWV Referenced from: /Users/demo/Library/Developer/CoreSimulator/Devices/D82E7EE6-D784-465D-AFC7-D9A033896987/data/Containers/Bundle/Application/962BD191-9EEB-4289-8915-4E1718EE43C8/Demo.app/Frameworks/Razorpay.framework/Razorpay Expected in: /Users/demo/Library/Developer/CoreSimulator/Devices/D82E7EE6-D784-465D-AFC7-D9A033896987/data/Containers/Bundle/Application/962BD191-9EEB-4289-8915-4E1718EE43C8/Demo.app/Frameworks/libswiftCore.dylib in /Users/demo/Library/Developer/CoreSimulator/Devices/D82E7EE6-D784-465D-AFC7-D9A033896987/data/Containers/Bundle/Application/962BD191-9EEB-4289-8915-4E1718EE43C8/Demo.app/Frameworks/Razorpay.framework/Razorpay

Screenshots

screenshot 2019-01-18 at 9 04 16 am
iThink32 commented 5 years ago

@prem0423 we support a minimum deployment target of iOS 10+.I will update the documentation regarding the same.

prem0423 commented 5 years ago

@iThink32 Tried iOS 10+ as minimum version as mentioned earlier, but no luck.

iThink32 commented 5 years ago

@prem0423 how did you set the minimum deployment target , did you do it in Xcode? I recommend you to check our integration videos for cocoapods , it will surely help you.The link is https://razorpay.com/docs/ios/integration-videos/

prem0423 commented 5 years ago

I followed the link mentioned above and tried once again, following is the crash log,

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Users/hello/Library/Developer/CoreSimulator/Devices/D82E7EE6-D784-465D-AFC7-D9A033896987/data/Containers/Bundle/Application/01496A5D-4D8C-4926-BA41-A1DE78C10F70/demok.app/Frameworks/Razorpay.framework/Razorpay Reason: image not found (lldb)

Note: My Code or Project is written in Objective-C, not Swift(Cocoapod video is showing only Swift)

prem0423 commented 5 years ago

@iThink32 Your documents also seem to be defined for older frameworks, please check https://razorpay.com/docs/ios/

iThink32 commented 5 years ago

@prem0423 set alwaysEmbedSwiftStandardLibraries to true in the build settings of your main project.

iThink32 commented 5 years ago

closing due to inactivity,reopen if required.

prem0423 commented 5 years ago

@prem0423 set alwaysEmbedSwiftStandardLibraries to true in the build settings of your main project.

Yes, did already

iThink32 commented 5 years ago

@prem0423 , please reopen issues before commenting ,anyway here is a link to our OBJC sample app that uses our latest swift framework

https://github.com/razorpay/razorpay-ios-sample-app/ Have a look at it and see where you are going wrong. If you still can't figure out , we can have a discussion.

iThink32 commented 5 years ago

closing due to inactivity.