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

react-native init awesomeproject / react-native run-ios = build failed #26506

Closed
zerobytes opened this issue Sep 19, 2019 · 1 comment
Closed
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@zerobytes
Copy link

Initing a new project and building. No coding or package adding, just init and build.
Not a single library was "linked" on proejct creation or build, so that is probably the main issue.

#26118 same issue, but this one got closed for missing env

This issue is obviously problematic, once there is no development related and no external library/package involved. I think it's probably a problem with react-native cli though.

  • Did several attempts in different directories with/without sudo on creation.
  • Tried removing node_modules and reinstalling, removing build folders and rebuilding. react-native link does nothing at 0.60.x versions.
  • When opened the project on XCode i saw no library at Library folder, which could be a bug at the new autolinking feature, once there is nothing linked.

it is the raw basic usage from react-native cli and basic react-native run without a single line of code.

React Native version:
react-native info

System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
    Memory: 56.55 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 11.4.0 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    Android SDK:
      API Levels: 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
      Build Tools: 27.0.3, 28.0.3
  IDEs:
    Android Studio: 3.3 AI-182.5107.16.33.5314842
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.5 => 0.60.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-create-library: 3.1.2
    react-native-rename: 2.4.1
    react-native-windows: 0.57.0-rc.0
    react-native: 0.57.8

Steps To Reproduce

  1. react-native init awesomeproject
  2. cd awesomeproject
  3. react-native run-ios

Result

In file included from /Users/zerobyteawesomeproject/ios/awesomeproject/AppDelegate.m:8:
/Users/zerobyte/awesomeproject/ios/awesomeproject/AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~


** BUILD FAILED **


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

Expected behaviour

successful build and app launch

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Sep 19, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels Sep 19, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants