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.

Detox 12 not compatible with XCode 12, please upgrade detox

See original GitHub issue

Current behavior

Yarn fails to install with the following error:

error /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox: Command failed.
Exit code: 1
Command: node scripts/postinstall.js
Arguments: 
Directory: /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox
Output:
+ xcodebuild -version
+++ dirname /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/scripts/build_framework.ios.sh
++ dirname /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/scripts
+ detoxRootPath=/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox
++ node -p 'require('\''/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/package.json'\'').version'
+ detoxVersion=12.6.1
++ echo 12.6.1
++ xcodebuild -version
++ shasum
++ awk '{print $1}'
+ sha1=0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e
+ detoxFrameworkDirPath=/Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e
+ detoxFrameworkPath=/Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e/Detox.framework
+ main
+ '[' -d /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e ']'
+ '[' '!' -d /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e/Detox.framework ']'
+ echo '/Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted.
         deleting /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e and trying to rebuild.'
+ rm -rf /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e
/Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted.
         deleting /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e and trying to rebuild.
+ prepareAndBuildFramework
+ '[' -d /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios ']'
+ detoxSourcePath=/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ extractSources /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ detoxSourcePath=/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ echo 'Extracting Detox sources...'
Extracting Detox sources...
+ mkdir -p /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ tar -xjf /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/Detox-ios-src.tbz -C /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ buildFramework /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ detoxSourcePath=/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src
+ echo 'Building Detox.framework from /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src...'
Building Detox.framework from /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src...
+ mkdir -p /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e
+ /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/scripts/build_universal_framework.sh /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/ios_src/Detox.xcodeproj /Users/djhr/Library/Detox/ios/0e1b2e9d008dd5da9f0037c8747ef32bd8ed2b2e
child_process.js:651
    throw err;
    ^

Error: Command failed: /Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/scripts/build_framework.ios.sh
    at checkExecSyncError (child_process.js:630:11)
    at Object.execFileSync (child_process.js:648:15)
    at Object.<anonymous> (/Users/djhr/Library/Caches/Yarn/v6/.tmp/08757a422460db4f0967139a62ebf40c.2f95ec27a6e0e1a87682fbb817b25f2f9d80531f.prepare/node_modules/detox/scripts/postinstall.js:2:27)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
    at Module.load (internal/modules/cjs/loader.js:977:32)
    at Function.Module._load (internal/modules/cjs/loader.js:877:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47 {
  status: 65,
  signal: null,
  output: [ null, null, null ],
  pid: 14050,

Detox 12.6.1 is not compatible with XCode 12, upgrading detox solves the issue

Repro steps

On mac with XCode 12, delete yarn caches and run yarn install

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
krizzucommented, Oct 10, 2020

@tido64 Yes, there’s a plan for that too, but first AsyncStorage will need move to its own organization (this proposal explains it.)

0reactions
krizzucommented, Oct 24, 2020

🎉 This issue has been resolved in version 1.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration Guide | Detox
Detox now requires iOS 13.0 and above iOS simulator runtimes, and iOS 12.x and below are no longer supported. This does not require...
Read more >
iOS React Native app fails to install with Xcode 12 build tools ...
Upgrading detox might solve the issue. Share.
Read more >
Xcode 12 Release Notes | Apple Developer Documentation
Xcode 12 continues to support debugging for older OS versions, but without the new encryption.
Read more >
Testing iOS Applications on macOS - CircleCI
CircleCI offers support for building, testing and deploying iOS projects in macOS virtual machines. Each image provided has a set of common tools...
Read more >
React Native E2E UI testing with Detox and Bitrise
It requires Xcode or Android Studio to get started. What's end-to-end testing? End-to-end (E2E) testing is a technique used to test whether the ......
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