Re: [PhoneGap] iOS Phonegap 2.5 - Cross-device link error

378 views
Skip to first unread message

Shazron

unread,
Mar 4, 2013, 4:58:22 PM3/4/13
to phonegap
I don't get the errors on a new 2.5.0 project, but it might be related to the "Copy www" Build Phase of the project, where it tries to create symlinks


On Mon, Mar 4, 2013 at 1:18 PM, Tim B <t...@dreamstonemedia.com> wrote:
Thought I'd share this with you guys. Possible Bug?

Linky:
http://stackoverflow.com/questions/15210889/ios-phonegap-2-5-cross-device-link-error

--
-- 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
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tim B

unread,
Mar 4, 2013, 5:39:13 PM3/4/13
to phon...@googlegroups.com
I was originally creating the project to a network drive which was never an issue with past versions of phonegap but I went ahead and tried creating it locally which stopped all of the Cross-device link errors.

So that is kind of a fix but that still leaves the network drive issue. Which seems like a bug.

Any ideas how to make it work with the network? Or do I need to wait until they fix it in the next release?

Thanks

Shazron

unread,
Mar 4, 2013, 5:41:54 PM3/4/13
to phonegap
Looks like you hit the nail - the shell script was not designed for a network drive and some commands fail. Do you mind filing an issue so you can be notified and for further discussions and bug resolution?  http://issues.cordova.io

Sign up here:


Tim B

unread,
Mar 4, 2013, 5:54:14 PM3/4/13
to phon...@googlegroups.com
Yeah, no problem. Link below:
https://issues.apache.org/jira/browse/CB-2618

bespired

unread,
Mar 6, 2013, 7:05:00 AM3/6/13
to phon...@googlegroups.com

For now I removed the IF ! LN in the 'copy www directory' of the build phase... 


# Files

for p in $(do_find -type f -print); do

subpath="${p#$SRC_DIR}"

#if ! ln "$SRC_DIR$subpath" "$DST_DIR$subpath"; then

cp -a "$SRC_DIR$subpath" "$DST_DIR$subpath" || exit 3

#fi

done

Tim B

unread,
Mar 6, 2013, 10:03:14 AM3/6/13
to phon...@googlegroups.com
Is this fixed version of 2.5 available to download?

James Jong

unread,
Mar 19, 2013, 10:48:11 PM3/19/13
to phon...@googlegroups.com
This fix address cross-link device errors.  If you are not using a network drive then it would be a different issue.

-James Jong

On Tuesday, March 19, 2013 9:15:58 AM UTC-4, Cristobal Dabed wrote:
Hmm does this work for symlink directories?
Say i have "www"  in the following manner

www > common lib

iOS/www      -> ../www
Android/www -> ../www
win8/www     -> ../www

Used to work in older versions where the build phase script was much simpler just the following line:

   touch -cm ${PROJECT_DIR}/www

On Wednesday, 13 March 2013 02:49:42 UTC+1, James Jong wrote:
This has been fixed in 2.6.  If you want it for 2.5, you can download and replace the project.pbxproj file in your app.

Here's the link:
https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=blob_plain;f=bin/templates/project/__TESTING__.xcodeproj/project.pbxproj;hb=dfa5d0a8acd85c2953d8a15ee7e009995f944efd

-James Jong
Reply all
Reply to author
Forward
0 new messages