Error from import statement "expected "FILENAME" or <FILENAME>"
Asked Answered
O

2

8

I am having some trouble integrating Appirater into my app. I have properly added all of the necessary files, and have the right code (I think), but I am getting an error when trying to implement it into my AppDelegate.m file. When I do #import "Appirater.h" I get the error:

Expected "FILENAME" or <FILENAME>

Oriente answered 16/5, 2012 at 21:48 Comment(2)
Check for a bad character on your #import statement. (Maybe delete and re-enter it.)Varityper
Weird... All I had to do is retype the quotes, and it now works! Thanks!Oriente
C
24

Apparently the wrong quote characters, perhaps curly quotes “Appirater.h”, had been used to wrap the file name. Retyping them as "straight" quotes "Appirater.h" eliminated the error.

Cutpurse answered 16/5, 2012 at 21:49 Comment(0)
A
0

I've had #import Firebase;, instead of #import <Firebase.h>.

Antidromic answered 1/2, 2023 at 6:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.