question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clang: error: no such file or directory: '..../Debug-appletvsimulator/libRCTAnimation.a'

See original GitHub issue

Environment

React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i5-5257U CPU @ 2.70GHz Memory: 31.25 MB / 8.00 GB Shell: 4.4.23 - /usr/local/bin/bash Binaries: Node: 8.11.2 - /usr/local/bin/node Yarn: 1.7.0 - /usr/local/bin/yarn npm: 6.1.0 - /usr/local/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 Android SDK: Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2 API Levels: 23, 24, 25, 26 IDEs: Android Studio: 3.0 AI-171.4443003 Xcode: 10.0/10A255 - /usr/bin/xcodebuild npmPackages: react: 16.5.0 => 16.5.0 react-native: 0.57.1 => 0.57.1 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7 react-native-rename: 2.2.2

Description

Build for iOS fails with

with clang: error: no such file or directory: '/Users/user/Library/Developer/Xcode/DerivedData/app-eziwvgytfcyckcazzowfryoaspuu/Build/Products/Debug-appletvsimulator/libRCTAnimation.a'

libRCTAntimation seems to be linked correctly to me. I am unsure on why appletvsimulator should be an issue. This is targeted as a iPhone project.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

14reactions
smashed-potatoescommented, Jan 7, 2019

I had the same issue with the ‘Debug-appletvsimulator’ DerivedData path being used - I tracked the issue down to linking the wrong target version of the library I was using. If you run into this, make sure to select “libxxx.a from ‘xxx’…” and not “libxxx.a from ‘xxx_tvOS’…” when adding the link under Build Phase (where xxx is the library).

4reactions
zackifycommented, Oct 21, 2018

https://github.com/facebook/react-native/issues/19573#issuecomment-424346136

This solved it for me: switching to the legacy build system

Read more comments on GitHub >

github_iconTop Results From Across the Web

clang: error: no such file or directory - xcode - Stack Overflow
I tried re-adding files, but have no work. So, I find the .pbxproj file in .xcodeproj, delete rows include the file name, then...
Read more >
Installed Packages - GitHub
Build Failure on macOS [clang: error: no such file or directory: '. ... node-gyp rebuild; -- The C compiler identification is AppleClang ......
Read more >
clang-cl : error : no such file or directory: '/fsanitize=address'
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available,...
Read more >
Clang: Error: No Such File or Directory - Apple Community
I have recently installed Xcode 6.1.1, but currently just want to compile C files. I would like some help with a rather irritating...
Read more >
RStan clang error - The Stan Forums
clang : error: no such file or directory: 'Stats' clang: error: no input files clang: error: no such file or directory: 'Stats' clang:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found