Can't get SDK to run...

39 views
Skip to first unread message

ChocolateMaker

unread,
Aug 5, 2010, 3:32:48 PM8/5/10
to Skyhook Local Faves
Hi,

Just downloaded the SDK and trying to run it in my Application. I have
gone through the user guide and done everything exactly how it says i
have even made sure its exactly like the cocktail app example which it
is, everything looks good. When i build and run i am getting a
ridiculous 1332 errors!

Most are things like:
/LocalFaves/Classes/Elements/LFAccount.h:10:32: error: FBConnect/
FBSession.h: No such file or directory
/LocalFaves/Classes/Network/LFDataManager.h:47: error: cannot find
protocol declaration for 'FBRequestDelegate'
/LocalFaves/Classes/LocalFaves.m:1032: error: expected ')' before
'FBDialog'
/LocalFaves/Classes/Elements/LFAccount.m:92: error: '_image'
undeclared (first use in this function)

And warnings like:
Missing dependency target "FBPlatform (from FBConnect.xcodeproj)"


Did i totally miss something here, because that is so not how it
should be...

I'm building using Xcode 3.2.3 to iOS4. Any ideas?

George

unread,
Aug 5, 2010, 5:15:12 PM8/5/10
to Skyhook Local Faves
Hi CM,

The sample app is built with the same SDK that you're using, so it has
to be just a configuration issue. Please verify the following:


- when you dragged the LocalFaves project and the LFIncludes folder
into your project, you unchecked the "Copy" checkbox and specified the
link as "Relative to Project"

- You linked the LocalFaves static library to your project. Click the
"LocalFaves.xcodeproj" item that has just been added to the sidebar.
Under the "Details" table, you will see a single item:
libLocalFaves.a. Check the checkbox on the far right of
libLocalFaves.a.

- You added LocalFaves as a dependency of your project, so Xcode
compiles it whenever you compile your project. Expand the "Targets"
section of the sidebar and double-click your application's target.
Under the "General" tab you will see a "Direct Dependencies" section.
Click the "+" button, select "LocalFaves", and click "Add Target".

- You told your project where to find the LocalFaves headers. Open
your "Project Settings" and go to the "Build" tab. Look for "Header
Search Paths" and double-click it. Add the relative path from your
project's directory to the "LocalFaves/src" directory. Make sure the
"recursive" checkbox is checked. (Add the absolute path for now to be
100% you're pointing to the right place, then change it to the
relative path once everything works.)

- In Project Settings, go to "Other Linker Flags" under the "Linker"
section, and add "-ObjC" and "-all_load" to the list of flags.
- Make sure you have the following frameworks in your project:

* MapKit
* CoreLocation
* CoreData
* CoreGraphics
* CFNetwork
* QuartzCore
* SystemConfiguration
* AddressBook

ChocolateMaker

unread,
Aug 5, 2010, 5:26:36 PM8/5/10
to Skyhook Local Faves
"- You told your project where to find the LocalFaves headers. Open
your "Project Settings" and go to the "Build" tab. Look for "Header
Search Paths" and double-click it. Add the relative path from your
project's directory to the "LocalFaves/src" directory. Make sure the
"recursive" checkbox is checked. (Add the absolute path for now to be
100% you're pointing to the right place, then change it to the
relative path once everything works.) "



I found this part a problem. Everything else was perfect. But, what
EXACTLY do i write in " Add the relative path from your
project's directory to the "LocalFaves/src" directory."?? I'm not sure
what this sentence means. What is the relative path of my projects
directory? And how do i add it to LocalFaves/src directory, i don't
know where that is...?

George

unread,
Aug 6, 2010, 12:04:07 PM8/6/10
to Skyhook Local Faves
Hi CM,

The relative path is the path relative from your project to
LocalFaves. An absolute path is a direct reference to the LocalFaves
folder on your machine.

Consider the example of the sample Cocktails app. The directory
structure is as such:

<some_parent_folder>
samples
Cocktails
Cocktails.xcodeproj
src
external
LocalFaves

The "header search path" in the Cocktails project needs to point to
the LocalFaves src directory, and is in this case a relative path:
"../../src"
So it means starting from the Cocktails.xcodeproj file:
- you go up one directory (..) -> now you're in "Cocktails"
- up another level (..) -> no you're in samples
- now point to the src folder (src) -> done

Depending on where on your machine you put the LocalFaves folder, you
need to adjust the relative path to match. Of course, you can always
stick to using the absolute path, but that tends to be less flexible.
Both ways will work fine.
Reply all
Reply to author
Forward
0 new messages