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 run-ios FAILED #18238

Closed
acntwww opened this issue Mar 7, 2018 · 12 comments
Closed

react-native run-ios FAILED #18238

acntwww opened this issue Mar 7, 2018 · 12 comments
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@acntwww
Copy link

acntwww commented Mar 7, 2018

(Describe your issue in detail.)

Environment

Environment:
OS: OS X El Capitan 10.11.6
Node: 8.1.2
Yarn: Not Found
npm: 4.6.1
Watchman: 4.9.1
Xcode: Xcode 8.2.1 Build version 8C1002
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: 0.54.0 => 0.54.0

Expected Behavior

Build Success

Actual Behavior

** BUILD FAILED **

The following build commands failed:
CompileC /Users/NKY/Code/Learn/RN/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.o Views/RCTFont.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler

Steps to Reproduce

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

Build With XCode

/Users/NKY/Code/Learn/RN/AwesomeProject/node_modules/react-native/React/Views/RCTFont.mm:110:39: Unknown type name 'UIFontWeight'; did you mean 'RCTFontWeight'?

@acntwww acntwww changed the title react-native run-ios react-native run-ios FAILED Mar 7, 2018
@Kurom96
Copy link

Kurom96 commented Mar 7, 2018

same issue.

Env:
OS X El Capitan 10.11.6
Xcode 8.2.1 (8C1002)

@kelset kelset added the Platform: iOS iOS applications. label Mar 7, 2018
@cat-cat
Copy link

cat-cat commented Mar 7, 2018

RN 0.54 requires types available since iOS 11. So you have to upgrade your xcode and set minimum iOS version in your app to 11

@msageryd
Copy link

msageryd commented Mar 7, 2018

Does this mean that RN 0.54 cannot be used for iOS targets < 11?
According to stats, iOS < 11 is used by approx 26% users.

@gavin-gmlab
Copy link

Same issue. I need to support all the way down to iOS 8

@hramos
Copy link
Contributor

hramos commented Mar 8, 2018

+1 to @cat-cat. You can use the iOS 11 SDK and still target runtimes all the way back to iOS 8. Please update to Xcode 9 and ensure you are building your app with the latest SDK, or roll back to a React Native version that was released prior to iOS 11's general availability.

@hramos hramos closed this as completed Mar 8, 2018
@msolomon
Copy link

msolomon commented Mar 9, 2018

This means if you're on El Capitan, you'll have to update to High Sierra and install Xcode 9 to use RN 0.54, but you do not have to change the minimum iOS version for your app.

@perry-mitchell
Copy link

you'll have to update to High Sierra

@msolomon Sierra is fine - Xcode 9 runs fine there also.

@zxiest
Copy link

zxiest commented Mar 16, 2018

Alternatively, which react-native version I need to go back to if I do not wish to upgrade?

@haruelrovix
Copy link

@zxiest I got the same error using RN latest version. Changed it to 0.48.4 and the BUILD SUCCEEDED.

@msolomon
Copy link

I believe anything < 0.54 should work, since I was on 0.53.

@haruelrovix
Copy link

@msolomon unfortunately, if still using Xcode 8 (iOS 10.3) as the OP mentioned above, it's still FAILED. RN 0.53.3.

image

@arled
Copy link

arled commented Oct 31, 2018

RN 0.54 requires types available since iOS 11. So you have to upgrade your xcode and set minimum iOS version in your app to 11

This cannot be the issue. I did not help me

@facebook facebook locked as resolved and limited conversation to collaborators Mar 8, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests