我正在使用monotouch binding project将 Urban Airship
实现到我的 monotouch
应用程序中。
我已按照 documentation. 中的指定将 AirshipConfig.plist
添加到我的项目中
但是,当我运行我的应用程序时,出现错误:
The AirshipConfig.plist file is missing and no application credentials were specified at runtime.
我注意到 Monotouch 生成的 AirshipConfig.plist
文件采用 XML
格式,文档对其描述如下
{
/*NOTE: DO NOT USE THE MASTER SECRET*/
"APP_STORE_OR_AD_HOC_BUILD" = NO; /*set to YES for production builds*/
"DEVELOPMENT_APP_KEY" = "Your development app key";
"DEVELOPMENT_APP_SECRET" = "Your development app secret";
"PRODUCTION_APP_KEY" = "Your production app key";
"PRODUCTION_APP_SECRET" = "Your production app secret";
}
我在这里遗漏了什么吗?我需要做什么才能让我的应用找到该文件?
最佳答案
This question启发了我。我需要将 Xamarin Studio
中的构建操作设置为Content
,将复制到输出目录设置为始终复制
以将文件复制到设备。
关于ios - AirshipConfig.plist 文件丢失,并且运行时未指定应用程序凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16994003/