Richard Knop
Richard Knop

Reputation: 83705

Cannot compile my app with few classes from the Google Mac Toolbox

UPDATE:

Here is more detailed compiler output:

enter image description here


So I am working on a simple app. I want to be able to do some encoding/decoding of strings, so I have added these three files from the Google Mac ToolBox to my project:

Since my project uses ARC, I have added the files to the build phases and set the -fno-objc-arc flag so they don't compile with ARC. See the screenshot:

enter image description here

Now I go to my main view controller and add this line:

#import "GTMNSString+HTML.m"

And I try to compile my project. I get errors like these:

enter image description here

How can I solve this? I am new to iOS development so please explain well.

Upvotes: 0

Views: 427

Answers (1)

Andy Friese
Andy Friese

Reputation: 6489

  1. To get rid of the first two warnings (no rule to process file...) remove GTMDefines.h and GTMNSString+HTML.h from your "Compile sources". Only .m-files need to be there.

  2. You never want to import .m files, even if it's technically possible! To get rid of your errors, change your import from

    #import "GTMNSString+HTML.m"
    

    to

    #import "GTMNSString+HTML.h"
    

Upvotes: 3

Related Questions