LookinServer icon indicating copy to clipboard operation
LookinServer copied to clipboard

Adhoc 包启动闪退

Open Shinolr opened this issue 5 years ago • 2 comments

开发阶段 lookin 可以正常使用,通过 Xcode 安装 app 可以正常运行,但是打出的 Adhoc 包在测试设备上运行直接闪退。报错信息里有 lookin 相关信息,但是不知道具体原因。Podfile 里注释掉 Lookin,重新 pod install 后打包,不会闪退。

CrashReporter Key:   76934d2a9280bfa35b7c4b4fea0d8f91255aa70e
Hardware Model:      iPhone10,3
Process:             ~bundlename~ [38300]
Path:                /private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/~bundlename~
Identifier:          ~bundleid~
Version:             913 (1.0.2)
AppStoreTools:       11B500
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           ~bundleid~ [21732]


Date/Time:           2019-12-06 10:55:17.3731 +0800
Launch Time:         2019-12-06 10:55:17.2738 +0800
OS Version:          iPhone OS 13.1.3 (17A878)
Release Type:        User
Baseband Version:    5.00.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Description: DYLD, dependent dylib '@rpath/LookinServer.framework/LookinServer' not found for '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/~bundlename~', tried but didn't find: '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/Frameworks/LookinServer.framework/LookinServer' '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/Frameworks/LookinServer.framework/LookinServer' '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/Frameworks/LookinServer.framework/LookinServer' '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/Frameworks/LookinServer.framework/LookinServer' '/private/var/containers/Bundle/Application/6EA2315F-ED71-49F5-A035-50FC5C7BDBD4/~bundlename~.app/Frameworks/LookinServer.framework/LookinServer' '@rpath/LookinServer.framework/LookinServer' '/System/Library/Frameworks/LookinServer.fra
Highlighted by Thread:  0

Backtrace not available

Unknown thread crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000016b132070   x3: 0x00000000000000ab
    x4: 0x000000016b131c70   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x6d6172462f797261  x11: 0x4c2f736b726f7765
   x12: 0x6d6172462f797261  x13: 0x4c2f736b726f7765  x14: 0x7265536e696b6f6f  x15: 0x006172662e726576
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016b131c70  x21: 0x00000000000000ab  x22: 0x000000016b132070  x23: 0x0000000000000001
   x24: 0x0000000000000006  x25: 0x0000000105d04000  x26: 0x0000000000000000  x27: 0x0000000105d04000
   x28: 0x0000000000000000   fp: 0x000000016b131c40   lr: 0x0000000105cee30c
    sp: 0x000000016b131c00   pc: 0x0000000105ce74f0 cpsr: 0x00000000
   esr: 0x00000000  Address size fault

Binary images description not available

Error Formulating Crash Report:
Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯

EOF

Shinolr avatar Dec 06 '19 03:12 Shinolr

额,我没有见过类似的错误,刚刚在网上搜了一下好像也没搜到什么类似案例。

也许可以先试试 CocoaPods 之外的引入 Lookin 的方式?比如这种:https://lookin.work/faq/integration-manual/

hughkli avatar Dec 09 '19 13:12 hughkli

项目是用 Configurations 管理的多个环境,猜测可能与这个有关。写了个新的 demo,也用了同样的方式配置了多环境,仍然闪退。崩溃日志的信息与之前类似,还是与 lookin 相关。希望这个 demo 可以帮助定位问题。 pod 'LookinServer', :configurations => ['Debug (dev)', 'Debug (prod)'] more details @hughkli

Shinolr avatar Dec 11 '19 07:12 Shinolr