Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode ld: library not found for -LFSCalendar

I have an existing Xcode iOS project that uses FSCalendar library. I have now opened this project on another mac computer with Xcode installed.

When I build my project, I get the following error:

ld: library not found for -LFSCalendar

In the Project --> Build Settings --> Search Paths I see:

Library Search Paths:

"build/Debug-iphoneos/FSCalendar"
"build/Release-iphoneos/FSCalendar"

Question 1 What do I have to do to get this to build? Do I have to copy the FSCalendar folder to the Debug and Release locations above etc?

Question 2 Should there be an actual library file somewhere called FSCalendar in my project directory? there is a folder called FSCalendar which contains all the FSCalendar source code files. Do these files get built into a library output file??

like image 387
Harry Boy Avatar asked Feb 03 '26 14:02

Harry Boy


1 Answers

If you're talking about this FSCalendar - it will depend on how you've integrated with your project. The projects readme describes methods using Carthage, CocoaPods and manual integration.

Carthage

From the doc's

Running a project that uses Carthage

After you’ve finished the above steps and pushed your changes, other users of the project only need to fetch the repository and run carthage bootstrap to get started with the frameworks you’ve added.

CocoaPods

In your projects root directory where your Podfile exists, it Terminal.app you should be able to run:

$ pod install

Manual Integration

If you've used the manual options then you probably already have a target for check the Build Phases tab of your projects main target. Then check the list of files under the head Compile Sources (you may need to click on the disclosure triangle to unfold the list).

like image 71
Craig Avatar answered Feb 06 '26 05:02

Craig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!