缺少AirshipConfig.plist文件,并且在运行时未指定应用程序凭据

时间:2013-06-07 22:43:03

标签: ios xamarin.ios xamarin urbanairship.com

我正在使用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";
}

我在这里遗漏了什么吗?我需要做什么才能让我的应用找到该文件?

1 个答案:

答案 0 :(得分:3)

This question启发了我。我需要将Xamarin Studio中的构建操作设置为Content,将复制到输出目录设置为Always copy以复制文件到设备。