需要帮助:'错误架构'导致应用程序在iOS 7中启动时崩溃,但在iOS 8中运行良好 [英] Need help: 'Wrong Architecture' causing app to crash when launching in iOS 7 but works fine in iOS 8

查看:92
本文介绍了需要帮助:'错误架构'导致应用程序在iOS 7中启动时崩溃,但在iOS 8中运行良好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在iOS 7.1中启动它时我的应用程序崩溃但在iOS 8.1中运行良好

My app crashes when I launch it in iOS 7.1 but works fine in iOS 8.1

我得到的错误是:

dyld:未加载库:/System/Library/Frameworks/AVKit.framework/AVKit
引用自:我的APP
原因:找不到合适的图像。找到:
/System/Library/Frameworks/AVKit.framework/AVKit:mach-o,但错误的架构
(lldb)

dyld: Library not loaded: /System/Library/Frameworks/AVKit.framework/AVKit Referenced from: MY APP Reason: no suitable image found. Did find: /System/Library/Frameworks/AVKit.framework/AVKit: mach-o, but wrong architecture (lldb)

I也注意到类似的错误但是UIKit提到了一些编辑而不是AVKit。

I also noticed a similar error but with the UIKit mentioned instead of AVKit a few edits ago.

有谁知道如何解决这个问题?我正在使用Xcode 6.1。

Does anyone know how to resolve this? I'm using Xcode 6.1.

我真的不想错过iOS 7用户只发布iOS 8.谢谢!

I really don't want to miss out on iOS 7 users by only releasing for iOS 8. Thank you!

推荐答案

该应用程序崩溃,因为框架AVKit仅在iOS 8中引入,因此当您尝试为iOS编译应用程序时7由于iOS 7 SDK不包含AVKit框架,应用程序崩溃。

The app is crashing because the framework AVKit is introduced in iOS 8 only, so when you try to compile the app for iOS 7 the app crashes as iOS 7 SDK does not include AVKit framework.

这篇关于需要帮助:'错误架构'导致应用程序在iOS 7中启动时崩溃,但在iOS 8中运行良好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆