CalendarSample

330 views
Skip to first unread message

jokart

unread,
Jul 10, 2012, 10:12:41 AM7/10/12
to google-api-obj...@googlegroups.com
Hi.  I checked out the code, and am now trying to run the CalendarSample project.  I can compile the framework, but when I try to build and run CalendarSample specifically, I get an error stating that GTL/GTLDefines.h is not found.  The GTL.framework is linked and is linked to the binary, but it still can't seem to find the header files.  Has anyone else run into this issue?

Thanks,
Joe

Greg Robbins

unread,
Jul 10, 2012, 2:16:58 PM7/10/12
to google-api-obj...@googlegroups.com
The sample application targets should build and run normally with Xcode 4.3. I am not sure why the default header search paths are not working for the project you have checked out.

David Phillip Oster

unread,
Jul 10, 2012, 5:15:54 PM7/10/12
to google-api-obj...@googlegroups.com
I could reproduce this problem in a fresh svn checkout from the website.

When I opened CalendarSample.xcodeproj Xcode said that it couldn't open the GTL.xcodeproj subproject referenced by CalendarSample, so I deleted it from the GTL.xcodeproj project and added it back in:

*) Drag it to the file list.
*) In the CalendarSample project, CalendarSample target, Build Phases panel, Copy Frameworks slat, press the '+' button, and the add the GTL.framework. 
*) Drag that Copy Frameworks slat so it is ABOVE the compile slat, so it will be in the right place by the time you get to the compile build phase.
*) Drag the GTL.framework you just added into the linked frameworks slat, so Xcode will know you mean that one.
*) repeat the 'in the Copy Frameworks slat, press the '+' button, and the add the GTL.framework' step, since the previous step removed it.

Now, Xcode knows that this sample should use the private copy of the framework that will be built into this app, both for searching headers at compile time, and for linking at link time, and at load time, it will look for the framework in the Content/Frameworks subfolder of the app bundle.
Reply all
Reply to author
Forward
0 new messages