dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Users/stathis/Library/Developer/Xcode/DerivedData/zzzzxxxdddd-gxpbgcpggospzxavpqtfdhnkuaez/Build/Products/Debug-iphonesimulator/WCLShineButton.framework/WCLShineButton Reason: image not found (lldb)
I followed the installation instructions but i get this error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/stathis/Library/Developer/Xcode/DerivedData/christian_tete-gxpbgcpggospzxavpqtfdhnkuaez/Build/Products/Debug-iphonesimulator/WCLShineButton.framework/WCLShineButton
Reason: image not found
(lldb)
Xcode version 9.2 (9C40b), iOS 11.2, iPhone 8 simulator, iPhone 7 real device
Thanks @efstathiosntonas for raising the issue.
Have you added WCLShineButton.framework in your app Embedded Binaries? Please follow below steps in order to add the same:
Add WCLShineButton.framework in Embedded Binaries & Linked Frameworks and Libraries. You can find this library from below path:
node_modules/react-native-shine-button/ios/WCLShineButton/WCLShineButton.xcodeproj
Let me know in case it does not work.
Thanks Pranav
Yes, i followed installation instructions, any particular reason on the fainted framework toolbox on the left of the framework name?

Looks like the library is not added properly to the app.
Can you please try this by adding it manually. Please click on + button and then click on Add Other option and navigate to the library folder.
Thanks Pranav
Hi @efstathiosntonas,
Are you able to link the library? Let me know in case you need any help.
Thanks Pranav
I have the same problem, and I also tried withAdd Other
I’ve never managed to use it, i couldn’t fix it. I dont know why i get this error and google searching didnt return any solution.
What do you have in Build Setting/Header Search Paths
I cant tell since i’m not using it now.
Hi @efstathiosntonas + @jorgemarrero: Apologies for not able to provide any help.
Can you please try once by running the built in example app. Just wanted to check is it software stack related issue or something else.
Thanks </ Pranav >
I got the same issue I tried everything. any news about that ?
@prscX sorry, I haven't had time to investigate the problem.
@yelkamel My temporary 'solution' was not to use this component in iOS, I only use it in Android where it works fine.
I having the same issue, any idea to fix it ? I added WCLShineButton.framework in Embedded Binaries & Linked Frameworks and Libraries still the same
I tried to updated to latest version 0.0.8 and follow the pod install step and set the framework to swift language 3.3, but when I compile, I get this error
RNShineButton.m


@prscX , any idea to fix this ?
@JayricMok: Have you run below command in order to install native swift library?
cd ../node_modules/react-native-shine-button/ios && pod install
If yes, can you please compare your local install file from github file:
../node_modules/react-native-shine-button/ios/Pods/WCLShineButton/WCLShineButton/WCLShineButton.swifthttps://github.com/prscX/WCLShineButton/blob/master/WCLShineButton/WCLShineButton.swift
Ideally both should be same. If they are not same can you please run below command:
pod repo updatepod install
Thanks </ Pranav >
@prscX yes, I do exactly your step, both code from my side and your git are also same, but still get those error, I'm using
react-native-cli: 2.0.1 react-native: 0.53.0
unfortunately i think i have no choice to remove react-native-shine-button from ios, i still have to continue the task, hope @prscX have any update or solution. Btw Android worked fine.
@JayricMok: That's strange. Just for confirmation, can you please run built-in example app in order to verify the same.
Thanks </ Pranav >
@JayricMok: My apologies for that. Across packages those have native Swift library dependencies, I am receiving issues from the community.
Earlier I have tried to come up with a concrete solution but was unable to find the right one. I will again try this from different angle.
Thanks </ Pranav >
Hi @JayricMok: I have got the root cause and solution. Basically xcode is caching previous version of library, you need to clear Derived Data. Please follow below few references in order to perform the same:
- https://stackoverflow.com/questions/38016143/how-can-i-delete-derived-data-in-xcode-8
- https://stackoverflow.com/questions/24039932/how-to-delete-derived-data-in-xcode-6-and-later
- https://iosdevcenters.blogspot.com/2015/12/how-to-delete-derived-data-and-clean.html
Please let me know in case it does not work.
Thanks </ Pranav >