Ionic 3 - Build Error - update_project_codesigning

Hi all,

Running locally, I can build the app just fine. But when I push to the Ionic Pro pipeline and try to package the app, I get this error…

[10:52:31]: ▸ Saving ios@~4.5.5 into config.xml file ...
[10:52:31]: ▸ Running pod install
[10:52:31]: ▸ Done
[10:52:36]: ----------------------------------------
[10:52:36]: --- Step: update_project_codesigning ---
[10:52:36]: ----------------------------------------
[10:52:36]: Error setting value '/Users/ionic/builds/project-0/platforms/ios/.xcodeproj' for option 'path'
[10:52:36]: You passed invalid parameters to 'update_project_codesigning'.
[10:52:36]: Check out the error below and available options by running `fastlane action update_project_codesigning`
[10:52:36]: -------------------------
[10:52:36]: --- Step: upload_logs ---
[10:52:36]: -------------------------
[10:52:40]: ---------------------------
[10:52:40]: --- Step: shell command ---
[10:52:40]: ---------------------------
[10:52:40]: -----------------------------
[10:52:40]: --- Step: delete_keychain ---
[10:52:40]: -----------------------------
[10:52:40]: Path is invalid
+-------------------------------------+------------------------------------------------------------------+
|                                              Lane Context                                              |
+-------------------------------------+------------------------------------------------------------------+
| DEFAULT_PLATFORM                    | ios                                                              |
| PLATFORM_NAME                       | ios                                                              |
| LANE_NAME                           | ios package_build                                                |
| DOWNLOAD_CERTS_CERT_PATH            | /Users/ionic/builds/project-0/cert_file.p12                      |
| DOWNLOAD_CERTS_PROVISIONING_PATH    | /Users/ionic/builds/project-0/provision_file.mobileprovision     |
| SIGH_PROFILE_PATHS                  | ["/Users/ionic/builds/project-0/provision_file.mobileprovision"] |
+-------------------------------------+------------------------------------------------------------------+
[10:52:40]: Path is invalid

+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | default_platform           | 0           |
| 2    | build_summary              | 4           |
| 3    | create_keychain            | 0           |
| 4    | download_certs             | 1           |
| 5    | import_certificate         | 0           |
| 6    | build_pro_app              | 198         |
| 7    | cordova platform add ios   | 521         |
| 💥   | update_project_codesigning | 0           |
| 9    | upload_logs                | 3           |
| 10   | shell command              | 0           |
| 11   | delete_keychain            | 0           |
+------+----------------------------+-------------+

[10:52:40]: fastlane finished with errors

Searching the forums, the closest I can find (which matches my issue) is…

I tried rebuilding though (several times) so this isn’t an option.

I’m open to suggestions - environment is as follows:

Ionic:

   ionic (Ionic CLI)  : 4.1.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : browser 5.0.3, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic 4.2.0, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 13 other plugins)

System:

   ios-deploy : 2.0.0
   NodeJS     : v10.11.0 (/usr/local/Cellar/node/10.11.0/bin/node)
   npm        : 6.4.1
   OS         : macOS
   Xcode      : Xcode 10.1 Build version 10B61

Thanks!

For those that have the same issue, this was unfortunately my own error. I was using a shell script as part of the Ionic pro build pipelines. The script catered for multiple environments by copying different configuration files where required.

As a result, my root folder didn’t contain config.xml. After committing it directly to the root of my GIT repository, the problem was resolved.