[ 
https://issues.apache.org/jira/browse/CB-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabio Fabbri updated CB-2841:
-----------------------------

    Description: 
I tried to create and build an iOS project from a Mac on a shared folder. The 
shared folder is on a Linux machine using Samba.

With PhoneGap 2.2.0 I had no problem, but with PhoneGap 2.5.0 I had the 
following errors on building phase:

{noformat}
ln: {destination for first file in www folder}: Operation not permitted
cp: chflags: {destination of the same file}: Operation not permitted
{noformat}

I found out that the problem was in the "Build Phases" script "Copy www 
directory": in my case, both "ln" and "cp -a" fails. I suggest to make a third 
try with "cp -PR", and hide all messages from the previous 2 commands:

{noformat}
# Files
for p in $(do_find -type f -print); do
  subpath="${p#$SRC_DIR}"
  ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
    cp -a "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
    cp -PR "$SRC_DIR$subpath" "$DST_DIR$subpath" ||
    exit 3
done
{noformat}

It works for me

  was:
I tried to create and build an iOS project from a Mac on a shared folder. The 
shared folder is on a Linux machine using Samba.

With PhoneGap 2.2.0 I had no problem, but with PhoneGap 2.5.0 I had the 
following errors on building phase:

{code}
ln: {destination for first file in www folder}: Operation not permitted
cp: chflags: {destination of the same file}: Operation not permitted
{code}

I found out that the problem was in the "Build Phases" script "Copy www 
directory": in my case, both "ln" and "cp -a" fails. I suggest to make a third 
try with "cp -PR", and hide all messages from the previous 2 commands:

{code}
# Files
for p in $(do_find -type f -print); do
  subpath="${p#$SRC_DIR}"
  ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
    cp -a "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
    cp -PR "$SRC_DIR$subpath" "$DST_DIR$subpath" ||
    exit 3
done
{code}

It works for me

    
> Build on IOS fails if the project is on a samba shared folder
> -------------------------------------------------------------
>
>                 Key: CB-2841
>                 URL: https://issues.apache.org/jira/browse/CB-2841
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0
>            Reporter: Fabio Fabbri
>            Assignee: Shazron Abdullah
>            Priority: Minor
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> I tried to create and build an iOS project from a Mac on a shared folder. The 
> shared folder is on a Linux machine using Samba.
> With PhoneGap 2.2.0 I had no problem, but with PhoneGap 2.5.0 I had the 
> following errors on building phase:
> {noformat}
> ln: {destination for first file in www folder}: Operation not permitted
> cp: chflags: {destination of the same file}: Operation not permitted
> {noformat}
> I found out that the problem was in the "Build Phases" script "Copy www 
> directory": in my case, both "ln" and "cp -a" fails. I suggest to make a 
> third try with "cp -PR", and hide all messages from the previous 2 commands:
> {noformat}
> # Files
> for p in $(do_find -type f -print); do
>   subpath="${p#$SRC_DIR}"
>   ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
>     cp -a "$SRC_DIR$subpath" "$DST_DIR$subpath" 1>/dev/null 2>/dev/null ||
>     cp -PR "$SRC_DIR$subpath" "$DST_DIR$subpath" ||
>     exit 3
> done
> {noformat}
> It works for me

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to