Failure packaging iOS Builds: Error setting value 'xxxx' for option 'workspace'

Hi team, new to Ionic so struggling a bit

We had our Cordova Apps running out of Telerik Platform which is now discontinued so Ionic Pro has been a quick way to get to a point we can deploy our apps without wholesale code changes.

Have managed to build/package and even to deploy the Android versions to the app store but am stuck on packaging for the iOS store.

The issue appears to be coming from fastlane but I’ve followed all the fast lane related questions on Stackoverflow related to this error but none of them have worked or just don’t apply.

Any help specific to Ionic would be much appreciated.

This is the line where the first error happens

Error setting value ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcworkspace’ for option ‘workspace’

Here’s the Relevant bits of package log

[21:35:49]: Updating the Automatic Codesigning flag to disabled for the given project ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcodeproj/project.pbxproj’
[21:35:49]: Seems to be a very old project file format
[21:35:49]: PLEASE BACKUP ALL FILES before doing this.
[21:35:49]: Upgrading project to use xcode8 signing stuff
[21:35:49]: Successfully updated project settings to use ProvisioningStyle ‘Manual’
[21:35:49]: Modified Targets:
[21:35:49]: * Training Tilt
[21:35:49]: -----------------------------------------
[21:35:49]: — Step: update_project_provisioning —
[21:35:49]: -----------------------------------------
[21:35:49]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[21:35:49]: https://docs.fastlane.tools/codesigning/GettingStarted/
[21:35:49]: Downloading root certificate from (https://www.apple.com/appleca/AppleIncRootCertificate.cer) to path ‘/tmp/AppleIncRootCertificate.cer’
[21:35:49]: Parsing mobile provisioning profile from ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/provision_file.mobileprovision’
[21:35:49]: Going to update project ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcodeproj’ with UUID
[21:35:49]: Updating target Training Tilt…
[21:35:49]: Updating configuration Debug…
[21:35:49]: Updating configuration Release…
[21:35:49]: Successfully updated project settings in’/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcodeproj’
[21:35:49]: -----------------
[21:35:49]: — Step: gym —
[21:35:49]: -----------------
[21:35:50]: Error setting value ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcworkspace’ for option ‘workspace’
[21:35:50]: You passed invalid parameters to ‘gym’.
[21:35:50]: Check out the error below and available options by running fastlane action gym
[21:35:50]: -------------------------
[21:35:50]: — Step: upload_logs —
[21:35:50]: -------------------------
[21:35:52]: ---------------------------
[21:35:52]: — Step: shell command —
[21:35:52]: ---------------------------
[21:35:52]: -----------------------------
[21:35:52]: — Step: delete_keychain —
[21:35:52]: -----------------------------
[21:35:52]: Workspace file not found at path ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcworkspace’
±------------------------------------±----------------------------------------------------------------------------------------+
| Lane Context |
±------------------------------------±----------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios package_build |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Distribution: Tilt Software Limited (XNQQ3PCGD2) |
| DOWNLOAD_CERTS_TEAM_ID | XNQQ3PCGD2 |
| DOWNLOAD_CERTS_PROJECT_NAME | Training Tilt |
| DOWNLOAD_CERTS_CERT_PATH | /Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/cert_file.p12 |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/provision_file.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/provision_file.mobileprovision"] |
±------------------------------------±----------------------------------------------------------------------------------------+
[21:35:52]: Workspace file not found at path ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcworkspace’

±-----±-----------------------------------±------------+
| 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 | 143 |
| 7 | cordova platform add ios --nofetch | 10 |
| 8 | update_project_codesigning | 0 |
| 9 | update_project_provisioning | 0 |
| :boom: | gym | 0 |
| 11 | upload_logs | 2 |
| 12 | shell command | 0 |
| 13 | delete_keychain | 0 |
±-----±-----------------------------------±------------+

[21:35:52]: fastlane finished with errors

[!] Workspace file not found at path ‘/Users/ionic/builds/tiltsoftware/TrainingTilt.Mobile/platforms/ios/Training Tilt.xcworkspace’
\e[91mFailed to upload ipa to storage please retry your build.\e[0m
Running after script…
$ clean-up
Cleaning up files…

Just a suggestion: Try renaming “Training Tilt” to “TrainingTilt” in your config.xml.

Thanks for the tip. No difference unfortunately. Pretty sure that’s just a display name field anyway though so probably to be expected. Worth a try though

Did you manage to fix this issue? I am facing the same. Any help appreciated.

I fixed this 2 days ago by making my project name all lower case with no spaces

I glad it woked for you. Wish that worked for me. Still getting same error:
image