Skip to content

Facing error while performing the ios build #102

@bhushankummar

Description

@bhushankummar

Here is the description :

/Volumes/app/platforms/ios/MyApp/Plugins/com.razorpay.cordova/Main.m:3:9: error: 
      unknown type name 'RazorpayCheckout'
typedef RazorpayCheckout Razorpay;
        ^
/Volumes/app/platforms/ios/MyApp/Plugins/com.razorpay.cordova/Main.m:5:21: error: 
      cannot find protocol declaration for 'RazorpayPaymentCompletionProtocolWithData'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
                    ^
/Volumes/app/platforms/ios/MyApp/Plugins/com.razorpay.cordova/Main.m:5:64: error: 
      cannot find protocol declaration for 'ExternalWalletSelectionProtocol'
@interface Main () <RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol> {
                                                               ^
/Volumes/app/platforms/ios/MyApp/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"]
              ^
/Volumes/app/platforms/ios/MyApp/Plugins/com.razorpay.cordova/Main.m:23:4: error: 
      bad receiver type 'Razorpay *' (aka 'int *')
  [razorpay setExternalWalletSelectionDelegate:self];
   ^~~~~~~~
/Volumes/app/platforms/ios/MyApp/Plugins/com.razorpay.cordova/Main.m:30:4: error: 
      bad receiver type 'Razorpay *' (aka 'int *')
  [razorpay open:tempOptions];
   ^~~~~~~~
6 errors generated.

package.json

{
	"name": "MyApp",
	"version": "0.0.1",
	"author": "MyApp Team",
	"homepage": "https://MyApp.com/",
	"scripts": {
		"ng": "ng",
		"start": "ng serve",
		"build": "ng build",
		"test": "ng test",
		"lint": "ng lint",
		"e2e": "ng e2e",
		"sign:apk": "sh ./scripts/android.sh",
		"build:dev": "ng build --configuration=dev",
		"build:android:local": "ionic cordova build --release android --verbose && npm run sign:apk",
		"build:android:dev": "ionic cordova build --release android --verbose --configuration=dev && npm run sign:apk",
		"build:ios:local": "ionic cordova build --release ios --verbose",
		"build:ios:dev": "ionic cordova build --release ios --verbose --configuration=dev"
	},
	"resolutions": {
		"@babel/preset-env": "^7.8.7"
	},
	"private": true,
	"dependencies": {
		"@angular/common": "~8.2.14",
		"@angular/core": "~8.2.14",
		"@angular/fire": "5.0.0",
		"@angular/forms": "~8.2.14",
		"@angular/platform-browser": "~8.2.14",
		"@angular/platform-browser-dynamic": "~8.2.14",
		"@angular/router": "~8.2.14",
		"@ionic-native/core": "^5.26.0",
		"@ionic-native/native-storage": "^5.34.0",
		"@ionic-native/splash-screen": "^5.26.0",
		"@ionic-native/status-bar": "^5.26.0",
		"@ionic/angular": "^5.1.1",
		"@ngx-translate/core": "^13.0.0",
		"@ngx-translate/http-loader": "^6.0.0",
		"chart.js": "^2.9.3",
		"cordova-android": "9.1.0",
		"cordova-ios": "^5.1.1",
		"cordova-plugin-cocoapod-support": "^1.6.2",
		"cordova-plugin-nativestorage": "^2.3.2",
		"cordova-res": "^0.12.0",
		"core-js": "^2.5.4",
		"es6-promise-plugin": "^4.2.2",
		"firebase": "5.5.0",
		"install": "^0.13.0",
		"ionic-plugin-keyboard": "^2.2.1",
		"lodash": "^4.17.21",
		"moment": "^2.29.1",
		"ng2-charts": "^2.3.2",
		"npm": "^7.20.3",
		"razorpay-cordova": "^0.1.0",
		"rxjs": "^6.5.5",
		"trackjs": "^3.10.0",
		"tslib": "^1.13.0",
		"zone.js": "~0.9.1"
	},
	"devDependencies": {
		"@angular-devkit/build-angular": "^0.803.26",
		"@angular/cli": "^8.3.26",
		"@angular/compiler": "~8.2.14",
		"@angular/compiler-cli": "~8.2.14",
		"@angular/language-service": "~8.2.14",
		"@ionic/angular-toolkit": "^2.1.1",
		"@types/jasmine": "~3.3.8",
		"@types/jasminewd2": "~2.0.3",
		"@types/node": "~8.9.4",
		"codelyzer": "^5.2.2",
		"com.razorpay.cordova": "github:razorpay/razorpay-cordova",
		"cordova-plugin-device": "^2.0.3",
		"cordova-plugin-ionic-keyboard": "^2.2.0",
		"cordova-plugin-ionic-webview": "^4.2.1",
		"cordova-plugin-splashscreen": "^5.0.3",
		"cordova-plugin-statusbar": "^2.4.3",
		"cordova-plugin-whitelist": "^1.3.4",
		"jasmine-core": "~3.4.0",
		"jasmine-spec-reporter": "~4.2.1",
		"karma": "~4.1.0",
		"karma-chrome-launcher": "~2.2.0",
		"karma-coverage-istanbul-reporter": "~2.0.1",
		"karma-jasmine": "~2.0.1",
		"karma-jasmine-html-reporter": "^1.5.4",
		"npm-force-resolutions": "0.0.3",
		"protractor": "^5.4.4",
		"ts-node": "~7.0.0",
		"tslint": "~5.15.0",
		"typescript": "~3.4.3"
	},
	"description": "An Ionic project",
	"cordova": {
		"plugins": {
			"cordova-plugin-whitelist": {},
			"cordova-plugin-statusbar": {},
			"cordova-plugin-device": {},
			"cordova-plugin-splashscreen": {},
			"cordova-plugin-ionic-webview": {},
			"cordova-plugin-ionic-keyboard": {},
			"es6-promise-plugin": {},
			"ionic-plugin-keyboard": {},
			"com.razorpay.cordova": {},
			"cordova-plugin-nativestorage": {}
		},
		"platforms": [
			"android",
			"ios"
		]
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions