Ionic Pro, Ionic v1: Package IOS build failed due to Unknown method 'error!' (fastlane finished with errors)

Here is the error log


e[0KRunning with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on Mac Package Runner 2 (dd66aa51)
e[0;me[0KUsing Shell executor...
e[0;mRunning on Ionics-Mac-4.local...
e[32;1mCloning repository...e[0;m
Cloning into '/Users/ionic/builds/dd66aa51/0/project-1'...
e[32;1mChecking out 1d33c7b5 as master...e[0;m
e[32;1mSkipping Git submodules setupe[0;m
e[32;1m$ fetch-updatese[0;m
Checking for build process updates...
e[32;1m$ build-iose[0;m
Downloading cached www/ dir...
Successfully downloaded www/ dir...
$> cordova add platform ios
Adding ios project...
Creating Cordova project for the iOS platform:
  Path: platforms/ios
  Package: com.geekapp
  Name: Geek App
iOS project created with cordova-ios@4.3.1
Running command: /Users/ionic/builds/dd66aa51/0/project-1/hooks/after_prepare/010_add_platform_class.js /Users/ionic/builds/dd66aa51/0/project-1
add to body class: platform-ios
Discovered plugin "cordova-plugin-admob-free" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-admob-free@~0.8.0" via npm
Installing "cordova-plugin-admob-free" for ios
Fetching plugin "cordova-promise-polyfill" via npm
Installing "cordova-promise-polyfill" for ios
Fetching plugin "cordova-admob-sdk" via npm
Installing "cordova-admob-sdk" for ios
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to the project
Fetching plugin "https://github.com/apache/cordova-plugin-camera.git" via git clone
Repository "https://github.com/apache/cordova-plugin-camera.git" checked out to git ref "master".
Installing "cordova-plugin-camera" for ios
Fetching plugin "cordova-plugin-compat" via npm
Installing "cordova-plugin-compat" for ios
Discovered plugin "cordova-plugin-console" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-console@~1.0.3" via npm
Installing "cordova-plugin-console" for ios
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-device@~1.1.2" via npm
Installing "cordova-plugin-device" for ios
Discovered plugin "cordova-plugin-google-analytics" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-google-analytics@~1.7.4" via npm
Installing "cordova-plugin-google-analytics" for ios
Discovered plugin "cordova-plugin-inappbrowser" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-inappbrowser@~1.5.0" via npm
Installing "cordova-plugin-inappbrowser" for ios
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-network-information@~1.3.0" via npm
Installing "cordova-plugin-network-information" for ios
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-splashscreen@~3.2.2" via npm
Installing "cordova-plugin-splashscreen" for ios
Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-statusbar@~2.1.3" via npm
Installing "cordova-plugin-statusbar" for ios
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@~1.2.2" via npm
Installing "cordova-plugin-whitelist" for ios
Discovered plugin "cordova-plugin-x-socialsharing" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-x-socialsharing@~5.1.3" via npm
Installing "cordova-plugin-x-socialsharing" for ios
Fetching plugin "es6-promise-plugin" via npm
Installing "es6-promise-plugin" for ios
Discovered plugin "cordova-plugin-x-toast" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-x-toast@~2.5.2" via npm
Installing "cordova-plugin-x-toast" for ios
Discovered plugin "ionic-plugin-deploy" in config.xml. Adding it to the project
Fetching plugin "ionic-plugin-deploy@^0.6.7" via npm
Installing "ionic-plugin-deploy" for ios
Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to the project
Fetching plugin "ionic-plugin-keyboard@~2.2.1" via npm
Installing "ionic-plugin-keyboard" for ios
Discovered plugin "onesignal-cordova-plugin" in config.xml. Adding it to the project
Fetching plugin "onesignal-cordova-plugin@~2.0.4" via npm
Installing "onesignal-cordova-plugin" for ios
Setting up project pipeline...
Running build process...
/Library/Ruby/Gems/2.0.0/gems/fastimage-2.1.0/lib/fastimage.rb:67: warning: already initialized constant URI::DEFAULT_PARSER
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:545: warning: previous definition of DEFAULT_PARSER was here
+------------------------+---------+------------------------+
|                       e[32mUsed pluginse[0m                        |
+------------------------+---------+------------------------+
| Plugin                 | Version | Action                 |
+------------------------+---------+------------------------+
| fastlane-plugin-updat  | 0.2.0   | update_project_codesi  |
| e_project_codesigning  |         | gning                  |
+------------------------+---------+------------------------+

[21:01:37]: e[33mYou require a gem, if this is a third party gem, please use `fastlane_require 'securerandom'` to ensure the gem is installed locallye[0m
[21:01:37]: e[32m------------------------------e[0m
[21:01:37]: e[32m--- Step: default_platform ---e[0m
[21:01:37]: e[32m------------------------------e[0m
[21:01:37]: e[32mDriving the lane 'ios package_build' 🚀e[0m
[21:01:37]: e[32m-----------------------------e[0m
[21:01:37]: e[32m--- Step: create_keychain ---e[0m
[21:01:37]: e[32m-----------------------------e[0m
[21:01:37]: e[4me[36m$ security list-keychains -d usere[0me[0m
[21:01:37]: â–¸ e[35m"/Users/ionic/Library/Keychains/login.keychain-db"e[0m
[21:01:37]: â–¸ e[35m"/Users/ionic/Library/Keychains/IonicKeychain-db"e[0m
[21:01:37]: e[32m----------------------------e[0m
[21:01:37]: e[32m--- Step: download_certs ---e[0m
[21:01:37]: e[32m----------------------------e[0m
763:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:1344:
763:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:848:
763:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:768:Field=version, Type=PKCS12

++
| e[32mInstalled Certificatee[0m |
++
++

[21:01:39]: e[32m--------------------------------e[0m
[21:01:39]: e[32m--- Step: import_certificate ---e[0m
[21:01:39]: e[32m--------------------------------e[0m
[21:01:39]: e[32m----------------------------------------e[0m
[21:01:39]: e[32m--- Step: update_project_codesigning ---e[0m
[21:01:39]: e[32m----------------------------------------e[0m
e[34me[1m==========================================e[0m
e[34me[1mThis action (update_project_codesigning) is deprecatede[0m
e[34me[1mThis plugin is deprecated in favor of core action shipped with fastlane, parameters are exactly the same, new action name is automatic_code_signing, there are also some helpers enable_automatic_code_signing, disable_automatic_code_signing where you only need the project path set :)e[0m
e[34me[1m==========================================
e[0m

+-----------------------+--------------------------------------+
|            e[32mSummary for Update Project Codesigninge[0m            |
+-----------------------+--------------------------------------+
| path                  | /Users/ionic/builds/dd66aa51/0/proj  |
|                       | ect-1/platforms/ios/geekapp            |
|                       | AppX.xcodeproj                    |
| use_automatic_signing | false                                |
+-----------------------+--------------------------------------+

[21:01:39]: Updating the Automatic Codesigning flag to disabled for the given project '/Users/ionic/builds/dd66aa51/0/project-1/platforms/ios/Geek App.xcodeproj/project.pbxproj'
[21:01:39]: e[31mSeems to be a very old project file formate[0m
[21:01:39]: e[31mPLEASE BACKUP ALL FILES before doing this.e[0m
[21:01:39]: e[33mUpgrading project to use xcode8 signing stuffe[0m
[21:01:39]: e[33mTEAM id is not sete[0m
[21:01:39]: e[32m---------------------------e[0m
[21:01:39]: e[32m--- Step: shell command ---e[0m
[21:01:39]: e[32m---------------------------e[0m
[21:01:39]: e[32m-----------------------------e[0m
[21:01:39]: e[32m--- Step: delete_keychain ---e[0m
[21:01:39]: e[32m-----------------------------e[0m
[21:01:39]: Unknown method 'error!', supported [:error, :important, :success, :message, :deprecated, :command, :command_output, :verbose, :header, :interactive?, :input, :confirm, :select, :password, :crash!, :user_error!, :shell_error!, :build_failure!, :test_failure!, :abort_with_message!, :not_implemented]
+----------------------------------+--------------------------------------+
|                              e[33mLane Contexte[0m                               |
+----------------------------------+--------------------------------------+
| DEFAULT_PLATFORM                 | ios                                  |
| PLATFORM_NAME                    | ios                                  |
| LANE_NAME                        | ios package_build                    |
| DOWNLOAD_CERTS_PROJECT_NAME      | Geek App                        |
| DOWNLOAD_CERTS_CERT_PATH         | /Users/ionic/builds/dd66aa51/0/proj  |
|                                  | ect-1/cert_file.p12                  |
| DOWNLOAD_CERTS_CERT_PASSWORD     | MYPASS                            |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/dd66aa51/0/proj  |
|                                  | ect-1/provision_file.mobileprovisio  |
|                                  | n                                    |
+----------------------------------+--------------------------------------+
[21:01:39]: e[31mUnknown method 'error!', supported [:error, :important, :success, :message, :deprecated, :command, :command_output, :verbose, :header, :interactive?, :input, :confirm, :select, :password, :crash!, :user_error!, :shell_error!, :build_failure!, :test_failure!, :abort_with_message!, :not_implemented]e[0m

+------+------------------------+-------------+
|              e[32mfastlane summarye[0m               |
+------+------------------------+-------------+
| Step | Action                 | Time (in s) |
+------+------------------------+-------------+
| 1    | default_platform       | 0           |
| 2    | create_keychain        | 0           |
| 3    | download_certs         | 1           |
| 4    | import_certificate     | 0           |
| 💥   | e[31mupdate_project_codesi e[0m | 0           |
|      | e[31mgninge[0m                  |             |
| 6    | shell command          | 0           |
| 7    | delete_keychain        | 0           |
+------+------------------------+-------------+

[21:01:39]: e[31mfastlane finished with errorse[0m
e[31m
[!] Unknown method 'error!', supported [:error, :important, :success, :message, :deprecated, :command, :command_output, :verbose, :header, :interactive?, :input, :confirm, :select, :password, :crash!, :user_error!, :shell_error!, :build_failure!, :test_failure!, :abort_with_message!, :not_implemented]e[0m
e[32;1mRunning after script...e[0;m
e[32;1m$ clean-upe[0;m
Cleaning up files...
Successful clean up
e[31;1mERROR: Job failed: exit status 1
e[0;m

Has anyone got the same issue when building the app?

Does this happen all the time?
Can you replicate it with a new project created with ionic start blank blank?

I’m using an Ionic V1 Project. I followed docs clearly. I was able to build the Development build. I was also able to build the Android Release build.But for the IOS Production build this issue is still there. I’m not sure why. I’ve checked the Cert pass, provisioning setting and all that :slightly_frowning_face:

What possible reasons might be behind this issue?

(Not answering any of my question will not help)

What is your ionic info output for the project?

Here is my Ionic Info output


    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 
    Gulp CLI    : not installed globally

local packages:

    Cordova Platforms : android 6.2.3 browser 4.1.0
    Ionic Framework   : ionic1 1.3.1

System:

    Android SDK Tools : 26.0.2
    Node              : v6.11.0
    npm               : 3.10.10 
    OS                : Linux 3.13

Having same issue. Any resolution? Android builds fine.

As I haven’t posted it here before:
Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with. There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues You can contact support at http://ionicframework.com/support#support You should definitely do that.

Will try to help anyway of course…
Post your ionic info and error log.

Like the person above, errors show up here

679:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:1344:
679:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:848:
679:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/tasn_dec.c:768:Field=version, Type=PKCS12

We are going to re-issue a cert again and test the build again as the error seems to appear in the signing steps. but unclear of why it is failing.

Hi, same error here, any update? Thanks!

Yes, we had to regenerate another cert and provision file. The only other issue we have had was with the extra file in the hooks/after_prepare folder, 010_add_platform_class.js which needed to be deleted and pushed to the repo to be able to build in the remote ionic build process.