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

Sergey Shakhnazarov closed CB-9126.
-----------------------------------
    Resolution: Fixed

> Fix ios pbxproj' resources paths when adding ios platform on non-OSX 
> environment
> --------------------------------------------------------------------------------
>
>                 Key: CB-9126
>                 URL: https://issues.apache.org/jira/browse/CB-9126
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>         Environment: iOS
>            Reporter: Sergey Shakhnazarov
>              Labels: cordova-ios-4.0.x
>
> Adding ios platform on Windows causes such build error on OSX:
> CpResource mobilespec/Resources/ResourcesCDVNotification.bundle 
> build/emulator/mobilespec.app/ResourcesCDVNotification.bundle
> cd /Users/admin/Desktop/cordova5/mobilespec3/platforms/ios
> export 
> PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
> builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git 
> -exclude .hg -resolve-src-symlinks 
> /Users/admin/Desktop/cordova5/mobilespec3/platforms/ios/mobilespec/Resources/ResourcesCDVNotification.bundle
>  
> /Users/admin/Desktop/cordova5/mobilespec3/platforms/ios/build/emulator/mobilespec.app
> error: 
> /Users/admin/Desktop/cordova5/mobilespec3/platforms/ios/mobilespec/Resources/ResourcesCDVNotification.bundle:
>  No such file or directory
> This is caused by [this node-xcode' 
> code|https://github.com/alunny/node-xcode/blob/ff9f67a543f5ec91988e06937b0f73e23ac38a9e/lib/pbxProject.js#L707]:
> {code:javascript}
>     var r_resources_dir = /^Resources\//;
>     if (project.pbxGroupByName('Resources').path)
>         file.path = file.path.replace(r_resources_dir, '');
>     ...
> {code}
> The regexp does not take backslash into account - this is [fixed in 
> node-xcode current version 
> (0.7.0)|https://github.com/alunny/node-xcode/blob/a8f8e25780700716cefdc0e43da4d755f80f51b2/lib/pbxProject.js#L766].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to