Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2017 14:17
Show Gist options
  • Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.
Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.
// TheAbyss.h
+ (NSString *)greetingMessageFromTheOtherworld;
// TheAbyss.m
+ (NSString *)greetingMessageFromTheOtherworld {
return nil;
}
// LonesomeWanderer.swift TheAbyss.greetingMessageFromTheOtherworld().isEmpty
// compiles fine, but crashes at runtime with a lovely message:
// "fatal error: unexpectedly found nil while unwrapping an Optional value"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment