"Platform IOS already added" error now appearing on IOS package builds


#1

A recent change to Ionic pro’s package build is causing this error during this fastlane step:
cordova platform add ios --nofetch

Exit status of command ‘cordova platform add ios --nofetch’ was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
Error: Platform ios already added.

This can be fixed by ensuring ios is not an platform in config.xml but this isn’t practical.

Broken fastlane summary on Wednesday June 20th:
±-----±-----------------------------------±------------+
| fastlane summary |
±-----±-----------------------------------±------------+
| Step | Action | Time (in s) |
±-----±-----------------------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 4 |
| 3 | create_keychain | 0 |
| 4 | download_certs | 2 |
| 5 | import_certificate | 0 |
| 6 | build_pro_app | 294 |
| :boom: | cordova platform add ios --nofetch | 3 |
| 8 | upload_logs | 0 |
| 9 | shell command | 0 |
| 10 | delete_keychain | 0 |
±-----±-----------------------------------±------------+

Working Fastlane summary on Monday 18th June:
±-----±-----------------------------------±------------+
| fastlane summary |
±-----±-----------------------------------±------------+
| Step | Action | Time (in s) |
±-----±-----------------------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 5 |
| 3 | download_www | 4 |
| 4 | create_keychain | 0 |
| 5 | download_certs | 2 |
| 6 | import_certificate | 0 |
| 7 | npm install --quiet | 37 |
| 8 | cordova platform add ios --nofetch | 11 |
| 9 | update_project_codesigning | 0 |
| 10 | update_project_provisioning | 0 |
| 11 | gym | 80 |
| 12 | upload_ipa | 2 |
| 13 | upload_logs | 1 |
| 14 | shell command | 0 |
| 15 | delete_keychain | 0 |
±-----±-----------------------------------±------------+


#2

I’ve same problem, have you solved ?
thanks


#3

To get around the problem i removed the ios platform with:

cordova platform remove ios

and then committed the code to git and sent to ionic:

git push ionic master

Note: for ionic pro to correctly build i had to have at least one platform added. So:

cordova platform add android

I’m not sure if the ionic team are monitoring the forums for these type of issues (@mhartington ?)


#4

Thanks for replay, i submitted now a request to https://ionic.zendesk.com/hc/en-us