当归档应用程序Xcode抱怨丢失的文件 [英] When archiving app Xcode complains about missing files

查看:132
本文介绍了当归档应用程序Xcode抱怨丢失的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在模拟器中运行应用程序时使用的是外部库( RHAddressBook )设备没有问题。但是当我选择归档的应用程序,我遇到的问题,它说的'RHAddressBook / AddressBook.h'文件未找到在行 #import < RHAddressBook / AddressBook.h>



我已经检查标题搜索路径是相同的调试和发布。

解决方案

当您设置使用您可能需要更新构建设置以指定其他包含搜索路径。



当您执行Archive构建时,此isn'开发构建。您可能没有更新发布版(或可能是发布版)版本的包含搜索路径。



返回构建设置,确保标题搜索路径已针对Archive所使用的构建配置进行更新。


I'm using an external library (RHAddressBook) when I run the app in the simulator or in device there is no issue. But when I choose to archive the app I run into the issue where it's saying 'RHAddressBook/AddressBook.h' file not found at the line #import <RHAddressBook/AddressBook.h>

I have checked that the header search paths are the same for debug and release.

Not really sure what to check else.

解决方案

When you setup the use of the external library for your development builds, you may have needed to update a build setting to specify an additional include search path.

When you do an Archive build, this isn't a development build. You probably didn't update the include search path for your Release (or possibly Distribution) build.

Go back to the build settings and make sure the "Header Search Paths" is updated for the build configuration used by Archive.

这篇关于当归档应用程序Xcode抱怨丢失的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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