Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions