代码之家  ›  专栏  ›  技术社区  ›  Krishanu Mukherjee

点击paypal时,Ionic 3 IOS应用程序崩溃

  •  -2
  • Krishanu Mukherjee  · 技术社区  · 6 年前

    step 1

    step 2

    This is the error I am getting on clicking paypal button

    error

    这个应用在Android上运行良好。但是在IOS上崩溃了。由爱奥尼亚3号建造。如何解决这个问题? “租金”按钮将重定向到PayPal。使用贝宝沙箱帐户。 请帮忙。谢谢

    2018-05-21 13:04:03.754557+0530 thegrand[665:8151]磁盘Cookies存储策略从2更改为0,cookie文件:file:///Users/krishanu_mukherjee/Library/Developer/CoreSimulator/Devices/67065A2C-5E45-47EB-AAD8-5F2E8D5149F4/data/Containers/Data/Application/13D49686-3CB1-4CC3-9967-772BBC693FFA/Library/Cookies/io.ionic.starter.binarycookies 2018-05-21 13:04:04.026035+0530盛大[665:8151]Apache Cordova原生平台4.5.3版即将启动。 2018-05-21 13:04:04.028647+0530 thegrand[665:8151]多任务->设备:是,应用程序:是 2018-05-21 13:04:04.118347+0530 thegrand[665:8151]CDVWKWebViewEngine:尝试注入XHR polyfill 2018-05-21 13:04:04.468109+0530如果恢复时需要,Grand[665:8151]CDVWKWebView引擎将重新加载WKWebView 2018-05-21 13:04:04.468371+0530 thegrand[665:8151]使用Ionic WKWebView 2018-05-21 13:04:04.470572+0530 thegrand[665:8151][CDVTimer][console]0.168085ms 2018-05-21 13:04:04.470968+0530 thegrand[665:8151][CDV计时器][handleopenurl]0.163078ms 2018-05-21 13:04:04.474148+0530 thegrand[665:8151][CDVTimer][intentandnavigationfilter]3.002048ms 2018-05-21 13:04:04.474516+0530 thegrand[665:8151][CDVTimer][gesturehandler]0.118971ms 2018-05-21 13:04:04.474793+0530 thegrand[665:8151][CDVTimer][paypalmobile]0.108004ms 2018-05-21 13:04:04.475352+0530 thegrand[665:8151]CDVionic键盘:调整大小模式1 2018-05-21 13:04:04.476834+0530 thegrand[665:8151][CDVTimer][keyboard]1.547933ms 2018-05-21 13:04:04.533597+0530 thegrand[665:8151][CDVTimer][splashscreen]56.516051ms 2018-05-21 13:04:04.533796+0530 thegrand[665:8151][CDVTimer][TotalPluginStartup]63.489914ms 2018-05-21 13:04:12.591638+0530 the Grand[665:8151]Angular正在开发模式下运行。调用enableProdMode()以启用生产模式。 2018-05-21 13:04:12.592087+0530大[665:8151]设备在5秒后仍未启动。 2018-05-21 13:04:12.592766+0530 The Grand[665:8151]频道未启动:onDOMContentLoaded 2018-05-21 13:04:12.593073+0530 The Grand[665:8151]Ionic Native:deviceready事件在4048毫秒后触发 2018-05-21 13:04:12.896733+0530 thegrand[665:8151]警告:本机:尝试呼叫状态栏。styleDefault,但未安装状态栏插件。 2018-05-21 13:04:12.897143+0530 thegrand[665:8151]警告:安装状态栏插件:“爱奥尼亚cordova插件添加cordova插件状态栏” 2018-05-21 13:04:13.135458+0530 The Grand[665:8151]CDVWKWebViewEngine:手持翻页 2018-05-21 13:04:13.172548+0530 thegrand[665:8151]警告:谷歌地图API警告:Noapikes https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys 2018-05-21 13:04:13.407415+0530 thegrand[665:8151]错误:Google Maps API错误:MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error 2018-05-21 13:04:20.262243+0530 thegrand[665:8151]CDVWKWebViewEngine:手持翻页 2018-05-21 13:04:23.648832+0530 The Grand[665:8151]CDVWKWebViewEngine:手持翻页 2018-05-21 13:04:27.249545+0530 thegrand[665:8151]CDVWKWebViewEngine:手持翻页 2018-05-21 13:04:30.888592+0530 thegrand[665:8151]CDVWKWebViewEngine:手持翻页 2018-05-21 13:04:32.490485+0530 thegrand[665:8151]10 2018-05-21 13:04:32.856165+0530 the Grand[665:8923]在调度队列上创建了一个位置管理器(0x7fbb58f11990),该队列在主线程以外的线程上执行。开发人员有责任确保在分配位置管理器对象的线程上运行运行循环。特别是,不支持在任意调度队列(未连接到主队列)中创建位置管理器,这将导致无法接收回调。 2018-05-21 13:04:32.971875+0530 thegrand[665:8924]-[ NSCFNumber length]:发送到实例0xb0000000000000c5的无法识别的选择器 2018-05-21 13:04:32.978500+0530 thegrand[665:8924]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[_nscfNumberLength]:未识别的选择器发送到实例0xb0000000000000c5” ***第一次抛出调用堆栈: ( 0 CoreFoundation 0x0000000108eb71e6__异常预处理+294 1 libobjc。A.dylib 0x000000010851e031 objc_异常_抛出+48 2 CoreFoundation 0x0000000108f38784-[NSObject(NSObject)不识别选择器:][132 3 CoreFoundation 0x0000000108e39898_ + 1432 4 CoreFoundation 0x0000000108e39278 _CF_转发_准备_0+120 5基础0x00000001042cba3c-[NSScanner(NSDecimalNumberScanning)scanDecimal:+303 6基础0x0000000104355f41-[NSDecimalNumberPlaceholder initWithString:locale:+127 7基础0x00000001043561de+[NSDecimalNumber decimalNumberWithString:][46 8.大0x0000000102fb0535 _u51-[PayPalmObjectOrdovaPlugin RendersSinglePaymentUI:]block_invoke+1013 9。dylib 0x000000010a721807 _调度_呼叫_阻塞_和_释放+12 10.libdispatch。dylib 0x000000010a722848 _调度_客户_调出+8 11。dylib 0x000000010a727675 _调度_队列_覆盖_调用+1451 12。dylib 0x000000010a72e3c8 _调度_根_队列_排水+664 13。dylib 0x000000010a72e0d2调度工人线程3+132 14 libsystem_pthread。dylib 0x000000010ac4c1ca_pthread_wqthread+1387 15 libsystem_pthread。dylib 0x000000010ac4bc4d启动线程+13 ) libc++abi。dylib:以NSException类型的未捕获异常终止

    1 回复  |  直到 6 年前
        1
  •  2
  •   Parvej Mallick    6 年前

    我猜你使用的是爱奥尼亚原生paypal插件,你会发现这条线路

    this.payPal.prepareToRender('PayPalEnvironmentSandbox', new PayPalConfiguration({
        // Only needed if you get an "Internal Service Error" after PayPal login!
        //payPalShippingAddressOption: 2 // PayPalShippingAddressOptionPayPal
    })).then(() => {
        let payment = new PayPalPayment('3.33', 'USD', 'Description', 'sale');
        this.payPal.renderSinglePaymentUI(payment).then(() => {
    

    价格将是整数,如->3.33不是字符串“3.33” 在安卓系统中,它可以正常工作,但在ios上,它会使应用程序崩溃