我试图用swift创建一个基本的应用程序。当我在模拟器中测试它时它可以工作但是当我尝试在我的iPhone上测试时我得到一个错误:
dyld`_dyld_start:
0x1200c9000 <+0>: mov x28, sp
0x1200c9004 <+4>: and sp, x28, #0xfffffffffffffff0
0x1200c9008 <+8>: movz x0, #0
0x1200c900c <+12>: movz x1, #0
0x1200c9010 <+16>: stp x1, x0, [sp, #-16]!
0x1200c9014 <+20>: mov x29, sp
0x1200c9018 <+24>: sub sp, sp, #16 ; =16
0x1200c901c <+28>: ldr x0, [x28]
0x1200c9020 <+32>: ldr x1, [x28, #8]
0x1200c9024 <+36>: add x2, x28, #16 ; =16
0x1200c9028 <+40>: adrp x4, -1
0x1200c902c <+44>: add x4, x4, #0 ; =0
0x1200c9030 <+48>: adrp x3, 48
0x1200c9034 <+52>: ldr x3, [x3, #3320]
0x1200c9038 <+56>: sub x3, x4, x3
0x1200c903c <+60>: mov x5, sp
0x1200c9040 <+64>: bl 0x1200c908c ; dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*)
0x1200c9044 <+68>: mov x16, x0 //THE ERROR IS IN THIS LINE
0x1200c9048 <+72>: ldr x1, [sp]
0x1200c904c <+76>: cmp x1, #0 ; =0
0x1200c9050 <+80>: b.ne 0x1200c905c ; <+92>
0x1200c9054 <+84>: add sp, x28, #8 ; =8
0x1200c9058 <+88>: br x16
0x1200c905c <+92>: mov x30, x1
0x1200c9060 <+96>: ldr x0, [x28, #8]
0x1200c9064 <+100>: add x1, x28, #16 ; =16
0x1200c9068 <+104>: add x2, x1, x0, lsl #3
0x1200c906c <+108>: add x2, x2, #8 ; =8
0x1200c9070 <+112>: mov x3, x2
0x1200c9074 <+116>: ldr x4, [x3]
0x1200c9078 <+120>: add x3, x3, #8 ; =8
0x1200c907c <+124>: cmp x4, #0 ; =0
0x1200c9080 <+128>: b.ne 0x1200c9074 ; <+116>
0x1200c9084 <+132>: br x16
当我尝试重新安装应用程序时,我会得到不同的错误但类似,其中一些错误:
EXC_BREAKPOINT (code=1, subcode=0x1200c9088)
EXC_BREAKPOINT (code=1, subcode=0x1200f5088)
EXC_BREAKPOINT (code=1, subcode=0x1200e5088)
EXC_BREAKPOINT (code=1, subcode=0x120091088)
EXC_BREAKPOINT (code=1, subcode=0x120059088)
EXC_BREAKPOINT (code=1, subcode=0x1200b5088)
EXC_BREAKPOINT (code=1, subcode=0x120099088)
我已经在互联网上搜索过,这似乎是一个流行的错误,但我找不到适合我的解决方案。我尝试清理项目,检查断点,删除DerivedData,但没有一个任务解决了我的错误。 这是我的错误屏幕: http://i.stack.imgur.com/xIjGV.png 有人可以帮帮我吗?
答案 0 :(得分:0)
最后我明白了! 如果有人有我的问题,这个解决方案对我有用:
-1转到钥匙串访问选择“Kechains”中的“System”和“Category”中的“All Items” 将有一个名为“Apple Worldwide Developer Relations Certification Authority”的证书。如果证书已过期或显示为未经授权的标识符
,则删除该证书-2转到https://www.apple.com/certificateauthority/并下载“Apple中级证书”下的“全球开发者关系 - G2证书”
-3安装证书
-4清洁,建造并运行。