iOS won't build in fresh typescript template project?
See original GitHub issueI’m creating a new project using a TypeScript template
npx react-native init MyApp --template react-native-template-typescript
Description
when i want to run the app in iOS i got these errors
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'OpenSSL-Universal' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'CocoaAsyncSocket' from project 'Pods')
warning: no rule to process file '/Volumes/MyApp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Volumes/MyApp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Volumes/MyApp/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
Ld /Users/Dev/Library/Developer/Xcode/DerivedData/MyApp-dgilcklgcpooacebeomueapxefkf/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp normal x86_64
(1 failure)
React Native version:
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
Memory: 19.87 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 14.5.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 11.3.1/11C505 - /usr/bin/xcodebuild
Languages:
Java: 14.0.1 - /usr/bin/javac
Python: 2.7.10 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
npx react-native init MyApp --template react-native-template-typescript
- npx react-native run-ios
Expected Results
work project well in iOS!
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
Failed to build iOS project. We ran "xcodebuild" command but ...
First of all if you have installed react-native-cli older version globally on your computer, Please uninstall it because we have no need it....
Read more >Migrating React Native to Typescript? This simple mistake can ...
When I came back to solve the problem, the first thing I decided to do was check to see how my project differed...
Read more >Creating your first build - Expo Documentation
Learn how to create a build for your app with EAS Build. ... A React Native Android and/or iOS project that you want...
Read more >Create React Native TypeScript app - JavaScript in Plain English
Since we're building a project from scratch, we might as well start with the ... default iOS app from react-native-template-typescript.
Read more >A Typescript Project Template based on Clean Architecture
Of course it depends on the scale of your project, but what if you're building a project that will be available as both...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also on Xcode 12.4 with error as below. Please reopen.
happening on Xcode 12.4 for me
Got rid of the
IPHONEOS_DEPLOYMENT_TARGET
error by setting it for all pods inPodfile
. Still getting architecture ‘arm64’ related errors…