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: '/Users/user/Library/Developer/Xcode/DerivedData/client-xxx/Build/Products/Debug-iphonesimulator/libRNIap.a' Command Ld failed with a nonzero exit code

See original GitHub issue

I haven’t run my project’s code since April (though it’s live on the app store and works) and am trying to get it in a development state again. When building I am running into:

clang: error: no such file or directory: '/Users/user/Library/Developer/Xcode/DerivedData/client-xxx/Build/Products/Debug-iphonesimulator/libRNIap.a' Command Ld failed with a nonzero exit code
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
    "react-native-iap": "2.3.26",

Any advice would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hyochancommented, Nov 8, 2020

@booboothefool This is more like a react-native problem itself. Try to remove ios/build and run build again. This also looks like an old problem which happened in previous react-native.

Maybe this reply from me might help too.

0reactions
booboothefoolcommented, Nov 9, 2020

@hyochan I think I was able to get past the error! 👍

Seems like my issues are related to Xcode 11 -> Xcode 12?

I am not why this helped, but I did:

  • Workspace Settings > Build System: Legacy Build System (Deprecated), Derived Data: Workspace-relative Location image

Then I started getting:

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)

So I went to Build Settings > Build Active Architectures Only: Debug: No image

After that the file is no longer red: image

Got past RNIap error and now just getting Expo/Amplitude and Firebase error. 😅

ld: library not found for -lAmplitude-iOS
ld: library not found for -lRNFirebase

image

I should probably just use my holiday vacation to download new React Native + Expo and copy all project files over with updated dependencies before it becomes unfixable, haha. 😂

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error build: Command Ld failed wit… | Apple Developer Forums
I am in Xcode and building a C++ app. Compilation happens fine, but at link time I get the following message: error build:...
Read more >
xcodebuild failure clang:error no such file or directory
To fix this, go to your project settings, go to Targets and select your main project target. Then go to Build phases ....
Read more >
Xcode build clang error - LLBuild - Swift Forums
Hi, When I build the swift source code with Xcode 13 Beta, I encounter an error: clang: error: no such file or directory: ......
Read more >
lit - LLVM Integrated Tester — LLVM 16.0.0git documentation
Tests can be either individual test files or directories to search for tests ... The lit program will execute with a non-zero exit...
Read more >
Firebase Authentication/Cocoapods Problem
... building before throwing this error " clang: error: no such file or directory: 'nanopb'. Command Ld failed with a nonzero exit code"....
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