BhaveshPoriya / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

Xcode 4 unable to link to the static GTL library #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow instruction to build the library in existing project on XCode 4 on 
mac os Snow Leopard: Follow these instruction: 
http://code.google.com/p/google-api-objectivec-client/wiki/BuildingTheLibrary 
(Linking to the iOS Static Library)

What is the expected output? What do you see instead?
I should be able to use the library files such as "GTLBooks.h" but i get errors 
such as:
Apple Mach-O Linker (Id) error

What version of the product are you using? On what operating system?
Xcode 4 on Mac OS Snow Leopard

Please provide any additional information below.
N/A

Original issue reported on code.google.com by bhav...@gmail.com on 5 Mar 2012 at 9:20

GoogleCodeExporter commented 9 years ago
The library does not include sources for service-specific classes.

The directions on the wiki say

"Also drag the folder with the class files for the services needed by your 
application, such as Tasks or Books, directly into your project."

Original comment by grobb...@google.com on 8 Mar 2012 at 1:56

GoogleCodeExporter commented 9 years ago
Hi, I have dragged all the necessary files for Books, etc in my project already 
(the .h files) yet I see the same issue.

Original comment by bhav...@gmail.com on 8 Mar 2012 at 8:57

GoogleCodeExporter commented 9 years ago
There is not enough information in your report to guess what may be going 
wrong, but it sounds like the needed Books-specific sources are not being 
linked into the proper app target.

Original comment by grobb...@google.com on 9 Mar 2012 at 10:58

GoogleCodeExporter commented 9 years ago
?I have created the project and added the  static GTL library  every thing goes 
fine , but  the main issue is that  when we adding the Services folder drive 
all the file manually in my project then  error shows something like :duplicate 
symbol _OBJC_CLASS_$_GTLDriveAboutAdditionalRoleInfoItem in

Original comment by vish.vino on 26 Feb 2013 at 10:20

GoogleCodeExporter commented 9 years ago
Can any one please help me such a type of error in ios

Original comment by vish.vino on 26 Feb 2013 at 10:22

GoogleCodeExporter commented 9 years ago
For duplicate sources, be sure that your project is not compiling the 
_Sources.m file for the service along with the other sources for the service, 
since that will create duplicates.

Original comment by grobb...@google.com on 26 Feb 2013 at 9:34

GoogleCodeExporter commented 9 years ago
Removing the _Sources.m file worked for me, thanks!!!

Original comment by jo...@jkdesign.com on 17 Sep 2014 at 7:05