Skip to content

Builds in Xcode but not using command line #18793

Closed

Description

@rstims

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 6.12.3
Yarn: 1.5.1
npm: 3.10.10
Watchman: Not Found
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.54.2 => 0.54.2

Steps to Reproduce

react-native run-ios

Expected Behavior

Expected to build in both Xcode and using command line

Actual Behavior

Builds in Xcode but doesn't build using command line with errors below

While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:
In file included from <module-includes>:29:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/string.h:180:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/strings.h:92:
In file included from ../node_modules/react-native/third-party/folly-2016.09.26.00/folly/string.h:20:
In file included from ../node_modules/react-native/third-party/boost_1_63_0/boost/tr1/tr1/exception:23:
In file included from ../node_modules/react-native/third-party/boost_1_63_0/boost/tr1/detail/config_all.hpp:43:
../node_modules/react-native/third-party/boost_1_63_0/boost/compatibility/cpp_c_headers/cstddef:10:1: error: unknown type name 'namespace'
namespace std {
^
../node_modules/react-native/third-party/boost_1_63_0/boost/compatibility/cpp_c_headers/cstddef:10:14: error: expected ';' after top level declarator
namespace std {
             ^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:
In file included from <module-includes>:29:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/string.h:180:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/strings.h:92:
In file included from ../node_modules/react-native/third-party/folly-2016.09.26.00/folly/string.h:20:
In file included from ../node_modules/react-native/third-party/boost_1_63_0/boost/tr1/tr1/exception:23:
In file included from ../node_modules/react-native/third-party/boost_1_63_0/boost/tr1/detail/config_all.hpp:158:
../node_modules/react-native/third-party/boost_1_63_0/boost/tr1/tr1/utility:21:20: fatal error: 'utility' file not found
#     include_next <utility>
                   ^~~~~~~~~
3 errors generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_object' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/dispatch/dispatch.h:59:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
3 errors generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/./objc-exception.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/objc.h:31:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>      // for __DARWIN_NULL
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'Security' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
6 errors generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreGraphics' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin'
#include <stdbool.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include <Foundation/Foundation.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'Co
reImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: fatal error: could not build module 'Darwin'
#include <TargetConditionals.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'ImageIO' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'IOSurface' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h:16:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10: fatal error: could not build module 'Darwin'
#include <sys/cdefs.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11:
While building module 'Metal' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h:18:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9: fatal error: could not build module 'Darwin'
#import <Availability.h>
 ~~~~~~~^
1 error generated.
5 errors generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'CoreText' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:
While building module 'FileProvider' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:14:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^
1 error generated.
20 errors generated.
/Users/ryanstimmler/Code/Iggbo-Apps/workpath/ios/workpath/main.m:8:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
 ~~~~~~~^
21 errors generated.


** BUILD FAILED **


The following commands produced analyzer issues:
        Analyze Base/RCTModuleMethod.mm normal x86_64

(1 command with analyzer issues)

The following build commands failed:
        CompileC build/Build/Intermediates.noindex/workpath.build/Debug-iphonesimulator/workpath.build/Objects-normal/x86_64/main.o workpath/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/workpath.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/workpath.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Activity

  1. react-native-bot commented on Apr 10, 2018

    @react-native-bot
    Collaborator

    Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.55?

    Thank you for your contributions.

  2. nopedev commented on Apr 11, 2018

    @nopedev

    same here
    using RN 0.55.2

  3. walshie4 commented on Apr 12, 2018

    @walshie4

    Possible dupe of #14423

  4. DarkSector commented on Apr 13, 2018

    @DarkSector

    Same here. Can't even create a new empty test project with react-native-cli. It's sad that official docs recommend using Expo which has so many disadvantages.

    RN: 0.55.2
    Xcode: 8.2.1
    Mac OS: 10.11.6
    npm: 5.3.0
    node: 8.5.0
    yarn: 1.5.1
    react-native-cli: 2.0.1

    Steps to reproduce

    react-native init testapp
    cd testapp
    react-native run-ios
    

    Trimmed output

    In file included from /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTShadowView+Internal.m:8:
    In file included from /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTShadowView+Layout.h:10:
    In file included from /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTShadowView.h:11:
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:30:43: error: expected ';' after top level declarator
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                                              ^
                                              ;
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:30:44: warning: declaration does not declare anything [-Wmissing-declarations]
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                                               ^~~~~~~~~~~~~~~~
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:37:43: error: expected ';' after top level declarator
    typedef struct CG_BOXABLE RCTLayoutContext RCTLayoutContext;
                                              ^
                                              ;
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:37:44: warning: declaration does not declare anything [-Wmissing-declarations]
    typedef struct CG_BOXABLE RCTLayoutContext RCTLayoutContext;
                                               ^~~~~~~~~~~~~~~~
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:39:74: error: variable has incomplete type 'RCTLayoutMetrics' (aka 'struct CG_BOXABLE')
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                             ^
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:30:16: note: forward declaration of 'struct CG_BOXABLE'
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                   ^
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:39:94: error: variable has incomplete type 'RCTLayoutMetrics' (aka 'struct CG_BOXABLE')
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                                                 ^
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:30:16: note: forward declaration of 'struct CG_BOXABLE'
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                   ^
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:39:74: warning: unused parameter 'a' [-Wunused-parameter]
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                             ^
    /Users/DarkSector/Code/udemy/testappnew/node_modules/react-native/React/Views/RCTLayout.h:39:94: warning: unused parameter 'b' [-Wunused-parameter]
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                                                 ^
    4 warnings and 4 errors generated.
    

    So sick of it.

  5. osmelnp87 commented on Apr 16, 2018

    @osmelnp87

    I have the same issue.
    I'm frustrated, I've been looking for a solution for 4 days and I can not find it.

  6. evilDave commented on Apr 18, 2018

    @evilDave

    I am getting this issue too. With RB 0.55.3. I get the same error in xcode though... (in the command line I have a different error "Print: Entry, ":CFBundleIdentifier", Does Not Exist" which does sound like the other linked issue, not fixed by removing the rncache though...

  7. chris-feist commented on Apr 18, 2018

    @chris-feist

    @DarkSector Try upgrading XCode to 9.2. I was experiencing the same issue using XCode 8

  8. DarkSector commented on Apr 18, 2018

    @DarkSector

    @f3ist I am going to have to force upgrade it. Will try and update.

    EDIT: Can't update to new Xcode without updating OS. I am just not prepared to recreate my 20 development environments for one framework.

  9. dongxie commented on Apr 19, 2018

    @dongxie

    any one solute this?
    today I upgrade the Xcode to 9.3(to test ios 11.3,but the Xcode 9.3 need high sirerra ,so I upgrade the Mac OS), open the project before( Xcode 9.2), display same errors.

  10. uusa35 commented on Apr 19, 2018

    @uusa35

    any news i had the same issue
    same issue my xcode is 9.3

  11. 24HOURSMEDIA commented on Apr 22, 2018

    @24HOURSMEDIA

    removing the .iOS build folder (./ios/build) completely and then running again worked for me
    (Xcode 9.3 / RN 0.54.4)

  12. ElChapitan commented on Apr 25, 2018

    @ElChapitan

    I took a quick look into it, and I was able to figure out that the change was introduced here:
    f91f7d9

    By changing some versions of react-native in my package.json, it looks like the official build broke in 0.54 (it works in 0.53). So, if you're looking for a workaround (@DarkSector, I'm looking at you), this might be it.

  13. DarkSector commented on Apr 25, 2018

    @DarkSector

    @ElChapitan So technically a fresh install of 0.53 should build if I am understanding this correctly?

  14. DarkSector commented on Apr 26, 2018

    @DarkSector

    It doesn't

    In file included from /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTShadowView+Internal.m:8:
    In file included from /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTShadowView+Layout.h:10:
    In file included from /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTShadowView.h:11:
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:30:43: error: expected ';' after top level declarator
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                                              ^
                                              ;
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:30:44: warning: declaration does not declare anything [-Wmissing-declarations]
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                                               ^~~~~~~~~~~~~~~~
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:37:43: error: expected ';' after top level declarator
    typedef struct CG_BOXABLE RCTLayoutContext RCTLayoutContext;
                                              ^
                                              ;
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:37:44: warning: declaration does not declare anything [-Wmissing-declarations]
    typedef struct CG_BOXABLE RCTLayoutContext RCTLayoutContext;
                                               ^~~~~~~~~~~~~~~~
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:39:74: error: variable has incomplete type 'RCTLayoutMetrics' (aka 'struct CG_BOXABLE')
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                             ^
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:30:16: note: forward declaration of 'struct CG_BOXABLE'
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                   ^
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:39:94: error: variable has incomplete type 'RCTLayoutMetrics' (aka 'struct CG_BOXABLE')
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                                                 ^
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:30:16: note: forward declaration of 'struct CG_BOXABLE'
    typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics;
                   ^
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:39:74: warning: unused parameter 'a' [-Wunused-parameter]
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                             ^
    /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Views/RCTLayout.h:39:94: warning: unused parameter 'b' [-Wunused-parameter]
    static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b)
                                                                                                 ^
    4 warnings and 4 errors generated.
    
    CompileC /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTStatusBarManager.o Modules/RCTStatusBarManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        cd /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React
        export LANG=en_US.US-ASCII
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/DarkSector/.yarn/bin:/Users/DarkSector/.config/yarn/global/node_modules/.bin:/Users/DarkSector/.cargo/bin:/Users/DarkSector/.nvm/versions/node/v8.5.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/CrossPack-AVR/bin:/Library/TeX/texbin:/Users/DarkSector/Library/Android/sdk/tools:/Users/DarkSector/Library/Android/sdk/platform-tools"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/DarkSector/Code/udemy/RN53/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/DarkSector/Code/udemy/RN53/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTStatusBarManager.d --serialize-diagnostics /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTStatusBarManager.dia -c /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Modules/RCTStatusBarManager.m -o /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTStatusBarManager.o
    
    
    CompileC /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSourceCode.o Modules/RCTSourceCode.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        cd /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React
        export LANG=en_US.US-ASCII
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/DarkSector/.yarn/bin:/Users/DarkSector/.config/yarn/global/node_modules/.bin:/Users/DarkSector/.cargo/bin:/Users/DarkSector/.nvm/versions/node/v8.5.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/CrossPack-AVR/bin:/Library/TeX/texbin:/Users/DarkSector/Library/Android/sdk/tools:/Users/DarkSector/Library/Android/sdk/platform-tools"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/DarkSector/Code/udemy/RN53/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/DarkSector/Code/udemy/RN53/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/DarkSector/Code/udemy/RN53/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSourceCode.d --serialize-diagnostics /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSourceCode.dia -c /Users/DarkSector/Code/udemy/RN53/node_modules/react-native/React/Modules/RCTSourceCode.m -o /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSourceCode.o
    
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    
    	CompileC /Users/DarkSector/Code/udemy/RN53/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)
    
    Installing build/Build/Products/Debug-iphonesimulator/RN53.app
    An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
    Failed to install the requested application
    An application bundle was not found at the provided path.
    Provide a valid path to the desired application bundle.
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    
    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RN53.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    
  15. 19 remaining items

  16. delyar commented on Sep 15, 2018

    @delyar

    deleting the ios/build folder and running again worked for me

  17. hramos commented on Sep 24, 2018

    @hramos
    Contributor

    It looks like this is one of those errors where clearing out your build artifacts, and re-building, seems to fix it. Closing, but feel free to open a new issue with more details if you're still running into this.

  18. thomGeenen commented on Oct 18, 2018

    @thomGeenen

    Experiencing this same issue on 0.56.0.

    I was able to resolve it by following @24HOURSMEDIA's advice and deleting the ios/build folder.

    It worked for me

  19. eamonwhiter73 commented on Oct 24, 2018

    @eamonwhiter73

    I am having this problem, I have tried option + clean (build folder) as well as, deleting the ios/build folder, and I have also tried doing both together (first option + clean, then deleting ios/build). It builds when I build it in Xcode, it doesn't build when I use react-native run-ios --device.

    It gets caught on Running 2 of 5 custom shell scripts phase in Xcode, sometimes it makes it past after a while.

    Environment:

    React Native Environment Info:
        System:
          OS: macOS 10.14
          CPU: x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
          Memory: 36.40 MB / 8.00 GB
          Shell: 3.2.57 - /bin/bash
        Binaries:
          Node: 10.8.0 - ~/.nvm/versions/node/v10.8.0/bin/node
          Yarn: 1.9.4 - ~/.nvm/versions/node/v10.8.0/bin/yarn
          npm: 6.3.0 - ~/.nvm/versions/node/v10.8.0/bin/npm
          Watchman: 4.7.0 - /usr/local/bin/watchman
        SDKs:
          iOS SDK:
            Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
          Android SDK:
            Build Tools: 26.0.1, 27.0.3
            API Levels: 14, 15, 16, 21, 24, 25, 26, 27
        IDEs:
          Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
        npmPackages:
          react: ^16.3.2 => 16.4.1 
          react-native: ^0.57.3 => 0.57.3 
        npmGlobalPackages:
          react-native-git-upgrade: 0.2.7
          react-native-rename: 2.2.2
    
    In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
    ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
    #include <chrono>
             ^~~~~~~~
    1 error generated.
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    In file included from <module-includes>:1:
    In file included from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
    In file included from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin'
    #include <stdbool.h>
     ~~~~~~~~^
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreFoundation' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
    In file included from <module-includes>:1:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
    #include <sys/types.h>
     ~~~~~~~~^
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreFoundation' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
    While building module 'Dispatch' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
    In file included from <module-includes>:1:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
    #include <Availability.h>
     ~~~~~~~~^
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreFoundation' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
    While building module 'Dispatch' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
    While building module 'os_object' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:59:
    In file included from <module-includes>:1:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin'
    #include <Availability.h>
     ~~~~~~~~^
    1 error generated.
    2 errors generated.
    3 errors generated.
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreGraphics' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:17:
    In file included from <module-includes>:1:
    In file included from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: fatal error: could not build module 'Darwin'
    #include <stdbool.h>
     ~~~~~~~~^
    1 error generated.
    
  20. eamonwhiter73 commented on Oct 24, 2018

    @eamonwhiter73

    I ran npm audit fix, also I installed @babel/core7.0.0 and react 16.6, I have the errors narrowed down to this now:

    In file included from ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:
    ../../../ios/Pods/Headers/Public/gRPC-C++/grpcpp/impl/codegen/time.h:22:10: fatal error: 'chrono' file not found
    #include <chrono>
             ^~~~~~~~
    1 error generated.
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    In file included from <module-includes>:1:
    In file included from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
    In file included from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin'
    #include <stdbool.h>
     ~~~~~~~~^
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreFoundation' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
    In file included from <module-includes>:1:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin'
    #include <sys/types.h>
     ~~~~~~~~^
    While building module 'QuartzCore' imported from /Volumes/EamonWD/snag/react-native-firebase-starter/ios/build/Build/Products/Debug-iphoneos/include/React/RCTConvert.h:8:
    While building module 'CoreFoundation' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:
    While building module 'Dispatch' imported from /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
    In file included from <module-includes>:1:
    /Volumes/EamonWD/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
    #include <Availability.h>
    
  21. claudiotezzin commented on Nov 14, 2018

    @claudiotezzin

    Anything else about this issue?

  22. MyDinnerIsReady commented on Feb 25, 2019

    @MyDinnerIsReady

    removing the .iOS build folder (./ios/build) completely and then running again worked for me
    (Xcode 9.3 / RN 0.54.4)

    it's work for me! thank you guys

  23. neosavvy commented on Mar 22, 2019

    @neosavvy

    Sadly we see this error on a working project that is then pushed to github and checked out by others. Additionally if I checkout the working project in a new directory I see the same issues. We don't checkin our build folder but we do checkin ios/Pods for now.

    Any other ideas - this seems like something that should work when just checking in a fresh copy of source in a working project.

    Seems this is what causes the failure, but no clue how to resolve. Works in XCode / Android, but not run-ios on CLI

    
    could not build module 'Foundation'
    
    #import <Foundation/Foundation.h>
     ~~~~~~~^
    
    1 error generated
    
    .
    
    9 errors
    
     generated.
    
    While building module 'WebKit' imported from```
    
  24. mhadam commented on May 30, 2019

    @mhadam

    @neosavvy I've gotten the same issue, and it's resolved by building and running the app in XCode after selecting the old build system.

  25. Richie-coder commented on Jul 10, 2019

    @Richie-coder

    I had the same problem. Deleted the ios build folder, then ran react-native run-ios from VSC cmd line and it rebuilt and opened in the simulator with no problems! Thanks for the fix guys.

  26. locked as resolved and limited conversation to collaborators on Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions