cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianfranco Palumbo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-13618) cordova compile command fails but cordova build works fine
Date Thu, 30 Nov 2017 13:23:00 GMT
Gianfranco Palumbo created CB-13618:
---------------------------------------

             Summary: cordova compile command fails but cordova build works fine
                 Key: CB-13618
                 URL: https://issues.apache.org/jira/browse/CB-13618
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-ios
         Environment: {code}
$ ionic info

cli packages: (/Users/gianfranco/.config/yarn/global/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.4
    Cordova Platforms  : android 6.2.3 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    Node              : v6.11.3
    npm               : 5.5.1
    OS                : macOS Sierra
    Xcode             : Xcode 9.1 Build version 9B55

Environment Variables:

    ANDROID_HOME : /Users/gianfranco/Library/Android/sdk

Misc:

    backend : legacy
{code}
            Reporter: Gianfranco Palumbo
            Assignee: Suraj Pindoria
            Priority: Minor


While looking to automate the build process with fastlane and this [fastlane-plugin-cordova|https://github.com/bamlab/fastlane-plugin-cordova],
this issue was discovered:

{code}
$ cordova prepare
Searching for new pods
Checking branch-cordova-sdk for pods.
Checking cordova-plugin-camera for pods.
Checking cordova-plugin-compat for pods.
Checking cordova-plugin-crop for pods.
Checking cordova-plugin-device for pods.
Checking cordova-plugin-facebook4 for pods.
Checking cordova-plugin-file for pods.
Checking cordova-plugin-firebase for pods.
Checking cordova-plugin-geolocation for pods.
Checking cordova-plugin-globalization for pods.
Checking cordova-plugin-googleplus for pods.
Checking cordova-plugin-inappbrowser for pods.
Checking cordova-plugin-ionic-webview for pods.
Checking cordova-plugin-mixpanel for pods.
Checking cordova-plugin-splashscreen for pods.
Checking cordova-plugin-statusbar for pods.
Checking cordova-plugin-whitelist for pods.
Checking cordova-plugin-x-socialsharing for pods.
Checking es6-promise-plugin for pods.
Checking ionic-plugin-keyboard for pods.
Checking config.xml for pods.
No new pods detects

$ cordova compile ios --release --device --packageType=app-store --developmentTeam=xyz --provisioningProfile=abc

....

Touch build/device/Givebox.app.dSYM
    cd /Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gianfranco/.yarn/bin:/Users/gianfranco/.rbenv/shims:/usr/local/opt/qt/bin:/Users/gianfranco/google-cloud-sdk/bin:/Users/gianfranco/.fastlane/bin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/sbin:/Users/gianfranco/bin:/usr/local/opt/openssl/bin:/Users/gianfranco/.nvm/versions/node/v6.11.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/ImageMagick/bin:/usr/local/MacGPG2/bin:/Users/gianfranco/.composer/vendor/bin:/Users/gianfranco/Library/Android/sdk/platform-tools:/Users/gianfranco/Library/Android/sdk/tools:/Users/gianfranco/.themekit"
    /usr/bin/touch -c /Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios/build/device/Givebox.app.dSYM

** ARCHIVE SUCCEEDED **

Error: ENOENT: no such file or directory, open '/Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios/Givebox.xcworkspace/project.pbxproj'
{code}

The file {{project.pbxproj}} exists in the {{Givebox.xcodeproj}} folder not {{Givebox.xcworkspace}}.

Since {{cordova compile}} should be the same as {{cordova prepare}} {{cordova build}} ([link|https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#cordova-build-command])

This works:
{code}
$ cordova build ios --release --device --packageType=app-store --developmentTeam=xyz --provisioningProfile=abc

...

Touch build/device/Givebox.app.dSYM
    cd /Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gianfranco/.yarn/bin:/Users/gianfranco/.rbenv/shims:/usr/local/opt/qt/bin:/Users/gianfranco/google-cloud-sdk/bin:/Users/gianfranco/.fastlane/bin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/sbin:/Users/gianfranco/bin:/usr/local/opt/openssl/bin:/Users/gianfranco/.nvm/versions/node/v6.11.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/ImageMagick/bin:/usr/local/MacGPG2/bin:/Users/gianfranco/.composer/vendor/bin:/Users/gianfranco/Library/Android/sdk/platform-tools:/Users/gianfranco/Library/Android/sdk/tools:/Users/gianfranco/.themekit"
    /usr/bin/touch -c /Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios/build/device/Givebox.app.dSYM

** ARCHIVE SUCCEEDED **

Non-system Ruby in use. This may cause packaging to fail.
If you use RVM, please run `rvm use system`.
If you use chruby, please run `chruby system`.
2017-11-30 15:20:45.148 xcodebuild[2876:8575384] [MT] IDEDistribution: -[IDEDistributionLogging
_createLoggingBundleAtPath:]: Created bundle at path '/var/folders/nc/scs6t9xj61l7rtzhz8cl48480000gn/T/Givebox_2017-11-30_15-20-45.146.xcdistributionlogs'.
Exported Givebox.xcarchive to: /Users/gianfranco/givebox/givebox.ui.mobile/platforms/ios/build/device
** EXPORT SUCCEEDED **
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message