[iOS] Missing `ios/RnDiffApp.xcworkspace/contents.xcworkspacedata` file
See original GitHub issueBug
Some versions of the upgrade helper are missing the contents.xcworkspacedata.
This is happening because the Ruby environment is not set properly and the script fails to:
- install the dependencies.
- create the expected files.
The script ignore the failure and proceeds with the job, publishing the diff anyway.
React Native versions
- 0.63.5 - observe that the
RnDiffApp.xcworkspace/contents.xcworkspacedatafile is missing - 0.64.4 - observe that the
RnDiffApp.xcworkspace/contents.xcworkspacedatafile is missing - 0.65.3 - observe that the
RnDiffApp.xcworkspace/contents.xcworkspacedatafile is missing - 0.66.5 - observe that the
RnDiffApp.xcworkspace/contents.xcworkspacedatafile is missing - 0.68.5 - observe the failure in CI
- 0.69.7 - observe the failure in CI
- 0.70.4 - observe the failure in CI
- 0.70.5 - observe the failure in CI
- 0.71.0-rc.0 - observe the failure in CI
Steps to reproduce
Run the script and see the Cocoapods failure.
Suggested fix
The suggested fix would be to update the new-release.sh script so that:
- It installs
rbenv(or a similar Ruby Management system curlthe right Ruby version for ReactNative when releasing a new version. It should use the version tags to learn where to look. Example for v0.70.X- Install the right ruby version
- Set the ruby version as global version
- Proceed with the standard execution.
As an additional safety net, the script should fail if the dependencies are not installed correctly, with a proper error message.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:3
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Problem loading a specific project | Apple Developer Forums
I am having a problem with re-loading a specific project. The first open is good via File->Open menu. Then I quit Xcode and...
Read more >Build for React Native iOS - .xcworkspace not detected during ...
For workaround you need to create 1 folder and 1 file in your React Native project. Folder: /ios/[projectName].xcworkspace. File: /ios/[ ...
Read more >Why isn't contents.xcworkspacedata being ignored?
So my question is what do I need to do so Project Name/Project Name.xcworkspace/contents.xcworkspacedata doesn't show up in Git (b/c I don't ...
Read more >What is an `.xcworkspace` file? - Jim Fisher
Xcode often creates a “SomeProject.xcworkspace” file. ... The important file is SomeProject.xcworkspace/contents.xcworkspacedata .
Read more >Xcode - xcworkspace and xcodeproj - Some Things Are Obvious
In the package directory, the important file is contents.xcworkspacedata. A workspace is just a list of contained projects; there is no ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think I will close this issue, and lets open it up again if any of the above is not clear or not working. I feel confident for everything, though.
I regenerated the problematic
0.67.5too, so now the new diffs will not have any vendor stuff in the diffs.