XCode 4 Error: Missing dependency target "PhoneGapLib

1,251 views
Skip to first unread message

Thiago

unread,
Apr 23, 2011, 5:42:48 AM4/23/11
to phonegap
I'm Trying to use PhoneGap with XCode4, I build the Project Skeleton
through: https://build.phonegap.com/generate

But Still no Success in getting it to build inside XCode4.

The error is:
Missing dependency target "PhoneGapLib (from PhoneGapLib.xcodeproj)"

I already installed PhoneGapLib in my machine, but the project still
unable to find it.

Any suggestions?

Regards,
Thiago

Andrew Lunny

unread,
Apr 26, 2011, 1:42:49 PM4/26/11
to phon...@googlegroups.com
What happens if you double-click the xcodeproj file in Xcode? Does it
open the PhoneGap library project?

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
Andrew Lunny
Chief N00b, Nitobi
604 685 9287
blogs.nitobi.com/andrew

Shazron Abdullah

unread,
Apr 26, 2011, 2:42:12 PM4/26/11
to phon...@googlegroups.com
PhoneGapLib.xcodeproj is in red right? Right click on it, Get Info, and note the path (which should be in red as well). See if that path exists.

Damian Montero

unread,
Apr 26, 2011, 4:50:30 PM4/26/11
to phonegap
You didn't do the install

You can't go wrong if you follow the instructions here
http://www.phonegap.com/start/

It's easy and I've done it a couple of times on computers with nothing
installed, all the way to having the demo running on my phone.

Storm Basiat

unread,
Apr 26, 2011, 5:04:56 PM4/26/11
to phon...@googlegroups.com
I had the same error. Works fine on older version of xCode.

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com



--
Best Regards,
Storm Basiat


Email: St...@ODTV.me
Telephone UK: 07594566246
Twitter: http://twitter.com/stormbasiat
Please consider the environment before printing this email.

mes...@gmail.com

unread,
May 3, 2011, 4:11:22 PM5/3/11
to phonegap
Did anyone get this working?

I have installed xcode 4 and then upgraded phonegap but it still shows
in the proj (which was created in xcode 3) as a red link.

It seems as though the files are missing but im not sure how to
replace them




On Apr 26, 10:04 pm, Storm Basiat <st...@odtv.me> wrote:
> I had the same error. Works fine on older version of xCode.
>

Tim Anderson

unread,
May 4, 2011, 2:55:45 AM5/4/11
to phonegap
I had this among other issues when trying out PhoneGap in Dreamweaver
CS5.5 (though I ended up in Xcode 4).

http://www.itwriting.com/blog/4284-building-a-phonegap-app-for-iphone-with-adobe-dreamweaver-cs-5-5.html

You might like to try the steps listed there. You can get rid of the
red phonegap project by remvoing it and adding it back from ~Documents/
PhoneGapLib but I had to do some additional steps as listed there. Got
there in the end!

Tim
> > Please consider the environment before printing this email.- Hide quoted text -
>
> - Show quoted text -

mfmad

unread,
May 9, 2011, 1:01:03 AM5/9/11
to phonegap
Tim's solution worked for me. To sum up:

1. Remove the link to PhoneGapLib.xcodeproj (was is red) and add it
back from ~Documents/PhoneGapLib

2. Go to XCode - Preferences - Source Trees and add the following:
Settting Name: PHONEGAPLIB
Display Name: PhoneGapLib (this may not matter)
Path: <path>/PhoneGapLib
default path is /Users/<your home dir>/documents/PhoneGapLib and
seems best not to use ~

3. Go to Build Phases - Link Binary With Libraries and add
libPhoneGapLib.a
this will show up in red but should build anyway

See his link for more info and screenshots if you can't find anything.



On May 4, 2:55 am, Tim Anderson <timothy.ander...@gmail.com> wrote:
> I had this among other issues when trying out PhoneGap in Dreamweaver
> CS5.5 (though I ended up in Xcode 4).
>
> http://www.itwriting.com/blog/4284-building-a-phonegap-app-for-iphone...
>
> You might like to try the steps listed there. You can get rid of the
> red phonegap project by remvoing it and adding it back from ~Documents/
> PhoneGapLib but I had to do some additional steps as listed there. Got
> there in the end!
>
> Tim
>
> On May 3, 9:11 pm, "mesh...@gmail.com" <mesh...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Did anyone get this working?
>
> > I have installed xcode 4 and then upgraded phonegap but it still shows
> > in the proj (which was created in xcode 3) as a red link.
>
> > It seems as though the files aremissingbut im not sure how to
Reply all
Reply to author
Forward
0 new messages