iOS Xcode issue - App crashes after adding the cocoapods pod 'Purchases' to my podfile

  • 22 October 2021
  • 3 replies

Badge +1

I have an existing Objective-C project that is already using CocoaPods.

After adding the pod 'Purchases' to my podfile my project no longer runs.

It quits with the error messages:

dyld[15384]: Library not loaded: @rpath/libswiftCore.dylib
libswiftCore.dylib' (no such file)

I am on Xcode 13.0

I checked the solutions on this page, and based on that, have confirmed the following:

For both my project and target:

  • Build Settings > Build Options > Always Embed Swift Standard Libraries is set to Yes

For my target:

  • Build Settings > Linking > Runpath Search Paths is set to @executable_path/Frameworks

I also Cleaned the project and deleted all Derived Data.

What else do I need to do to resolve this error?


Best answer by Andy 22 October 2021, 18:23

View original

3 replies

Userlevel 2
Badge +4

Hi there! 👋

I’d recommend following the steps in our SDK Troubleshooting Guide

In particular, I think your issue might be solved by adding a single, empty Swift file to the project. Could you give that a shot? 



Badge +1

Thank you. Adding the swift file which prompted me to create a bridging header fixed the issue.


Userlevel 2
Badge +4

Thanks for the update! I’m glad it worked 😃 Have a great day!