iOS 清理编译警告

2023-02-06  本文已影响0人  who_young
  1. IPHONEOS_DEPLOYMENT_TARGET is set to 8.0, but the range of supported deployment

  2. warning: Skipping duplicate build file in Compile Sources build phase: 在 project-targets-选中 target-Build Phases-Compile Sources 中删除重复的类

  3. xcode中如何抑制告警 Double-quoted include in framework header, expected angle-bracketed instead

  4. 使用 os_unfair_lock 替换掉 OSSpinLock

#import <os/lock.h>
@interface ClassName () {
    os_unfair_lock _spinLock;
}
_spinLock = OS_UNFAIR_LOCK_INIT;
os_unfair_lock_lock(&_spinLock);
os_unfair_lock_unlock(&_spinLock);
  1. Pointer is missing a nullability type specifier
    NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END

  2. Building for iOS, but the linked and embedded framework '.framework' was built for iOS + iOS Simu...

上一篇 下一篇

猜你喜欢

热点阅读