Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13618

cordova compile command fails but cordova build works fine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • cordova-ios
    • None

    Description

      While looking to automate the build process with fastlane and this fastlane-plugin-cordova, this issue was discovered:

      $ 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'
      

      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)

      This works:

      $ 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 **
      

      Attachments

        1. cordova-compile-CB-13618.txt
          2.87 MB
          Gianfranco Palumbo

        Activity

          People

            Unassigned Unassigned
            gianpaj Gianfranco Palumbo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: