我有一个现有的iOS项目,我需要维护,我需要升级到最新的Urban Airship SDK(5.0.2)。该项目使用CocoaPods,因此在pod 'UrbanAirship-iOS-SDK', '~> 5.0.2'
中下拉最新版本就像Podfile
一样简单,但现在在构建时,我收到以下编译错误:
/* com.apple.ibtool.document.errors */
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:3: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:ihY-21-382: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:10: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:20: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:wDW-QM-5ha: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
/%PATH%/Pods/UrbanAirship-iOS-SDK/Airship/UI/Default/Inbox/Resources/Shared/UAInboxMessageListCell.xib:9: error: User defined runtime attributes on iOS versions prior to 5.0 [6]
在我看来,这不是Urban Airship问题,而是针对5.0之前的Pods项目构建,这很奇怪,因为部署目标设置为7.0(在实际项目和Pod上),运行iOS SDK 8.0(Xcode 6.0.1),因此不确定5.0之前的位置。
任何想法/解决方案,甚至是部分的,都会受到赞赏。
答案 0 :(得分:3)
打开UAInboxMessageListCell.xib文件并单击文件检查器,将build for
更改为iOS 5.0.2或更高版本