RoyGeagea / google-api-objectivec-client

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

Unable to link to the IOS static library following instructions #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ 
google-api-objectivec-client-read-only
2. ignore issue #40 ;)
3. open google-api-objectivec-client-read-only/Source/GTL.xcodeproj/, i.e. 
launch Xcode
4. select GTL in project navigator view; this will show the project (GTL) and 
its targets (esp. GTLTouchStaticLib; marked in red) in the left column of the 
standard editor view
5. New | Project: Empty Application; Product Name: Test
6. There are now two projects open inside Xcode: GTL and Test
7a. Attempt dragging target GTLTouchStaticLib from GTL.xcodeproj’s standard 
editor view to Test.xcodeproj’s Link Binary With Libraries list (under Build 
Settings for target Test in standard editor view)
7b. Alternatively, drag libGTLTocuhStaticLib.a from GTL.xcodeproj’s project 
navigator view (under GTL | Products) into Test.xcodeproj’s Link Binary With 
Libraries list; build target Test

What is the expected output? What do you see instead?

7a. Apparently the target as such cannot be dragged into Link Binary With 
Libraries list.
7b. This leads to an error at compile time:

Apple mach-O Linker Error
ld: library not found for -lGTLTouchStaticLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hence neither a verbatim (“The static library target should be dragged into 
your application project's Build Phases 'Link Binary with Libraries' list”) 
nor a more liberal interpretation of the build instructions [1] seems to work.

What version of the product are you using? On what operating system?

* latest code base from svn; Xcode 5.0.2, OS X 10.9

Please provide any additional information below.

see also issues #53 (and #40)

Original issue reported on code.google.com by tiptopl...@gmail.com on 27 Dec 2013 at 4:25

GoogleCodeExporter commented 9 years ago
P.S. build instructions are here:

[1] 
http://code.google.com/p/google-api-objectivec-client/wiki/BuildingTheLibrary

Original comment by tiptopl...@gmail.com on 27 Dec 2013 at 4:27

GoogleCodeExporter commented 9 years ago
I have the exact same problem. It says the -lGTLTouchStaticLib library was not 
found. There is no documentation to solve this. Did you manage to fix the 
problem?

Original comment by skhan....@gmail.com on 18 Jul 2014 at 11:41