Pavel Raul
Pavel Raul

Reputation: 11

Library not found for -lFolly

After updating react-native from version 0.63.2 to 0.66.1, i get the following error in Xcode when i try to build my app.

library not found for -lFolly

I've tried running pod install and cleaning the build folder. My Library Search Paths look like this for both release and debug.

Upvotes: 1

Views: 3513

Answers (2)

ThinkAndCode
ThinkAndCode

Reputation: 1667

I have been struggling with this issue. Finally this solution resolved the issue.

I had the two copies of files in the codebase. Deleting one copy helped code to build successfully

Source: https://stackoverflow.com/a/53417764/8364900

<project name>/ios/<project name>.xcworkspace/contents.xcworkspacedata

The above location may have reference to multiple copies of your project. If so delete one copy then run the project.

Upvotes: 0

aysberna
aysberna

Reputation: 58

Delete libFolly.a file from Xcode>Targets>General and clean DerivedData, run again. Maybe you can face with other problems but if you don't use folly file in your pods it will work. I hope it works for you too.

enter image description here

Upvotes: 1

Related Questions