Open
Description
Previous ID | SR-12001 |
Radar | rdar://problem/57837918 |
Original Reporter | @Agarunov |
Type | Bug |
Status | Reopened |
Resolution |
Attachment: Download
Environment
Xcode 11.3
Toolchain: Swift 5.2 Snapshot 2020-01-06 (a)
Additional Detail from JIRA
Votes | 0 |
Component/s | |
Labels | Bug, 5.2Regression |
Assignee | None |
Priority | Medium |
Watchers: @shahmishal
md5: 8b5bac5d2fb7aa52431d9bb6bd0d5418
Issue Description:
This code produces compiler crash:
#import <Foundation/Foundation.h>
@interface Foo : NSObject
@end
#import "Foo.h"
@implementation Foo
- (instancetype)init {
self = [super init];
if (self) {
if (@available(iOS 9.0, *)) {
/*
Undefined symbols for architecture arm64:
"___isOSVersionAtLeast", referenced from:
-[Foo init] in Foo.o
ld: symbol(s) not found for architecture arm64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
*/
}
}
return self;
}
@end
Project minimum deployment target - iOS 8