Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
$ 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
$ 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
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 **