字符串文字必须以'@'为前缀

我来自JS,所以不确定字符串字面量。

我有以下语法

[GMSServices provideAPIKey:@"ABCXYZ"];

if I remove @ from the above, swift throws the following error String literal must be prefixed by '@'

Can someone explain me why I am getting this error and what are string literals? This answer wasn't helpful in above context: What does the @ prefix do on string literals in C#