3

I am trying to configure UrbanAirship for one of my iOS apps. I've completed the configurations as explained on the tutorial page here: http://docs.urbanairship.com/build/ios.html

But when I build the project I get the following error: Unknown type name 'UIBackgroundFetchResult'

The error occurs four times in the file UAPush.h (downloaded from UrbanAirship site) I also tried running the sample code provided in the zip file on UrbanAirship tutorial page, it has the same problem as well. Did anyone else face the same problem? Any help would be highly appreciated.

Adil Malik
  • 6,279
  • 7
  • 48
  • 77

2 Answers2

5

Urban Airship 3.0 requires the latest sdk, so you need to update your Xcode to 5.0.

If you can't, Urban Airship 2.1 still builds find with older Xcode versions.

ralepinski
  • 1,756
  • 8
  • 15
  • Thanks .. it seems you were right. But when I updated xCode, it just changed the errors. Now the error is: `UAirship.h` file not found. – Adil Malik Sep 23 '13 at 21:46
  • I've given correct header path as mentioned in the UA docs. But still it cannot locate the header files. – Adil Malik Sep 23 '13 at 21:47
  • Validate the Airship directory path is relative to the xcode project file, is up to date, and is set on the target and scheme you are running. – ralepinski Sep 26 '13 at 18:16
  • I am still getting this error,i am using Urban Airship 3.0 on xcode 4.5. Is there any link available for lower versions of urban airship. I am getting "Unknown type name 'UIBackgroundFetchResult'" this error on xcode 5 as well. Please provide a solution for it ASAP. – iphonedeveloper Oct 15 '13 at 02:45
  • I got the same error (in xCode 5, even with their demo app). I just changed to use the Urban Airship iOS5-3.0.1 archive and it compiled fine. – Jason Oct 18 '13 at 14:41
0

Urban Airship provide latest sdk which is for ios7 or xcode 5.

If you want to download for xcode 4.* than u can go for below link:-

http://com.urbanairship.filereleases.s3.amazonaws.com/libUAirship-2.1.0.zip

I hope you will get it.

Shreyansh Shah
  • 101
  • 1
  • 11