帖子
帖子
用户
博客
课程
显示全部楼层
13
帖子
0
勋章
95
Y币

[多端开发] 安卓机运行没问题,苹果机运行就闪退

[复制链接]
发表于 2021-12-2 19:50:22
本帖最后由 逆天而行Rg 于 2021-12-2 19:51 编辑

      function refuse(){
        console.log("close")
        api.closeWidget({});
      }
      function argee(){
        $api.setStorage('agreement', true);

          api.openWin({
              name: 'main',
              url: './main.html',
          })
      }

相关代码,当执行argee()时苹果机会闪退,安卓机没问题

苹果11,ios15.1
有收集到日志没
13
帖子
0
勋章
95
Y币
有没有收集日志的教程?我尝试下,目前看下来问题出在main.html里,单安卓里main是可以正常运行的
特特法爷 · 2021-12-2 20:39有收集到日志没
13
帖子
0
勋章
95
Y币
本帖最后由 逆天而行Rg 于 2021-12-3 07:45 编辑

        // var frames = [];

        // frames.push( {
        //         name: 'frame0',
        //         url: './frame0.html',
        //         bgColor : 'rgba(0,0,0,.2)',
        //         bounces:true
        // })

        // frames.push( {
        //         name: 'frame1',
        //         url: './frame1.html',
        //         bgColor : 'rgba(0,0,0,.2)',
        //         bounces:true
        // })

        // frames.push( {
        //         name: 'frame2',
        //         url: './frame2.html',
        //         bgColor : 'rgba(0,0,0,.2)',
        //         bounces:true
        // })

把这部分代码都注释掉就不会闪退了,看下来是frame0.html的问题,单独运行了一下果然出错了
13
帖子
0
勋章
95
Y币
[2021-12-3 7:42:37][ERROR] Exception name:NSSignalException
Exception reason:Signal SIGABRT was raised!

Exception stack
    "0   UZApp                               0x00000001026e13fc UZApp + 1446908",
    "1   UZApp                               0x00000001026e0f94 UZApp + 1445780",
    "2   libsystem_platform.dylib            0x00000001f0c12c10 8450ED47-209C-30A5-A0EC-CC569C28FACD + 7184",
    "3   libsystem_pthread.dylib             0x00000001f0c20378 pthread_kill + 268",
    "4   libsystem_c.dylib                   0x000000018b7b6f50 abort + 164",
    "5   libc++abi.dylib                     0x00000001990f5bc4 375CF750-3F93-39E8-A6EB-1C0D7181C64E + 80836",
    "6   libc++abi.dylib                     0x00000001990e6fd8 375CF750-3F93-39E8-A6EB-1C0D7181C64E + 20440",
    "7   libobjc.A.dylib                     0x0000000198ff4064 10FA90C6-DFE5-38AE-B3DC-2251181CC272 + 114788",
    "8   libc++abi.dylib                     0x00000001990f4f58 375CF750-3F93-39E8-A6EB-1C0D7181C64E + 77656",
    "9   libc++abi.dylib                     0x00000001990f7efc __cxa_rethrow + 148",
    "10  libobjc.A.dylib                     0x0000000198fefe8c objc_exception_rethrow + 44",
    "11  CoreFoundation                      0x00000001808ff4a4 CFRunLoopRunSpecific + 836",
    "12  GraphicsServices                    0x000000019c28f38c GSEventRunModal + 164",
    "13  UIKitCore                           0x000000018329f6a8 8388EB03-002B-3B35-A78A-6A022894292E + 5346984",
    "14  UIKitCore                           0x000000018301e7f4 UIApplicationMain + 2092",
    "15  UZApp                               0x00000001026f6cbc UZApp + 1535164",
    "16  dyld                                0x0000000103eb9a24 start + 520"
您需要登录后才可以回帖 登录

本版积分规则