【问题标题】:Why is iOS Xcode project giving error for missing OSX framework AVKit?为什么 iOS Xcode 项目会因缺少 OSX 框架 AVKit 而出错?
【发布时间】:2015-02-08 23:27:53
【问题描述】:

所以我的 iOS 项目运行良好,然后当我尝试在模拟器中运行时突然出现以下错误:

ld: framework not found AVKit for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

当我尝试存档时,我收到此错误:

ld: framework not found AVKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

据我所知,AVKit 是一个 OSX 框架,而不是 iOS 框架。

那么为什么我的项目突然感到困惑并想要一个 OSX 框架,我是否说服它它不需要它?

【问题讨论】:

    标签: ios xcode frameworks xcode5 xcode6


    【解决方案1】:

    显然 AVKit 在 iOS 8 SDK 中可用,所以我需要将 Xcode 升级到版本 6 才能添加它。

    看到这个问题:Need help: 'Wrong Architecture' causing app to crash when launching in iOS 7 but works fine in iOS 8

    如果您也想支持 iOS 7 及以下版本,则应将其设置为可选框架。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-02
      • 2018-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多