Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rn/ios_build_and_test job failing at Homebrew installation #3

Closed
LydGol90 opened this issue Jul 30, 2019 · 5 comments · Fixed by #9
Closed

rn/ios_build_and_test job failing at Homebrew installation #3

LydGol90 opened this issue Jul 30, 2019 · 5 comments · Fixed by #9
Labels

Comments

@LydGol90
Copy link

LydGol90 commented Jul 30, 2019

Bug

Hey guys, really excited about this orb!

I am getting an error when trying to use the rn/ios_build_and_test job. This is the output in circle ci:

#!/bin/bash -eo pipefail
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install node@8 >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install intel-haxm >/dev/null
touch .watchmanconfig
node -v
^D��^D��Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
remote: Enumerating objects: 8, done.        
remote: Counting objects: 100% (8/8), done.        
remote: Compressing objects: 100% (7/7), done.        
remote: Total 8 (delta 0), reused 5 (delta 0), pack-reused 0        
Unpacking objects: 100% (8/8), done.
Error: Failure while executing; `/usr/bin/sudo -E -- env PATH=/usr/local/bin:/usr/local/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin /usr/local/Caskroom/intel-haxm/7.3.2/silent_install.sh` exited with 1. Here's the output:
Silent installation failed, please see /private/tmp/haxm_silent_run.log for details!

Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/system_command.rb:107:in `assert_success'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:50:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:27:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:31:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/installer.rb:45:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:207:in `block in install_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:198:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:95:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:21:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:14:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:34:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:89:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:120:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:89:in `<main>'
Exited with code 1

This is my circle ci config:

jobs:
  analyse_js:
    executor: rn/linux_js
    steps:
      - attach_workspace:
          at: .
      - rn/yarn_install
      - run:
          command: yarn jest
          name: Jest
  checkout_code:
    executor: rn/linux_js
    steps:
      - checkout
      - persist_to_workspace:
          paths: .
          root: .

orbs:
  rn: react-native-community/react-native@1.2.1
version: 2.1
workflows:
  test:
    jobs:
      - checkout_code
      - analyse_js:
          requires:
            - checkout_code
      - rn/ios_build_and_test:
          build_configuration: Release
          detox_configuration: ios.sim.release
          device: iPhone X
          project_path: ios/{MyApp}.xcworkspace
          project_type: workspace
          requires:
            - analyse_js
          scheme: {MyApp}

Environment info

React native info output:

  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
      Memory: 75.29 MB / 8.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 12.6.0 - ~/.nvm/versions/node/v12.6.0/bin/node
      Yarn: 1.17.3 - ~/.nvm/versions/node/v12.6.0/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v12.6.0/bin/npm
    SDKs:
      iOS SDK:
        Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
      Android SDK:
        API Levels: 23, 28, 29
        Build Tools: 28.0.3, 29.0.1
        System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5692245
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmGlobalPackages:
      react-native-cli: 2.0.1

Library version: 1.2.1

Steps To Reproduce

Run a build with the above circle ci config and it fails at the homebrew installation phase for ios_build_and_test job

@jinpyojeon
Copy link

I'm having similar issues for versions 1.2 and 1.1 as well (haven't tested with 1.0). The error message I see in the error log above (/private/tmp/haxm_silent_run.log) is the following:

/dev/disk1 GUID_partition_scheme /dev/disk1s1 Apple_HFS /Volumes/com_intel_kext_haxm_disc mpkg_file=/Volumes/com_intel_kext_haxm_disc//IntelHAXM_7.3.2.mpkg ecx ffba222b edx 28100800 edx 28100800 No emulator instance exist! sed: /Library/Extensions/intelhaxm.kext/Contents/Resources/support.txt: No such file or directory Intel HAXM: This is a new installation installer: Package name is Intel(R) Hardware Accelerated Execution Manager installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override. "disk1" unmounted. "disk1" ejected. Error: The installation-check script run failed ! *************** Silent installation failed ! ***************

@jinpyojeon
Copy link

I'll update if I manage to resolve the issue.

@payalzanwar
Copy link

I am facing the same issue. Any workaround for this?

timkuilman added a commit to chargetrip/react-native-circleci-orb that referenced this issue Oct 17, 2019
react-native-community-bot pushed a commit that referenced this issue Oct 25, 2019
## [1.2.2](v1.2.1...v1.2.2) (2019-10-25)

### Bug Fixes

* remove haxm the lack hardware acceleration support causes a crash ([38ef88e](38ef88e)), closes [#3](#3)
@react-native-community-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

react-native-community-bot pushed a commit that referenced this issue Oct 25, 2019
## [1.2.2](v1.2.1...v1.2.2) (2019-10-25)

### Bug Fixes

* remove haxm the lack hardware acceleration support causes a crash ([9d0bb42](9d0bb42))
* remove haxm the lack hardware acceleration support causes a crash ([38ef88e](38ef88e)), closes [#3](#3)
react-native-community-bot pushed a commit that referenced this issue Nov 20, 2019
# [1.3.0](v1.2.1...v1.3.0) (2019-11-20)

### Bug Fixes

* **android:** Update gradle cache keys to match on save and restore ([#17](#17)) ([6e52052](6e52052))
* **docs:** include the code repo link in the orb description ([6d97ca9](6d97ca9))
* Remove FBSimulatorControl ([#24](#24) by [@compojoom](https://github.com/compojoom)) ([7c5b51a](7c5b51a))
* remove haxm the lack hardware acceleration support causes a crash ([9d0bb42](9d0bb42))
* remove haxm the lack hardware acceleration support causes a crash ([38ef88e](38ef88e)), closes [#3](#3)

### Features

* Minor release ([5f401d7](5f401d7))
@react-native-community-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

nova93 pushed a commit to levaclinic/react-native-circleci-orb that referenced this issue Jan 8, 2024
# 1.0.0 (2024-01-08)

### Bug Fixes

* 'an unexpected storage error occurred' on multiline keys ([b9fb1bb](b9fb1bb))
* add missing CACHE_VERSION in pod_install ([b6c7e99](b6c7e99))
* leva instead of rnc ([531c8ab](531c8ab))
* quote cache keys that start with special characters ([b217d8c](b217d8c))
* removing old yarn version from PATH which hopefully fixes the issue ([cc25fff](cc25fff))
* something ([2f57788](2f57788))
* update XCode version to 12.5.1 ([react-native-community#158](https://github.com/levaclinic/react-native-circleci-orb/issues/158)) ([4bbdb75](4bbdb75))
* yaml parsing build_image_version default as double ([df23a73](df23a73))
* yaml parsing build_image_version default as double ([react-native-community#170](https://github.com/levaclinic/react-native-circleci-orb/issues/170)) ([3c8cb0f](3c8cb0f))
* **android:** Added new Android Command Line Tools for MacOS 12+ and Java 9, 10, 11 ([react-native-community#114](https://github.com/levaclinic/react-native-circleci-orb/issues/114) by [@lukebrandonfarrell](https://github.com/lukebrandonfarrell)) ([aeb45fe](aeb45fe))
* **android:** Define a max heap size for linux_android ([react-native-community#46](https://github.com/levaclinic/react-native-circleci-orb/issues/46) by [@vabanagas](https://github.com/vabanagas)) ([d029e0b](d029e0b))
* **android:** Ensure the Android emulator looks correct ([react-native-community#65](https://github.com/levaclinic/react-native-circleci-orb/issues/65) by [@vonovak](https://github.com/vonovak)) ([57744a4](57744a4))
* **android:** fix gradle build cache key ([react-native-community#130](https://github.com/levaclinic/react-native-circleci-orb/issues/130) by [@fotos](https://github.com/fotos)) ([acadf02](acadf02))
* **android:** fix JAVA_HOME path ([react-native-community#61](https://github.com/levaclinic/react-native-circleci-orb/issues/61) by [@vonovak](https://github.com/vonovak)) ([e4fa01f](e4fa01f))
* **android:** fix path to emulator ([react-native-community#60](https://github.com/levaclinic/react-native-circleci-orb/issues/60) by [@vonovak](https://github.com/vonovak)) ([8621ec9](8621ec9))
* **android:** Fix Permission denied issues when running gradlew ([react-native-community#72](https://github.com/levaclinic/react-native-circleci-orb/issues/72) by [@zpd106](https://github.com/zpd106)) ([0e22ef8](0e22ef8))
* **android:** move docker android pin to JDK11 version ([react-native-community#123](https://github.com/levaclinic/react-native-circleci-orb/issues/123)) ([d74d427](d74d427)), closes [react-native-community#122](https://github.com/levaclinic/react-native-circleci-orb/issues/122)
* **android:** pin docker image to 4.2 for JDK8 ([react-native-community#121](https://github.com/levaclinic/react-native-circleci-orb/issues/121)) ([fe2898a](fe2898a)), closes [react-native-community#120](https://github.com/levaclinic/react-native-circleci-orb/issues/120)
* **android:** Update android_emulator_start.yml to use the new  emulator ([react-native-community#64](https://github.com/levaclinic/react-native-circleci-orb/issues/64) by [@vonovak](https://github.com/vonovak)) ([73d27e2](73d27e2))
* **android:** Update gradle cache keys to match on save and restore ([react-native-community#17](https://github.com/levaclinic/react-native-circleci-orb/issues/17)) ([6e52052](6e52052))
* **android:** use JDK11 compatible JVM options ([react-native-community#122](https://github.com/levaclinic/react-native-circleci-orb/issues/122)) ([1923bcd](1923bcd)), closes [react-native-community#120](https://github.com/levaclinic/react-native-circleci-orb/issues/120)
* **android_test:** node v12 to v16 ([a9956b7](a9956b7))
* **ios:** Fix syntax errors ([aff9136](aff9136))
* **ios:** Possible fix for the NVM node version not carrying over between steps ([react-native-community#51](https://github.com/levaclinic/react-native-circleci-orb/issues/51)) ([ae71c53](ae71c53))
* **ios:** Revert changes from 4.2.0 ([2c3fa5e](2c3fa5e))
* **ios:** update default ios device to iPhone 11 ([react-native-community#127](https://github.com/levaclinic/react-native-circleci-orb/issues/127)) ([2e3b1e0](2e3b1e0))
* **ios_build:** node v12 to v16 ([f0ea6b4](f0ea6b4))
* **ios_build_and_test:** node v12 to v16 ([6347597](6347597))
* **setup_macos_executor:** bump node v12 to v16 ([a34ccec](a34ccec))
* Correct the Android java environment variables ([917129a](917129a))
* do not cache /usr/local/Homebrew ([react-native-community#119](https://github.com/levaclinic/react-native-circleci-orb/issues/119)) ([597e597](597e597))
* Do not fail then printing the fbsimctl help ([9d74ba9](9d74ba9))
* duplicated on_after_initialize  param ([react-native-community#78](https://github.com/levaclinic/react-native-circleci-orb/issues/78)) ([33ffc6b](33ffc6b))
* Ensure that the publish steps works correctly ([7e6c289](7e6c289))
* Ensure the CI works correctly ([51d7f49](51d7f49))
* Fix errors when installing NodeJS on MacOS executor ([react-native-community#40](https://github.com/levaclinic/react-native-circleci-orb/issues/40) by [@roni-castro](https://github.com/roni-castro)) ([19ac8f7](19ac8f7))
* Increase the amount of memory for Android builds ([22e8279](22e8279))
* Mac node install ([react-native-community#47](https://github.com/levaclinic/react-native-circleci-orb/issues/47) by [@vonovak](https://github.com/vonovak)) ([4a4b619](4a4b619))
* Move cache directory to the system temp folder to avoid permission issues ([react-native-community#59](https://github.com/levaclinic/react-native-circleci-orb/issues/59) by @Naturalclar) ([15f0d90](15f0d90))
* Remove deprecated cask usage from brew install ([react-native-community#85](https://github.com/levaclinic/react-native-circleci-orb/issues/85) by @CHNB128) ([de4ef76](de4ef76))
* Remove Deprecated CircleCI Spec Repo Cache ([react-native-community#82](https://github.com/levaclinic/react-native-circleci-orb/issues/82) by @BytesGuy) ([f45fcfe](f45fcfe))
* Remove FBSimulatorControl ([react-native-community#24](https://github.com/levaclinic/react-native-circleci-orb/issues/24) by [@compojoom](https://github.com/compojoom)) ([7c5b51a](7c5b51a))
* remove haxm the lack hardware acceleration support causes a crash ([9d0bb42](9d0bb42))
* remove haxm the lack hardware acceleration support causes a crash ([38ef88e](38ef88e)), closes [react-native-community#3](https://github.com/levaclinic/react-native-circleci-orb/issues/3)
* Removed the unused `build_threads` parameter in the `linux_android` executor ([97720b9](97720b9)), closes [react-native-community#19](https://github.com/levaclinic/react-native-circleci-orb/issues/19)
* **docs:** include the code repo link in the orb description ([6d97ca9](6d97ca9))
* Use project_type in ios_build_and_test job ([25c7948](25c7948))

### Features

* allow specifying build image version for android build & executor ([ee50537](ee50537))
* **node:** bump from node 12 to node 16 default ([0acc6f9](0acc6f9))
* Add `on_after_initialize` parameter to the jobs ([react-native-community#26](https://github.com/levaclinic/react-native-circleci-orb/issues/26) by [@compojoom](https://github.com/compojoom)) ([0ff6621](0ff6621))
* Add a `bundle` command ([react-native-community#8](https://github.com/levaclinic/react-native-circleci-orb/issues/8) by [@sunilchalla](https://github.com/sunilchalla)) ([464d661](464d661))
* Add a `store_artifact_path` to the Android and iOS test jobs which allow storing artifacts after a job runs ([react-native-community#54](https://github.com/levaclinic/react-native-circleci-orb/issues/54) by @MateusAndrade) ([19edf8a](19edf8a))
* add homebrew_update parameter to toggle brew update ([react-native-community#131](https://github.com/levaclinic/react-native-circleci-orb/issues/131)) ([6a7d635](6a7d635))
* Add jobs for building and testing ([2f24401](2f24401))
* add optional yarn_install_directory parameter ([react-native-community#124](https://github.com/levaclinic/react-native-circleci-orb/issues/124)) ([3c659f9](3c659f9))
* add parameter to allow configuring the android tests on build ([0569d66](0569d66))
* Add parameters to configure the executors ([7c044cb](7c044cb))
* Add parameters to disable caching ([ad81e99](ad81e99))
* Add pod cache ([react-native-community#67](https://github.com/levaclinic/react-native-circleci-orb/issues/67)) ([96b0f3f](96b0f3f))
* add pod_cache param to ios_build job ([react-native-community#140](https://github.com/levaclinic/react-native-circleci-orb/issues/140)) ([f18183f](f18183f))
* Added the `--frozen-lockfile` flag to the `yarn_install` command ([e4676c4](e4676c4)), closes [react-native-community#28](https://github.com/levaclinic/react-native-circleci-orb/issues/28)
* allow passing executor parameters to jobs ([react-native-community#133](https://github.com/levaclinic/react-native-circleci-orb/issues/133)) ([4a199fd](4a199fd))
* allow passing executor parameters to test jobs ([react-native-community#141](https://github.com/levaclinic/react-native-circleci-orb/issues/141)) ([eea6098](eea6098)), closes [react-native-community#112](https://github.com/levaclinic/react-native-circleci-orb/issues/112)
* allow passing pod_install_directory during ios_build job ([react-native-community#136](https://github.com/levaclinic/react-native-circleci-orb/issues/136)) ([faa7a01](faa7a01))
* Allow the metro packager to be started from the test jobs ([68846df](68846df))
* First major release ([81e839d](81e839d))
* Minor release ([5f401d7](5f401d7))
* pass through pod cache param from job to command ([react-native-community#138](https://github.com/levaclinic/react-native-circleci-orb/issues/138)) ([b156c1b](b156c1b))
* Skip Detox setup in ios_build job ([3fc5c53](3fc5c53))
* **android:** Add command to update the NDK to a given version ([react-native-community#91](https://github.com/levaclinic/react-native-circleci-orb/issues/91) by @CHNB128) ([64eac35](64eac35))
* **android:** Add hombrew cache param to android test job ([react-native-community#96](https://github.com/levaclinic/react-native-circleci-orb/issues/96) by @Kyonru) ([8314b6e](8314b6e))
* **android:** Pass through the `assemble_android_test` parameter from the `android_build` job to the command ([react-native-community#109](https://github.com/levaclinic/react-native-circleci-orb/issues/109) by [@ronwsmith](https://github.com/ronwsmith)) ([9f2e7fa](9f2e7fa))
* **Android:** Add optional command-running step after the emulator starts ([react-native-community#110](https://github.com/levaclinic/react-native-circleci-orb/issues/110) by [@ronwsmith](https://github.com/ronwsmith)) ([5ee8a30](5ee8a30))
* **ios:** Add Cocoapods Install Command ([react-native-community#48](https://github.com/levaclinic/react-native-circleci-orb/issues/48) by [@vonovak](https://github.com/vonovak)) ([a743bbc](a743bbc))
* **ios:** control if simulator starts in background ([react-native-community#126](https://github.com/levaclinic/react-native-circleci-orb/issues/126)) ([08338f9](08338f9))
* follow emulator best practices ([a5765a2](a5765a2))
* follow emulator best practices ([react-native-community#62](https://github.com/levaclinic/react-native-circleci-orb/issues/62)) ([ac709c1](ac709c1))
* Make yarn cache folder configurable ([react-native-community#103](https://github.com/levaclinic/react-native-circleci-orb/issues/103) by [@ronwsmith](https://github.com/ronwsmith)) ([c6ccaa1](c6ccaa1))
* Update default dependencies to meet React Native 0.64 requirements ([34ca501](34ca501))
* **ios:** Added an `ios_build` job ([react-native-community#30](https://github.com/levaclinic/react-native-circleci-orb/issues/30) by [@roni-castro](https://github.com/roni-castro)) ([b607782](b607782))
* **ios:** Ensure a simulator with the latest iOS version exists for the given name when testing ([2d614fa](2d614fa))
* **ios:** Upgrading Xcode to 11.0 ([react-native-community#45](https://github.com/levaclinic/react-native-circleci-orb/issues/45) by [@springcoil](https://github.com/springcoil)) ([78aad72](78aad72))
* First major version ([1682403](1682403))
* Use Node 10 by default ([react-native-community#37](https://github.com/levaclinic/react-native-circleci-orb/issues/37) by [@roni-castro](https://github.com/roni-castro)) ([3e7efc6](3e7efc6))

* fix!: using supported Node version with cimg/node and updating comments ([1186c41](1186c41))

### BREAKING CHANGES

* cimg/node doesn't support major Node version aliases the same way circleci/node did
* **android:** this orb is now using JDK11

See JDK8-->JDK11 migration notes here:
https://discuss.circleci.com/t/android-convenience-image-moving-to-java-v11-on-august-17th/36601/4
* The default dependencies used are now Xcode 12, CocoaPods 1.10.1, Node.js 12
* **ios:** You should confirm that your app is able to build on Xcode 11 before upgrade, however, most app will already support this.
* Node 10 is now the default version. The previous default of Node 8 is now end-of-life. Most users will have no issues with upgrading unless they use modules which rely on Node 8 behaviour. You can also now use the `node_version` parameter to set the Node version you require.
* The `yarn_install` command will now fail if there need to be changes made to your `yarn.lock` file. See [the Yarn documentation](https://yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile) for details on this flag.
* This is the first major release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants