4月起,iOS項(xiàng)目上線appstore發(fā)布锡宋,需要使用Xcode14.1及Xcode14.1+進(jìn)行打包儡湾,否則會(huì)被拒,被拒理由如下
晚上乖乖的升級(jí)電腦系統(tǒng)版本执俩,xcode版本徐钠,xcode直接從Appstore下載的最新版本Xcode14.3,然后運(yùn)行項(xiàng)目時(shí)役首,又碰到了報(bào)錯(cuò)
這是CocoaPods的問(wèn)題尝丐,對(duì)應(yīng)的*-frameworks.sh文件進(jìn)入如下修改
//原來(lái)
source="$(readlink "${source}")"
//現(xiàn)在
source="$(readlink -f "${source}")"
順利運(yùn)行并打包,iOS14+的手機(jī)都安裝正常衡奥,然而iOS13系統(tǒng)的爹袁,通過(guò)從本地拿log,log詳情如下
Incident Identifier: 261A31C3-3C40-4B4B-B028-11E357E02B07
CrashReporter Key: e3ea49bd8801e8abdf6e0dd32942962ad4ba114d
Hardware Model: iPhone11,8
Process: APP名字 [1913]
Path: /private/var/containers/Bundle/Application/028BD7B6-40A6-4793-9CE3-ADD6D216B7C9/APP名字.app/APP名字
Identifier: xx
Version: 4 (1.3.4)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.lakala.haotk [1123]
Date/Time: 2023-04-06 10:35:03.4554 +0800
Launch Time: 2023-04-06 10:35:03.4464 +0800
OS Version: iPhone OS 13.6.1 (17G80)
Release Type: User
Baseband Version: 2.07.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Assertion failed: (gotLocation), function applyFixupsToImage_block_invoke_3, file /Library/Caches/com.apple.xbs/Sources/dyld/dyld-750.4.2/dyld3/Loading.cpp, line 779.
Highlighted by Thread: 0
Backtrace not available
Unknown thread crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000009 x2: 0x000000016b3685b0 x3: 0x0000000000000014
x4: 0x000000016b3681b0 x5: 0x0000000000000000 x6: 0x000000016b368f40 x7: 0x000000016b369058
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x2e342e3035372d64 x11: 0x2f33646c79642f32
x12: 0x2f33646c79642f32 x13: 0x2e676e6964616f4c x14: 0x6e696c202c707063 x15: 0x000a2e3937372065
x16: 0x0000000000000209 x17: 0x0000000105ebf370 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016b3681b0 x21: 0x0000000000000014 x22: 0x000000016b3685b0 x23: 0x0000000000000009
x24: 0x0000000000000006 x25: 0x0000000000000843 x26: 0x0000000000000d52 x27: 0x0000000105bdac90
x28: 0x00000000006496c8 fp: 0x000000016b368180 lr: 0x0000000105ecc4cc
sp: 0x000000016b368140 pc: 0x0000000105ec4d90 cpsr: 0x40000000
esr: 0x00000000 Address size fault
Binary images description not available
Error Formulating Crash Report:
Failed to create CSSymbolicatorRef - corpse still valid ˉ\_(ツ)_/ˉ
EOF
看樣子可能是定位的問(wèn)題矮固,但是具體也沒(méi)找到最終的地方失息,最后看到網(wǎng)上也有朋友碰到相同的問(wèn)題譬淳,說(shuō)降級(jí)到Xcode14.2就可以了,于是先用同事xcode14.2試了一下盹兢,果然可以邻梆,具體原因還沒(méi)來(lái)的及細(xì)查,等確定好再來(lái)更新