Use NSURLIsExcludedFromBackupKey without crashing on iOS 5.0

前端 未结 6 1269
我在风中等你
我在风中等你 2020-12-02 15:55

The check for availability seems to be working fine but I can\'t seem to set the NSURLIsExcludedFromBackupKey key without getting this crash on launch:

6条回答
  •  借酒劲吻你
    2020-12-02 16:33

    Add this line to force the symbol to be a weak import:

    extern NSString * const NSURLIsExcludedFromBackupKey __attribute__((weak_import));
    

提交回复
热议问题