【问题标题】:swift App using cocoapod fails to launch after 20.00s使用 cocoapod 的 swift 应用程序在 20 秒后无法启动
【发布时间】:2016-07-03 14:52:10
【问题描述】:

我创建了一个默认的 one view swift 项目,并在 Podfile 中添加了 11 个库。 我可以从 xcode 内部运行应用程序,但是当我直接使用此堆栈从手机运行应用程序时,应用程序无法运行:

事件标识符:3EB8A44E-8F2C-407A-AE7B-A314E62AC61B CrashReporter 密钥:d8ab2628e36e1c5ef60c63f217d734d62950b336 硬件 型号:iPhone5,2 进程:testPod [1250] 路径:
/var/mobile/Containers/Bundle/Application/0F6BFE2A-4FD0-4553-9AB6-CFC5281FE707/testPod.app/testPod 标识符:com.franck.testPod.testPod 版本:1 (1.0) 代码类型:ARM (Native) 父进程:launchd [1]

日期/时间:2016-03-17 10:48:44.44 +0100 发布时间:
2016-03-17 10:48:22.22 +0100 操作系统版本:iOS 9.2.1 (13D15) 报告版本:105

异常类型:00000020 异常代码:0x000000008badf00d 例外说明:模拟(这不是崩溃) 线程:0

应用程序特定信息:com.franck.testPod.testPod 未能 20.00 秒后启动(launchIntent:foreground-interactive)

经过的总 CPU 时间(秒):25.650(用户 25.650,系统 0.000), 64% CPU Elapsed application CPU time (seconds): 0.020, 0% CPU

过滤的系统日志:未找到

线程 0: 0 dyld 0x1fe96e8c __fcntl + 8 1 dyld 0x1fe96a94 fcntl + 108 2 dyld
0x1fe86ff4 ImageLoaderMachO::loadCodeSignature(linkedit_data_command const*, int, unsigned long long, ImageLoader::LinkContext const&) + 40 3 代尔 0x1fe8b640 ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*、encryption_info_command const*、ImageLoader::LinkContext const&) + 244 4 dyld 0x1fe8651e ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) + 246

以前有人经历过吗?我正在使用 cocoapods-0.39.0。

Podfile 是:

target 'testPod' do
  pod 'SkyFloatingLabelTextField'
  pod 'CSStickyHeaderFlowLayout'
  pod 'Argo'
  pod 'ReactiveCocoa'
  pod 'NVActivityIndicatorView'
  pod 'Alamofire' 
  pod 'SwiftCarousel'
  pod 'SnapKit'
  pod 'WatchdogInspector'
  pod 'Fabric'
  pod 'Crashlytics'
end

【问题讨论】:

  • 你能展示你的 AppDelegate 是做什么的吗?还有你的初始 ViewController 正在加载什么。其中任何一个都可能存在问题。
  • 没什么,这是默认的。所有函数都是空的
  • 您找到解决方案了吗?我也有同样的经历。
  • @Mustafa 好吧,如果您想了解更多信息,请查看:github.com/artsy/eigen/issues/586

标签: ios swift frameworks cocoapods


【解决方案1】:

iOS 9.3 已自动修复

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-02
    • 2020-02-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多