Google iOS SDK无法存档(使用未声明的标识符错误) [英] Google iOS SDK fails to archive (use of undeclared identifier errors)

查看:121
本文介绍了Google iOS SDK无法存档(使用未声明的标识符错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将我的项目存档以提交给App Store,但是,每次与Google iOS SDK相关的所有内容出现错误使用未声明的标识符"时,我都会尝试将其存档.该应用程序本身可以在集成了所讨论的SDK的情况下完美地运行和构建,唯一失败的是存档过程.我尝试过可可豆荚和人工整合方法(当然也可以单独尝试).此外,我在运行OS X 10.10.4的两个不同的Mac上使用了最新的xCode版本(6.4和7 beta 4).这是我一直在使用的指南.

I have attempted to archive my project for submission to App Store, however, every time I get errors "use of undeclared identifier" for everything related to google iOS SDK. The application itself runs and builds flawlessly with the discussed SDK integrated, the only thing that fails is the archive process. I have tried both cocoa pods and manual method of integration (separately, of course). Furthermore, I used the latest xCode versions (6.4 and 7 beta 4) on two different macs running OS X 10.10.4. This is the guide I have been using.

推荐答案

您的问题与将归档配置与您的发布设置结合使用有关.如果将方案设置Command + <更改为使用 Debug 配置进行归档,则可以成功归档您的应用程序.这意味着在某个地方您可能与 Debug Release 配置不匹配.

Your issue has something to do with the configuration of archiving in combination with your Release settings. If you change the scheme settings Command + < to use the Debug configuration for archiving, you may be able to successfully archive your app. This means that somewhere you are probably not matching the Debug and Release configurations.

有关示例项目 Build Settings (缺少发布中的Swift桥接头)的示例,请参见以下屏幕截图:

See the following screenshot for example project Build Settings that are missing the Swift bridging header in release:

在发布配置中添加bridge.h,您将能够使用发布架构进行构建,并且能够在发布配置下进行归档.

Add bridge.h to the release configuration and you will be able to build with the Release schema and you will be able to archive under release configuration.

这篇关于Google iOS SDK无法存档(使用未声明的标识符错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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