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

Not able to compile on M1 Chip/for IOS install after expo eject #16

Open
aaryavrate opened this issue Dec 19, 2021 · 0 comments
Open

Not able to compile on M1 Chip/for IOS install after expo eject #16

aaryavrate opened this issue Dec 19, 2021 · 0 comments

Comments

@aaryavrate
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [yes ] I am running the latest version
  • [ yes] I checked the documentation and found no answer
  • [ yes] I checked to make sure that this issue has not already been filed
  • [ yes] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Installation should have been easy and out of the box given a maintained code for license.

Current Behavior

When trying to install into new macbook, it complains of too many missing dependencies.

What is the current behavior?

ExpoModulesCore Group
Lexical or Preprocessor Issue Group
/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModuleUtils.h:13:10: 'folly/Optional.h' file not found

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

yarn
expo eject
npx pod-install
Build in Xcode

Context

Building the repo on M1 Macbook with Node v16 LTS
Mac OS 12.1

Failure Logs

Showing Recent Errors Only

Build target ExpoModulesCore of project Pods with configuration Debug

CompileC /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/Objects-normal/x86_64/JSIConversions.o /Users/prabhatsingh/mirror/node_modules/expo-modules-core/ios/JSI/JSIConversions.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'ExpoModulesCore' from project 'Pods')
cd /Users/prabhatsingh/mirror/ios/Pods
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-ios12.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++14 -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=ExpoModulesCore -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Index/DataStore -iquote /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/ExpoModulesCore-generated-files.hmap -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/ExpoModulesCore-own-target-headers.hmap -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/ExpoModulesCore-all-non-framework-target-headers.hmap -ivfsoverlay /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/all-product-headers.yaml -iquote /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/ExpoModulesCore-project-headers.hmap -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/ExpoModulesCore/include -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Private -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Private/ExpoModulesCore -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/DoubleConversion -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/ExpoModulesCore -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-Core -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-callinvoker -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-cxxreact -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-jsi -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React-jsinspector -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/ReactCommon -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/Yoga -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/glog -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/DerivedSources-normal/x86_64 -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/DerivedSources/x86_64 -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/DerivedSources -F/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/ExpoModulesCore -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/React/React-Core.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/ReactCommon/ReactCommon.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/cxxreact/React-cxxreact.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/folly/Folly.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/jsi/React-jsi.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/jsinspector/React-jsinspector.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/jsireact/React-jsiexecutor.modulemap -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/yoga/Yoga.modulemap -include /Users/prabhatsingh/mirror/ios/Pods/Target\ Support\ Files/ExpoModulesCore/ExpoModulesCore-prefix.pch -MMD -MT dependencies -MF /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/Objects-normal/x86_64/JSIConversions.d --serialize-diagnostics /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/Objects-normal/x86_64/JSIConversions.dia -c /Users/prabhatsingh/mirror/node_modules/expo-modules-core/ios/JSI/JSIConversions.mm -o /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ExpoModulesCore.build/Objects-normal/x86_64/JSIConversions.o

In file included from /Users/prabhatsingh/mirror/node_modules/expo-modules-core/ios/JSI/JSIConversions.mm:3:
/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModuleUtils.h:13:10: fatal error: 'folly/Optional.h' file not found
#include <folly/Optional.h>
^~~~~~~~~~~~~~~~~~
1 error generated.

Build target Stripe of project Pods with configuration Debug

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Stripe' from project 'Pods')
cd /Users/prabhatsingh/mirror/ios/Pods
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Stripe -Onone -enable-batch-mode -enforce-exclusivity=checked @/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Objects-normal/x86_64/Stripe.SwiftFileList -DDEBUG -D COCOAPODS -Xcc -fmodule-map-file=/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/StripeCore/StripeCore.modulemap -Xcc -fmodule-map-file=/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/StripeUICore/StripeUICore.modulemap -import-underlying-module -Xcc -fmodule-map-file=/Users/prabhatsingh/mirror/ios/Pods/Headers/Public/Stripe/Stripe.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -target x86_64-apple-ios11.0-simulator -g -module-cache-path /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Index/DataStore -swift-version 5 -I /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/Stripe -I /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/StripeCore -I /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/StripeUICore -F /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/Stripe -c -j8 -output-file-map /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Objects-normal/x86_64/Stripe-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Objects-normal/x86_64/Stripe.swiftmodule -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Stripe-generated-files.hmap -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Stripe-own-target-headers.hmap -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Stripe-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Stripe-project-headers.hmap -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Products/Debug-iphonesimulator/Stripe/include -Xcc -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Private -Xcc -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Private/Stripe -Xcc -I/Users/prabhatsingh/mirror/ios/Pods/Headers/Public -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/DerivedSources-normal/x86_64 -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/DerivedSources/x86_64 -Xcc -I/Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/prabhatsingh/Library/Developer/Xcode/DerivedData/mirrorhellodrcom-hhsnjfwejyphcvavkwwceasjcnjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Stripe.build/Objects-normal/x86_64/Stripe-Swift.h -working-directory /Users/prabhatsingh/mirror/ios/Pods

Command CompileSwiftSources failed with a nonzero exit code

Build failed 12/19/21, 1:02 AM 72.1 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant