Yoga.cpp compile error on Xcode 11.1, react-native@0.61.2 release build with Fastlane/CircleCI #937

Closed
opened 2019-10-10 13:25:24 -07:00 by oleksandr-dziuban · 1 comment
oleksandr-dziuban commented 2019-10-10 13:25:24 -07:00 (Migrated from github.com)

Report

Impossible to assemble application release iOS build with latest Xcode 11.0 or 11.1 based on React Native v0.61.2.
I'm using CircleCI with Xcode 11.0 or 11.1 images.
During assembling release build I see Compiling Yoga.cpp error:

[12:21:14]: ▸ Compiling event.cpp
[12:21:14]: ▸ Compiling Yoga.cpp
[12:21:14]: ▸ The following build commands failed:
[12:21:14]: ▸ 	CompileC /Users/distiller/Library/Developer/Xcode/DerivedData/Brandgility-ccncokfacuuibwcjplhtkspodqby/Build/Intermediates.noindex/ArchiveIntermediates/Brandgility/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Yoga.build/Objects-normal/armv7/event.o /Users/distiller/mobile-web-app/node_modules/react-native/ReactCommon/yoga/yoga/event/event.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
[12:21:14]: ▸ (1 failure)
[12:21:14]: Exit status: 65
[12:21:14]: 

On Xcode 10.2.1 everything works fine.

System:

System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
    Memory: 105.80 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v12.4.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 24, 25, 26, 27, 28
      Build Tools: 23.0.1, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.3
      System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: 2.9.0 => 2.9.0 
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.2 => 0.61.2 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Could you please check this issue? For our project this is a big production blocker.
Thank you.

# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate Impossible to assemble application release iOS build with latest Xcode 11.0 or 11.1 based on React Native v0.61.2. I'm using CircleCI with Xcode 11.0 or 11.1 images. During assembling release build I see Compiling Yoga.cpp error: ```bash [12:21:14]: ▸ Compiling event.cpp [12:21:14]: ▸ Compiling Yoga.cpp [12:21:14]: ▸ The following build commands failed: [12:21:14]: ▸ CompileC /Users/distiller/Library/Developer/Xcode/DerivedData/Brandgility-ccncokfacuuibwcjplhtkspodqby/Build/Intermediates.noindex/ArchiveIntermediates/Brandgility/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Yoga.build/Objects-normal/armv7/event.o /Users/distiller/mobile-web-app/node_modules/react-native/ReactCommon/yoga/yoga/event/event.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler [12:21:14]: ▸ (1 failure) [12:21:14]: Exit status: 65 [12:21:14]: ``` On Xcode 10.2.1 everything works fine. System: ```bash System: OS: macOS 10.14.6 CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz Memory: 105.80 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node Yarn: 1.19.0 - /usr/local/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v12.4.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 23.0.1, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.3 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5791312 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: @react-native-community/cli: 2.9.0 => 2.9.0 react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-cli: 2.0.1 ``` Could you please check this issue? For our project this is a big production blocker. Thank you.
oleksandr-dziuban commented 2019-10-29 15:45:02 -07:00 (Migrated from github.com)

I have finally found the reason. I had Pods folder under the git to speed up CI builds.
I have deleted it and added Pods to gitignore. Also reinstalled all pods, deleted whole pods cache.
Now on CI I do pod install before iOS app build.
Everything is cool, closing the issue.

I have finally found the reason. I had Pods folder under the git to speed up CI builds. I have deleted it and added Pods to gitignore. Also reinstalled all pods, deleted whole pods cache. Now on CI I do `pod install` before iOS app build. Everything is cool, closing the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#937
No description provided.