[SOLVED] Ionic build ios fails online


#1

Hi, when compile for ios with ionic pro online I get this error from log:

Running with gitlab-runner 10.2.0~beta.147.gbd1f3fcb (bd1f3fcb)
on ip-10-2-50-102 (815cf240)
Creating new VM…
Running on Mac-10.local via ip-10-2-50-102…
Cloning repository…
Cloning into ‘builds/project-1’…
Warning: Permanently added the ECDSA host key for IP address ‘52.10.68.252’ to the list of known hosts.
Checking out e3a93fdb as master…
Skipping Git submodules setup
$ fetch-updates || true
Checking for build process updates…
$ build-ios
Setting up project pipeline…
Running build process…
±-------------------------------------------±--------±---------------------------+
| Used plugins |
±-------------------------------------------±--------±---------------------------+
| Plugin | Version | Action |
±-------------------------------------------±--------±---------------------------+
| fastlane-plugin-update_project_codesigning | 0.2.0 | update_project_codesigning |
±-------------------------------------------±--------±---------------------------+

[06:54:56]: You require a gem, if this is a third party gem, please use fastlane_require 'securerandom' to ensure the gem is installed locally
[06:54:56]: ------------------------------
[06:54:56]: — Step: default_platform —
[06:54:56]: ------------------------------
[06:54:56]: Driving the lane ‘ios package_build’ :rocket:
[06:54:57]: ---------------------------
[06:54:57]: — Step: build_summary —
[06:54:57]: ---------------------------

±--------------------±--------------------+
| Build Summary |
±--------------------±--------------------+
| Job ID | 5572963 |
| macOS version | 10.13.2 |
| Xcode version | Xcode 9.2 |
| | Build version 9C40b |
| Node.js version | v8.11.1 |
| Cordova CLI version | 7.1.0 |
| npm version | 5.6.0 |
±--------------------±--------------------+

06:55:01: — Step: download_www —
06:55:01: --------------------------
06:55:01: Downloading cached www/ dir…
[06:55:06]: Successfully downloaded www/ dir
[06:55:06]: -----------------------------
[06:55:06]: — Step: create_keychain —
[06:55:06]: -----------------------------
[06:55:06]: $ security list-keychains -d user
[06:55:06]: ▸ “/Users/ionic/Library/Keychains/login.keychain-db”
[06:55:06]: ----------------------------
[06:55:06]: — Step: download_certs —
[06:55:06]: ----------------------------

±------------------±-----------------------------------------------------+
| Installed Certificate |
±------------------±-----------------------------------------------------+
| User ID | 37DDDM3V8R |
| Common Name | iPhone Distribution: Cristian Segattini (37DDDM3V8R) |
| Organization Unit | 37DDDM3V8R |
| Organization | Cristian Segattini |
| Country | US |
±------------------±-----------------------------------------------------+

[06:55:07]: Installing provisioning profile…
[06:55:07]: --------------------------------
[06:55:07]: — Step: import_certificate —
[06:55:07]: --------------------------------
[06:55:08]: ---------------------------------
[06:55:08]: — Step: npm install --quiet —
[06:55:08]: ---------------------------------
[06:55:08]: $ npm install --quiet
[06:55:24]: ▸ WARN notice [SECURITY] stringstream has 1 moderate vulnerability. Go here for more details: https ://nodesecurity.io/advisories?search=stringstream&version=0.0.6 - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.
[06:55:36]: ▸ npm ERR! code ETARGET
[06:55:36]: ▸ npm ERR! notarget No matching version found for caniuse-lite@1.0.30000845
[06:55:36]: ▸ npm ERR! notarget In most cases you or one of your dependencies are requesting
[06:55:36]: ▸ npm ERR! notarget a package version that doesn’t exist.
[06:55:36]: ▸ npm ERR! notarget
[06:55:36]: ▸ npm ERR! notarget It was specified as a dependency of ‘fanticrent’
[06:55:36]: ▸ npm ERR! notarget
[06:55:36]: ▸ npm ERR! A complete log of this run can be found in:
[06:55:36]: ▸ npm ERR! /Users/ionic/.npm/_logs/2018-05-23T06_55_36_474Z-debug.log
[06:55:36]: -------------------------
[06:55:36]: — Step: upload_logs —
[06:55:36]: -------------------------
[06:55:37]: ---------------------------
[06:55:37]: — Step: shell command —
[06:55:37]: ---------------------------
[06:55:38]: -----------------------------
[06:55:38]: — Step: delete_keychain —
[06:55:38]: -----------------------------
[06:55:38]: Exit status of command ‘npm install --quiet’ was 1 instead of 0.
WARN notice [SECURITY] stringstream has 1 moderate vulnerability. Go here for more details: https ://nodesecurity.io/advisories?search=stringstream&version=0.0.6 - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for caniuse-lite@1.0.30000845
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘fanticrent’
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2018-05-23T06_55_36_474Z-debug.log

±------------------------------------±-----------------------------------------------------------------+
| Lane Context |
±------------------------------------±-----------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios package_build |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Distribution: Cristian Segattini (37DDDM3V8R) |
| DOWNLOAD_CERTS_TEAM_ID | 37DDDM3V8R |
| DOWNLOAD_CERTS_PROJECT_NAME | fanticrent |
| DOWNLOAD_CERTS_CERT_PATH | /Users/ionic/builds/project-1/cert_file.p12 |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/project-1/provision_file.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/ionic/builds/project-1/provision_file.mobileprovision"] |
±------------------------------------±-----------------------------------------------------------------+
[06:55:38]: Exit status of command ‘npm install --quiet’ was 1 instead of 0.
WARN notice [SECURITY] stringstream has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=stringstream&version=0.0.6 - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for caniuse-lite@1.0.30000845
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘fanticrent’
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2018-05-23T06_55_36_474Z-debug.log

±-----±--------------------±------------+
| fastlane summary |
±-----±--------------------±------------+
| Step | Action | Time (in s) |
±-----±--------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 4 |
| 3 | download_www | 4 |
| 4 | create_keychain | 0 |
| 5 | download_certs | 1 |
| 6 | import_certificate | 0 |
| :boom: | npm install --quiet | 28 |
| 8 | upload_logs | 1 |
| 9 | shell command | 0 |
| 10 | delete_keychain | 0 |
±-----±--------------------±------------+

[06:55:38]: fastlane finished with errors
[06:55:38]: Sending crash report…
[06:55:38]: The stack trace is sanitized so no personal information is sent.
[06:55:38]: To see what we are sending, look here: /Users/ionic/.fastlane/latest_crash.json
[06:55:38]: Learn more at https://github.com/fastlane/fastlane#crash-reporting
[06:55:38]: You can disable crash reporting by adding opt_out_crash_reporting at the top of your Fastfile

Looking for related GitHub issues on fastlane/fastlane…

:arrow_right:️ New Stuff
https://github.com/devi-Patsa/Learning_GIt/pull/1 [closed] 0 :speech_balloon:
11 Nov 2017

:arrow_right:️ Prototype version
https://github.com/SIROK-archive/growthanalytics-android/pull/1 [closed] 0 :speech_balloon:
23 Jan 2015

:arrow_right:️ Fix typo
https://github.com/crdroidandroid/android/pull/1 [closed] 0 :speech_balloon:
23 Jan 2015

and 5606538 more at: https://github.com/fastlane/fastlane/search?q=Exit%20status%20of%20command%20’npm%20install%20--quiet’%20was%201%20instead%20of%200.%0AWARN%20notice%20[SECURITY]%20stringstream%20has%201%20moderate%20vulnerability.%20Go%20here%20for%20more%20details:%20https://nodesecurity.io/advisories?search=stringstream&version=0.0.6%20-%20Run%20%60npm%20i%20npm@latest%20-g%60%20to%20upgrade%20your%20npm%20version,%20and%20then%20%60npm%20audit%60%20to%20get%20more%20info.%0Anpm%20ERR!%20code%20E…

:link: You can ⌘ + double-click on links to open them directly in your browser.
\e[91mFailed to upload ipa to storage please retry your build.\e[0m
MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048
/Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane_core/lib/fastlane_core/ui/interface.rb:145:in shell_error!': [!] Exit status of command 'npm install --quiet' was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError) WARN notice [SECURITY] stringstream has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=stringstream&version=0.0.6 - Runnpm i npm@latest -gto upgrade your npm version, and thennpm audit` to get more info.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for caniuse-lite@1.0.30000845
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘fanticrent’
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2018-05-23T06_55_36_474Z-debug.log

from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane_core/lib/fastlane_core/ui/ui.rb:16:in method_missing' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/helper/sh_helper.rb:80:insh_control_output’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/helper/sh_helper.rb:16:in sh_no_action' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/fast_file.rb:186:inblock in sh’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/fast_file.rb:185:insh’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/fast_file.rb:180:in sh' from Fastfile:27:inblock (2 levels) in parsing_binding’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/lane.rb:33:in call' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/lane.rb:33:incall’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/runner.rb:49:in block in execute' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/runner.rb:45:inchdir’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/runner.rb:45:in execute' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/lane_manager.rb:56:incruise_lane’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/command_line_handler.rb:34:in handle' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/commands_generator.rb:107:inblock (2 levels) in run’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in call' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:incall’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in run' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:inrun_active_command’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:75:in run!' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:inrun!’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/commands_generator.rb:336:in run' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/commands_generator.rb:42:instart’
from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/fastlane/lib/fastlane/cli_tools_distributor.rb:94:in take_off' from /Users/ionic/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.75.1/bin/fastlane:20:in
from /Users/ionic/.fastlane/bin/bundle/bin/fastlane:22:in load' from /Users/ionic/.fastlane/bin/bundle/bin/fastlane:22:in

Running after script…
$ clean-up
Cleaning up files…
Successful clean up
ERROR: Job failed: Process exited with: 1. Reason was: ()


#2

solved by adding this package:

npm i caniuse-lite