【发布时间】:2014-12-12 03:18:03
【问题描述】:
我正在尝试使用 Google Cast SDK 2.5.0 构建 iOS 应用,并且能够在 iPhone 5 设备上构建,但是当我尝试在 iPhone 6 设备上构建时,我收到以下构建错误:
ld:警告:忽略文件 ./GoogleCast.framework/GoogleCast,文件 ./GoogleCast.framework/GoogleCast 中缺少所需的架构 arm64(3 片)
我注意到这里有一篇关于类似问题的帖子: Google Cast SDK 2.3.0 for iOS doesn't support 64-bit
所以我尝试了这个: ranlib GoogleCast.framework/Versions/A/GoogleCast
但我仍然缺少第 64 臂。有人遇到过类似的问题吗?
【问题讨论】:
-
在developers.google.com/cast/docs/downloads 再次下载。我运行 lipo -info 来显示支持的架构师。 lipo -info Versions/A/GoogleCast Architectures in fat file: Versions/A/GoogleCast are: arm64 armv7 armv7s i386 x86_64
-
谢谢!结果我有两个版本的框架,而 Xcode 没有使用我认为的那个。运行 lipo -info 发现它是错误的。
标签: ios chromecast google-cast iphone-6 iphone-64bit