Skip to main content
All CollectionsBuildiOS
My iOS builds fail with "clang: error: linker command failed with exit code 1"
My iOS builds fail with "clang: error: linker command failed with exit code 1"

Clang!

Jihye E avatar
Written by Jihye E
Updated over 5 years ago

The error could be caused by App Center building with the xcodeproj instead of the workspace. When adding CocoaPods to your project, you must switch to using the workspace when building in App Center. 

Indicator: Look for this line in your build log:

ld: library not found for -lPods-GarageController
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **

To fix this, open your App Center project's Build Configuration, then click Save & Build, App Center will automatically choose the workspace correctly for future builds. 

If this doesn't fix your issue, try deintegrating cocoapods and removing the last libraries added. Instead of manually adding them again, use react-native link command to do so. 

If the issue still persists, please don't hesitate to contact our support!

Did this answer your question?