在过去的两天里,我一直在构建我的项目,然后我今天早上打开了这个项目并尝试构建它并得到了错误
Unrecognized platform name iOS
使用以下代码。
if (@available(iOS 9.0, *)) {
if ([UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute] == UIUserInterfaceLayoutDirectionRightToLeft) {
diff = diff * -1;
}
}
错误来自我的 pod 中的一个项目:https ://github.com/airbnb/lottie-ios