0
  1. XXNibBridge is imported into PCH file of my project
  2. Run this project, semantic issue occurs, saying [Unknown type name 'link']

click to see the screenshot

Is there anything I can do?

Jonathan Argentiero
  • 5,687
  • 8
  • 29
  • 34
Kevin0223
  • 1
  • 1

1 Answers1

0

Don't use link (I don't even know what you are trying to do there) and instead use #import (or #include).

If you'd like to know more about pch files (or even if you should use them -- which you don't have to, more often than not), there are related questions here on StackOverflow where you can get more information. Like:

What is Prefix.pch file in Xcode?

Why isn't ProjectName-Prefix.pch created automatically in Xcode 6?

Why .pch file not available in swift?

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • yes, i used #import, but the error just showed like that. This project just handed to me and I'm the only iOS engineer right now... – Kevin0223 Mar 29 '17 at 03:10
  • Just try changing the `link` to `#import` and see things compile better. I suspect the `link` was somebody's mistype along the way. – Michael Dautermann Mar 29 '17 at 03:14