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

example RN app won't build #31845

Closed
n0n3such opened this issue Jul 10, 2021 · 2 comments
Closed

example RN app won't build #31845

n0n3such opened this issue Jul 10, 2021 · 2 comments
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@n0n3such
Copy link

n0n3such commented Jul 10, 2021

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed.
Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html

An IOS application created with react-native init myApp fails to build and run using react-native run-ios.
The following application link errors are reported:

ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftMetal'

React Native version:

Run react-native info in your terminal and copy the results here.

info Fetching system and libraries information...
(node:16100) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 81.86 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.3.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.15.1 - /usr/local/bin/npm
Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 16.0.1 - /Users/wpk/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. react-native init myApp
  2. cd myApp
  3. react-native run-ios
  4. react-native reports build failed with link errors.

Expected Results

Describe what you expected to happen.

The application should build and run in the iPhone simulator

Snack, code example, screenshot, or link to a repository:

Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

@n0n3such n0n3such changed the title example RN app won't build with Xcode 12.5 example RN app won't build Jul 10, 2021
@n0n3such
Copy link
Author

workaround:

From your project directory

sed -i.bak 's/(use_flipper!())/# \1/' ios/Podfile
( cd ios && pod install )
react-native run-ios

@kelset
Copy link
Contributor

kelset commented Aug 4, 2021

looks like this issue is related to being on an M1 machine, please refer to this #31941 and let us know if it works for you

@kelset kelset closed this as completed Aug 4, 2021
@facebook facebook locked as resolved and limited conversation to collaborators Aug 4, 2022
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants