Appcenter-sdk-react-native: ld: library not found for -lPods-AppName

Created on 30 Oct 2018  路  7Comments  路  Source: microsoft/appcenter-sdk-react-native

Am uisng the following versions of app center :

"appcenter": "^1.8.1",
"appcenter-analytics": "^1.8.1",
"appcenter-crashes": "^1.8.1",

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

Please help in solving this issue.I am not sure whether this is related to app center or not.
Thanks in advance.

support

Most helpful comment

FYI for anyone who stumbles onto this thread: I was able to resolve this issue by opening the build configuration, and choosing "Save and Build". This forces appcenter to check for .xcodeworkspace again. It was previously building a project file instead

All 7 comments

Hi @divyamakkar26,

Thanks for getting in touch.

Error clang: error: linker command failed with exit code 1 (use -v to see invocation) looks like a SDK integration error, please follow our React Native get-started documentation for step-by-step instructions.

Once you are able to build locally, make sure you checkin dependencies under {root}/Pods into source control so that it works for your CI build.

Btw, I noticed you are using caret(^) before version number "1.8.1". We recommend pinning App Center RN SDK version in package.json to avoid issue mentioned in https://github.com/Microsoft/AppCenter-SDK-React-Native/issues/449. This is not related to your current clang error, but it may be worth mentioning. For instance:

"appcenter": "1.8.1",
"appcenter-analytics": "1.8.1",
"appcenter-crashes": "1.8.1",

Hi @dhei

Am able to build locally with my current setup but not able to build with app center.

@divyamakkar26 If it works locally but not on App Center Build, it may be caused by not checking in your Pods dependencies to Git.

We use this repo to provide support primarily for App Center RN SDK. For App Center Build related issues, I recommend open an intercom ticket using the blue chat button on appcenter.ms portal. I am closing this issue for now. Please feel free to contact us if you have more questions.

Thanks.

Thanks for your help @dhei.

@divyamakkar26 Were you able to resolve this ? I have the same error only on appcenter builds. My Pods are already being checked in to source control.

FYI for anyone who stumbles onto this thread: I was able to resolve this issue by opening the build configuration, and choosing "Save and Build". This forces appcenter to check for .xcodeworkspace again. It was previously building a project file instead

@nicholascm90 I was able to solve this by removing the caret ^ symbol from package.json from appcenter related packages

"appcenter": "^1.8.1",
"appcenter-analytics": "^1.8.1",
"appcenter-crashes": "^1.8.1",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

newyankeecodeshop picture newyankeecodeshop  路  4Comments

celso-henrique picture celso-henrique  路  9Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  5Comments

ionut-movila picture ionut-movila  路  8Comments

thomasgazzoni picture thomasgazzoni  路  5Comments