【发布时间】:2015-04-27 05:55:04
【问题描述】:
我用 Swift 语言创建了应用程序并在我的 iPad 上安装了 IPA(分发配置文件),应用程序崩溃了。但是我通过调试模式运行它在同一设备上正确运行。你能给出这个崩溃的解决方案吗?以及如何解决这个问题?
Xcode 版本:6.3.1 iOS版本:8.3
登录设备崩溃:
Apr 26 23:12:46 My-iPad kernel[0] <Notice>: xpcproxy[445] Container: /private/var/mobile/Containers/Data/Application/0E13BE10-CBAC-45FF-AAB9-575F87B32216 (sandbox)
Apr 26 23:12:46 My-iPad kernel[0] <Notice>: AMFI: TestApp(pid 445) - [deny-mmap] mapped file has no team identifier and is not a platform binary: /private/var/mobile/Containers/Bundle/Application/CFDED3C6-7AF6-427B-BBFC-27E9186EF590/TestApp.app/Frameworks/libswiftCore.dylib
Apr 26 23:12:46 My-iPad ReportCrash[411] <Notice>: ReportCrash acting against PID 445
Apr 26 23:12:46 My-iPad ReportCrash[411] <Notice>: Formulating crash report for process TestApp[445]
Apr 26 23:12:46 My-iPad com.apple.xpc.launchd[1] (UIKitApplication:com.mobility.TestApp[0x3c28][445]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Apr 26 23:12:46 My-iPad SpringBoard[49] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Apr 26 23:12:47 My-iPad ReportCrash[411] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/TestApp_2015-04-26-231246_My-iPad.ips
Apr 26 23:12:47 My-iPad locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Apr 26 23:12:47 My-iPad SpringBoard[49] <Warning>: Application 'UIKitApplication:com.mobility.TestApp[0x3c28]' crashed.
Apr 26 23:12:47 My-iPad locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
【问题讨论】:
-
日志的第二行表明问题是缺少团队标识符。你研究过这个问题吗?
-
另外,它说“不是平台二进制”,所以你可能在 iPad 上安装了模拟器。
-
@ThomasW,应用程序安装正确,但我的问题是当我打开应用程序时它会崩溃。为什么会崩溃?
-
@ManiApple 日志的第二行说它没有正确安装。
-
@ericd,不... 应用程序安装并打开到闪屏然后只会崩溃。调试模式正常运行。以至于我迷茫了很多。
标签: ios iphone xcode swift crash