expo / expo

An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
https://docs.expo.dev
MIT License
34.27k stars 5.47k forks source link

Eas Build Failed for ios with error : folly/dynamic.h' file not found #13542

Closed satyamdorville closed 2 years ago

satyamdorville commented 3 years ago

Hi Community !

Summary

Expected behavior : Eas build success

Dark reality : Run fastlane step output

Creating Gymfile
Gymfile created
[stderr] RubyZip 3.0 is coming!
[stderr] **********************
[stderr] 
[stderr] The public API of some Rubyzip classes has been modernized to use named
[stderr] parameters for optional arguments. Please check your usage of the
[stderr] following classes:
[stderr]  * `Zip::File`
[stderr]  * `Zip::Entry`
[stderr]  * `Zip::InputStream`
[stderr]  * `Zip::OutputStream`
[stderr] 
[stderr] Please ensure that your Gemfiles and .gemspecs are suitably restrictive
[stderr] to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
[stderr] See https://github.com/rubyzip/rubyzip for details. The Changelog also
[stderr] lists other enhancements and bugfixes that have been implemented since
[stderr] version 2.3.0.
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                  Detected Values from './Gymfile'                                                                   |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true                                                                                                                                        |
| clean                 | false                                                                                                                                       |
| scheme                | TableDiscover                                                                                                                               |
| configuration         | Release                                                                                                                                     |
| export_options        |                                                                                                                                             |
| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-43b724ef-95a0-490d-ad39-798b5cd4d0d7.keychain" |
| disable_xcpretty      | true                                                                                                                                        |
| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |
| output_directory      | ./build                                                                                                                                     |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./TableDiscover.xcworkspace -scheme TableDiscover -configuration Release
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./TableDiscover.xcworkspace -scheme TableDiscover -configuration Release
▸ User defaults from command line:
▸     IDEPackageSupportUseBuiltinSCM = YES
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./TableDiscover.xcworkspace -scheme TableDiscover -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
Detected provisioning profile mapping: {:"com.satyamdorville.discover"=>"3fc645ec-8cbc-46d4-b3a8-486f05e2b8f0"}
+-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                            Summary for gym 2.185.1                                                                                            |
+-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                                       | ./TableDiscover.xcworkspace                                                                                                                 |
| scheme                                                          | TableDiscover                                                                                                                               |
| clean                                                           | false                                                                                                                                       |
| output_directory                                                | ./build                                                                                                                                     |
| output_name                                                     | discover                                                                                                                                    |
| configuration                                                   | Release                                                                                                                                     |
| silent                                                          | false                                                                                                                                       |
| skip_package_ipa                                                | false                                                                                                                                       |
| skip_package_pkg                                                | false                                                                                                                                       |
| export_options.method                                           | app-store                                                                                                                                   |
| export_options.provisioningProfiles.com.satyamdorville.discover | 3fc645ec-8cbc-46d4-b3a8-486f05e2b8f0                                                                                                        |
| export_xcargs                                                   | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-43b724ef-95a0-490d-ad39-798b5cd4d0d7.keychain" |
| build_path                                                      | /Users/expo/Library/Developer/Xcode/Archives/2021-07-08                                                                                     |
| result_bundle                                                   | false                                                                                                                                       |
| buildlog_path                                                   | /Users/expo/workingdir/logs                                                                                                                 |
| destination                                                     | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                                           | true                                                                                                                                        |
| disable_xcpretty                                                | true                                                                                                                                        |
| skip_profile_detection                                          | false                                                                                                                                       |
| skip_package_dependencies_resolution                            | false                                                                                                                                       |
| disable_package_automatic_updates                               | false                                                                                                                                       |
| use_system_scm                                                  | false                                                                                                                                       |
| xcode_path                                                      | /Applications/Xcode.app                                                                                                                     |
+-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./TableDiscover.xcworkspace -scheme TableDiscover -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2021-07-08/discover\ 2021-07-08\ 02.44.41.xcarchive archive | tee /Users/expo/workingdir/logs/discover-TableDiscover.log > /dev/null
› Executing @unimodules/core Pods/UMCore » [CP] Copy XCFrameworks
› Compiling react-native Pods/Yoga » log.cpp
› Compiling react-native Pods/Yoga » experiments.cpp
› Compiling react-native Pods/Yoga » event.cpp
› Compiling react-native Pods/Yoga » Yoga.cpp
› Compiling react-native Pods/Yoga » Yoga-dummy.m
› Compiling react-native Pods/Yoga » YGValue.cpp
› Compiling react-native Pods/Yoga » YGStyle.cpp
› Compiling react-native Pods/Yoga » YGNode.cpp
› Compiling react-native Pods/Yoga » YGNodePrint.cpp
› Compiling react-native Pods/Yoga » YGEnums.cpp
› Compiling react-native Pods/Yoga » YGConfig.cpp
› Compiling react-native Pods/Yoga » Utils.cpp
› Compiling unimodules-app-loader Pods/UMAppLoader » UMAppLoaderProvider.m
› Compiling unimodules-app-loader Pods/UMAppLoader » UMAppLoader-dummy.m
› Preparing Pods/Stripe-Stripe3DS2 » ResourceBundle-Stripe3DS2-Stripe-Info.plist
› Preparing Pods/Stripe-Stripe » ResourceBundle-Stripe-Stripe-Info.plist
› Copying ios/Pods/Stripe/Stripe/Resources/au_becs_bsb.json ➜ Users/expo/Library/Developer/Xcode/DerivedData/TableDiscover-cxmyhmtlknhazugkisymzaqmewlf/Build/Intermediates.noindex/ArchiveIntermediates/TableDiscover/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Stripe.bundle/au_becs_bsb.json
› Compiling react-native Pods/React-jsinspector » React-jsinspector-dummy.m
› Compiling react-native Pods/React-jsinspector » InspectorInterfaces.cpp
› Compiling react-native Pods/React-jsi » jsilib-windows.cpp
› Compiling react-native Pods/React-jsi » jsilib-posix.cpp
› Compiling react-native Pods/React-jsi » jsi.cpp
› Compiling react-native Pods/React-jsi » React-jsi-dummy.m
› Compiling react-native Pods/React-jsi » JSIDynamic.cpp

❌  (node_modules/react-native/ReactCommon/jsi/jsi/JSIDynamic.h:10:10)

   8 | #pragma once
   9 | 
> 10 | #include <folly/dynamic.h>
     |          ^ 'folly/dynamic.h' file not found
  11 | #include <jsi/jsi.h>
  12 | 
  13 | namespace facebook {
› Packaging react-native Pods/Yoga » libYoga.a
› Packaging react-native Pods/React-jsinspector » libReact-jsinspector.a
› Compiling react-native Pods/React-jsi » JSCRuntime.cpp
› Executing [CP] Copy XCFrameworks
› Executing expo-file-system Pods/EXFileSystem » [CP] Copy XCFrameworks
› Preparing react-native Pods/React-Core-AccessibilityResources » ResourceBundle-AccessibilityResources-React-Core-Info.plist
› Copying node_modules/react-native/React/AccessibilityResources/en.lproj ➜ Users/expo/Library/Developer/Xcode/DerivedData/TableDiscover-cxmyhmtlknhazugkisymzaqmewlf/Build/Intermediates.noindex/ArchiveIntermediates/TableDiscover/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle/en.lproj
› Compiling unimodules-permissions-interface Pods/UMPermissionsInterface » UMPermissionsMethodsDelegate.m
› Compiling unimodules-permissions-interface Pods/UMPermissionsInterface » UMPermissionsInterface-dummy.m
› Packaging unimodules-app-loader Pods/UMAppLoader » libUMAppLoader.a
› Creating  Pods/Stripe-Stripe3DS2 » Stripe3DS2.bundle
› Creating  Pods/Stripe-Stripe » Stripe.bundle
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸   CompileC /Users/expo/Library/Developer/Xcode/DerivedData/TableDiscover-cxmyhmtlknhazugkisymzaqmewlf/Build/Intermediates.noindex/ArchiveIntermediates/TableDiscover/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-jsi.build/Objects-normal/arm64/JSIDynamic.o /Users/expo/workingdir/build/node_modules/react-native/ReactCommon/jsi/jsi/JSIDynamic.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
    CompileC /Users/expo/Library/Developer/Xcode/DerivedData/TableDiscover-cxmyhmtlknhazugkisymzaqmewlf/Build/Intermediates.noindex/ArchiveIntermediates/TableDiscover/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-jsi.build/Objects-normal/arm64/JSIDynamic.o /Users/expo/workingdir/build/node_modules/react-native/ReactCommon/jsi/jsi/JSIDynamic.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS14.5.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

41

Environment

Expo CLI 4.7.3 environment info: System: OS: macOS 10.15.6 Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.14.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.8.4 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 IDEs: Android Studio: 4.2 AI-202.7660.26.42.7351085 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ^41.0.0 => 41.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-web: ~0.13.12 => 0.13.18 react-navigation: ^4.4.4 => 4.4.4 npmGlobalPackages: expo-cli: 4.7.3 Expo Workflow: bare

Reproducible demo or steps to reproduce from a blank project

My package json :

{
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "test": "jest --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^12.0.0",
    "@react-native-async-storage/async-storage": "^1.13.0",
    "@react-native-community/cli-platform-ios": "^5.0.1-alpha.2",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-picker/picker": "^1.16.1",
    "@react-navigation/bottom-tabs": "5.11.2",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "~5.12.8",
    "@reduxjs/toolkit": "^1.5.1",
    "@sentry/react-native": "^2.4.3",
    "@stripe/stripe-react-native": "^0.1.2",
    "@types/react-native-snap-carousel": "^3.8.3",
    "email-validator": "^2.0.4",
    "expo": "^41.0.0",
    "expo-asset": "~8.3.1",
    "expo-constants": "~10.1.3",
    "expo-font": "^9.1.0",
    "expo-linking": "^2.2.3",
    "expo-location": "^12.0.4",
    "expo-notifications": "^0.11.6",
    "expo-permissions": "^12.0.1",
    "expo-secure-store": "^10.1.0",
    "expo-splash-screen": "~0.10.2",
    "expo-status-bar": "^1.0.4",
    "expo-updates": "~0.5.4",
    "expo-web-browser": "~9.1.0",
    "moment-timezone": "^0.5.33",
    "parse": "^3.1.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-animatable": "^1.3.3",
    "react-native-appearance": "~0.3.3",
    "react-native-dropdown-picker": "^5.1.21",
    "react-native-elements": "^3.3.2",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-modal": "^11.10.0",
    "react-native-numeric-input": "^1.9.0",
    "react-native-pager-view": "5.0.12",
    "react-native-paper": "^4.8.1",
    "react-native-reanimated": "^2.1.0",
    "react-native-render-html": "^5.1.0",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "^3.3.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-stripe-checkout-webview": "0.0.13",
    "react-native-tab-view": "^3.0.1",
    "react-native-ui-lib": "^5.22.0",
    "react-native-unimodules": "~0.13.3",
    "react-native-vector-icons": "^8.1.0",
    "react-native-web": "~0.13.12",
    "react-native-webview": "^11.2.3",
    "react-navigation": "^4.4.4",
    "react-redux": "^7.2.3",
    "react-ridge-state": "^4.2.1",
    "redux": "^4.0.5",
    "sentry-expo": "^3.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.9.6",
    "@types/lodash": "^4.14.168",
    "@types/react": "~16.9.35",
    "@types/react-native": "~0.63.2",
    "@types/react-redux": "^7.1.16",
    "jest-expo": "^41.0.0",
    "redux-tools": "^3.2.0",
    "typescript": "~4.0.0"
  },
  "private": true,
  "name": "discover",
  "version": "1.0.0"
}

/ios Podfile :

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'TableDiscover' do
  use_unimodules!
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  # Uncomment to opt-in to using Flipper
  #
  # if !ENV['CI']
  #   use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1')
  #   post_install do |installer|
  #     flipper_post_install(installer)
  #   end
  # end
end

Thanks a lot for help provided !!! Ive been strugling with this !

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.