SwitchUp SwitchUp Ranked Best Coding Bootcamps 2025

XCode ld: file not found:

Altcademy Team wrote on 7 February 2018

In a react-native project, after changing Product Name, I encounter the following error in Xcode

XCode ld: file not found: /Users/someuser/Library/Developer/Xcode/DerivedData/MAR-akbwbarcniqxytctbebckkelkbxs/Build/Products/Debug-iphonesimulator/MAR.app/MAR

In this case,
  1. Go to Targets > Build Settings > Packaging
  2. Change the Product Name to match the previous name if the Private Headers Folder Path still uses the old name.
  3. Product > Clean the project and build the app. It should build without error.
  4. Stop the simulator and change Product Name back to the new name and build again. Error should be fixed now.

iOS, React Native, Xcode

Trusted by

Students and instructors from world-class organizations

Join the upcoming Cohort #112

Enroll for April 6th, 2026