Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build issue for iOS #85

Closed
santu-git opened this issue Oct 16, 2018 · 22 comments
Closed

Build issue for iOS #85

santu-git opened this issue Oct 16, 2018 · 22 comments

Comments

@santu-git
Copy link

XCode Version - 10.0 (10A255)
Razor pay package version - com.razorpay.cordova@1.3.6

I am getting following error in ios

dyld: Symbol not found: __T0BOWV
Referenced from: /Users/santu/Library/Developer/CoreSimulator/Devices/12128650-76DA-4949-9117-126FB8551C8F/data/Containers/Bundle/Application/4D60BD12-B924-443B-B490-C0D4319BD1E1/ilovecycling.app/Frameworks/Razorpay.framework/Razorpay
Expected in: /Users/santu/Library/Developer/CoreSimulator/Devices/12128650-76DA-4949-9117-126FB8551C8F/data/Containers/Bundle/Application/4D60BD12-B924-443B-B490-C0D4319BD1E1/ilovecycling.app/Frameworks/libswiftCore.dylib
in /Users/santu/Library/Developer/CoreSimulator/Devices/12128650-76DA-4949-9117-126FB8551C8F/data/Containers/Bundle/Application/4D60BD12-B924-443B-B490-C0D4319BD1E1/ilovecycling.app/Frameworks/Razorpay.framework/Razorpay

@iThink32
Copy link
Contributor

@santu-git add Razorpay framework in both embedded libraries and linked framework section.
Check the integration videos for help

https://razorpay.com/docs/ios/integration-videos/

@subbu-nama
Copy link

Hi,

 Iam getting the following issue. can you guys help on this.

/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:21: error: cannot find protocol
declaration for 'RazorpayPaymentCompletionProtocolWithData'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:64: error: cannot find protocol
declaration for 'ExternalWalletSelectionProtocol'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:4:3: error: unknown type name 'Razorpay'
Razorpay *razorpay;
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:19:15: error: use of undeclared identifier
'Razorpay'
razorpay = [Razorpay initWithKey:(NSString *)[options objectForKey:@"key"]
^
4 errors generated.

  • BUILD FAILED *

@iThink32
Copy link
Contributor

@subbu-nama replace import <Razorpay/Razorpay.h> with import <Razorpay/Razorpay-Swift.h> in your main.m file

@NimaiUser
Copy link

NimaiUser commented Oct 29, 2018

I am getting this error while run the cordova iOS project

dyld: Symbol not found: _$SBOWV
Referenced from: /private/var/containers/Bundle/Application/4167A490-9295-45B3-A292-E6FFE8FDF8CD/MyApp.app/Frameworks/Razorpay.framework/Razorpay
Expected in: /private/var/containers/Bundle/Application/4167A490-9295-45B3-A292-E6FFE8FDF8CD/MyApp.app/Frameworks/libswiftCore.dylib
in /private/var/containers/Bundle/Application/4167A490-9295-45B3-A292-E6FFE8FDF8CD/MyApp.app/Frameworks/Razorpay.framework/Razorpay

@iThink32
Copy link
Contributor

@NimaiUser add razorpay.framework to embedded binaries section and also set AlwaysEmbedSwiftStandardLibraries to yes in build settings.

@NimaiUser
Copy link

NimaiUser commented Oct 31, 2018

I already added those. Still I am facing the same issue.
screenshot 2018-10-31 at 2 47 08 pm
screenshot 2018-10-31 at 2 47 22 pm
screenshot 2018-10-31 at 2 50 30 pm

@iThink32
Copy link
Contributor

@NimaiUser which Xcode version are you using?

@NimaiUser
Copy link

9.4.1

@iThink32
Copy link
Contributor

iThink32 commented Oct 31, 2018

@NimaiUser did you go through the readme? it is clearly mentioned that this framework is meant for Xcode 10 and above.Please go through the readme for further clarifications.

@NimaiUser
Copy link

Okay. Let me check

@NimaiUser
Copy link

It's Working fine. Thanks a lot.

@iThink32
Copy link
Contributor

iThink32 commented Oct 31, 2018

@NimaiUser 👍

@shokeen-mohseen
Copy link

i used xcode 10.1 but same issue occoured

@iThink32
Copy link
Contributor

@shokeen-mohseen pls reopen issues before commenting.Anyway go through the readme , you have to update to the latest version of our package to be able to run it on Xcode 10+

@Lokendra2500
Copy link

I also face the issue when I build for iOS.
getting this message

The following build commands failed:
CompileC /Users/aaryan/Library/Developer/Xcode/DerivedData/Navigator-eiuwppnigwdylqbpostwazwgltsm/Build/Intermediates.noindex/Navigator.build/Debug-iphonesimulator/Navigator.build/Objects-normal/x86_64/Main-2e271dd7871d25e9f7cc0087f333299870290e1cb0cc563c340cd3ade440690d.o /Users/aaryan/Documents/code/navigator-mobile/platforms/ios/Navigator/Plugins/com.razorpay.cordova/Razorpay/Main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65

@ankitkachhwaha
Copy link

Hi
i am facing same issue in ionic 3 i trying to integrating razorpay in IOS I try all the video and run script but still i am getting this error
Xcode version : 10.2.1

The following build commands failed:
/Users/cintana/Library/Developer/Xcode/DerivedData/Boonbox_Consumer-dpyknhwvgojmuzcbwsyasxwkhnep/Build/Intermediates.noindex/ArchiveIntermediates/Boonbox Consumer/InstallationBuildProductsLocation/Applications/Boonbox Consumer.app/Frameworks/Razorpay.framework: replacing existing signature
/Users/cintana/Library/Developer/Xcode/DerivedData/Boonbox_Consumer-dpyknhwvgojmuzcbwsyasxwkhnep/Build/Intermediates.noindex/ArchiveIntermediates/Boonbox Consumer/InstallationBuildProductsLocation/Applications/Boonbox Consumer.app/Frameworks/Razorpay.framework: errSecInternalComponent
Command CodeSign failed with a nonzero exit code

@ghost
Copy link

ghost commented Oct 7, 2020

Hi,

 Iam getting the following issue. can you guys help on this.

/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:21: error: cannot find protocol
declaration for 'RazorpayPaymentCompletionProtocolWithData'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:64: error: cannot find protocol
declaration for 'ExternalWalletSelectionProtocol'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:4:3: error: unknown type name 'Razorpay'
Razorpay *razorpay;
^
/Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:19:15: error: use of undeclared identifier
'Razorpay'
razorpay = [Razorpay initWithKey:(NSString *)[options objectForKey:@"key"]
^
4 errors generated.

  • BUILD FAILED *

@subbu-nama Did you manage to fix it? I am also getting the same errors.

@shokeen-mohseen
Copy link

shokeen-mohseen commented Oct 7, 2020 via email

@ghost
Copy link

ghost commented Oct 7, 2020

Note: Make sure that you set Always Embed Swift Standard Libraries of your main target to yes. Note: Remember to enable bitcode on your iOS project. We support Xcode 11+ versions. -- Regards, Mohd Imran Hybrid app Developer Misha Infotech Pvt Ltd. Email: m imran.m@mishainfotech.comohdimran088@gmail.com ohdimran088@gmail.com

On Wed, Oct 7, 2020 at 4:11 PM Nishant Gaurav @.***> wrote: Hi, Iam getting the following issue. can you guys help on this. /Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:21: error: cannot find protocol declaration for 'RazorpayPaymentCompletionProtocolWithData' @interface https://github.com/interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> { ^ /Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:3:64: error: cannot find protocol declaration for 'ExternalWalletSelectionProtocol' @interface https://github.com/interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> { ^ /Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:4:3: error: unknown type name 'Razorpay' Razorpay *razorpay; ^ /Users/AppInteract/src/AiPlatform/AiGenerator/1bf90207-234f-417b-8c8f-5c93618a0b9a/platforms/ios/360 Driving School/Plugins/com.razorpay.cordova/Razorpay/Main.m:19:15: error: use of undeclared identifier 'Razorpay' razorpay = [Razorpay initWithKey:(NSString *)[options objectForKey:@"key"] ^ 4 errors generated. - BUILD FAILED * How did you manage to fix it? I am also getting the same errors. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#85 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4X2Y6YHBWRZZLIE4Q5HJTSJRAWHANCNFSM4F3V4R2Q .

Still getting the same errors. Set Always Embed Swift Standard Libraries to Yes and enable bitcode to Yes. Cleared derived data as well.

Attaching error log below.

/Users/nishantgaurav/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:3:9: error: unknown type name 'RazorpayCheckout'
typedef RazorpayCheckout Razorpay;
^
/Users/nishantgaurav/app/ios/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:5:21: error: cannot find protocol declaration for 'RazorpayPaymentCompletionProtocolWithData'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/nishantgaurav/app/ios/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:5:64: error: cannot find protocol declaration for 'ExternalWalletSelectionProtocol'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
^
/Users/nishantgaurav/app/app/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:21:15: error: receiver type 'Razorpay' (aka 'int') is not an Objective-C class
razorpay = [Razorpay initWithKey:(NSString *)[options objectForKey:@"key"]
^
/Users/nishantgaurav/app/ios/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:23:4: error: bad receiver type 'Razorpay *' (aka 'int *')
[razorpay setExternalWalletSelectionDelegate:self];
^~~~~~~~
/Users/nishantgaurav/app/ios/app/platforms/ios/heroapp/Plugins/com.razorpay.cordova/Main.m:30:4: error: bad receiver type 'Razorpay *' (aka 'int *')
[razorpay open:tempOptions];
^~~~~~~~
6 errors generated.

@Nautiyalsachin
Copy link
Contributor

Hi @nishantrunning, Please try to update your Xcode and the razorpay-pod internally, we have fixed this issue on our latest release. Also don't forget to run pod update on your podfile.

@ghost
Copy link

ghost commented Oct 9, 2020

Hi @nishantrunning, Please try to update your Xcode and the razorpay-pod internally, we have fixed this issue on our latest release. Also don't forget to run pod update on your podfile.

Already did that. Adding the version info below

Xcode 12
razorpay-pod (1.1.7)
com.razorpay.cordova (1.4.12)
cordova-ios: 5.1.1,

Following are the steps I followed.

Updated pod
Always Embed Swift Standard Libraries of main target to yes
Enabled bitcode on project
Deleted the contents of the derived data folder and rebuild it.
Removed the platform and rebuild

The issue still persists. @Nautiyalsachin Have you verified if this works on Xcode 12?

@Nautiyalsachin
Copy link
Contributor

Hi @nishantrunning, we have these example repositories created, please try to clone it in your system and try to replicate the same on the examples. Let me know if you want any more help.
Regards, Sachin

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

No branches or pull requests

8 participants