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: libRNDeviceInfo.a

See original GitHub issue
Version v0.21.1
Affected OS iOS
OS Version RN 0.55

Current behavior

When i try to build or archive my project in xCode, i get the following:

clang: error: no such file or directory: '/Users/creative/Library/Developer/Xcode/DerivedData/PROJECT_NAME-bafoidfjyrtxuchdgsrpxhifyibq/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT_NAME/BuildProductsPath/Release-iphoneos/libRNDeviceInfo.a'

However, the project is compiling successfully using react-native run-ios

Expected behavior

SHOULD BUILD SUCCESSFULLY

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:22

github_iconTop GitHub Comments

9reactions
cbrwizardcommented, Jan 21, 2019

Removing the reference to RNDeviceInfo.xcodeproj and re-adding it in Xcode helped me.

6reactions
OdaDaisukecommented, Mar 21, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS new Extension: clang: error: no such file or directory
Any idea what is happening? clang: error: no such file or directory: '_NSExtensionMain' Command Ld failed with a nonzero exit code.
Read more >
Ios Clang Error No File Or Directory - ADocLib
Clang: error: no such file or directory: libRNDeviceInfo.a Issue #446 Xcode 6 linker error Undefined symbols for architecture armv7. I get the following...
Read more >
Clang: error: no such file or directory: 'MobileRTC' - iOS
Getting below error while Running Zoom SDK [Swift Demo]. clang: error: no such file or directory: 'MobileRTC' Command Ld failed with a nonzero ......
Read more >
Missing files.... Apparently. | Apple Developer Forums
clang : error: no such file or directory: '__entitlements'. I've searched through my project and cannot find any mention of CoreTelephony or __entitlements....
Read more >
clang: error: no such file or directory: '_REENTRANT'
The problem was solved by implementing the code: brew install -s ncview. Using homebrew , that installed the whole ncview package ...
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