question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Missing `ios/RnDiffApp.xcworkspace/contents.xcworkspacedata` file

See original GitHub issue

Bug

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:

  1. install the dependencies.
  2. create the expected files.

Example failure

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.xcworkspacedata file is missing
  • 0.64.4 - observe that the RnDiffApp.xcworkspace/contents.xcworkspacedata file is missing
  • 0.65.3 - observe that the RnDiffApp.xcworkspace/contents.xcworkspacedata file is missing
  • 0.66.5 - observe that the RnDiffApp.xcworkspace/contents.xcworkspacedata file 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:

  1. It installs rbenv (or a similar Ruby Management system
  2. curl the 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
  3. Install the right ruby version
  4. Set the ruby version as global version
  5. 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:closed
  • Created 10 months ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pviniscommented, Nov 12, 2022

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.

1reaction
pviniscommented, Nov 12, 2022

I regenerated the problematic 0.67.5 too, so now the new diffs will not have any vendor stuff in the diffs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found