react-native-shine-button icon indicating copy to clipboard operation
react-native-shine-button copied to clipboard

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)

Open efstathiosntonas opened this issue 7 years ago • 19 comments

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

efstathiosntonas avatar Mar 19 '18 13:03 efstathiosntonas

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

prscX avatar Mar 19 '18 14:03 prscX

Yes, i followed installation instructions, any particular reason on the fainted framework toolbox on the left of the framework name?

screen shot 2018-03-19 at 16 04 57

efstathiosntonas avatar Mar 19 '18 14:03 efstathiosntonas

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

prscX avatar Mar 19 '18 14:03 prscX

Hi @efstathiosntonas,

Are you able to link the library? Let me know in case you need any help.

Thanks Pranav

prscX avatar Mar 20 '18 01:03 prscX

I have the same problem, and I also tried withAdd Other

jorgemasta avatar Apr 05 '18 18:04 jorgemasta

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.

efstathiosntonas avatar Apr 05 '18 19:04 efstathiosntonas

What do you have in Build Setting/Header Search Paths

jorgemasta avatar Apr 05 '18 19:04 jorgemasta

I cant tell since i’m not using it now.

efstathiosntonas avatar Apr 05 '18 19:04 efstathiosntonas

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 >

prscX avatar Apr 06 '18 15:04 prscX

I got the same issue I tried everything. any news about that ?

yelkamel avatar Apr 10 '18 16:04 yelkamel

@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.

jorgemasta avatar Apr 10 '18 19:04 jorgemasta

I having the same issue, any idea to fix it ? I added WCLShineButton.framework in Embedded Binaries & Linked Frameworks and Libraries still the same

callmejm avatar Apr 24 '18 04:04 callmejm

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 image

image

@prscX , any idea to fix this ?

callmejm avatar Apr 24 '18 04:04 callmejm

@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.swift
  • https://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 update
  • pod install

Thanks </ Pranav >

prscX avatar Apr 24 '18 06:04 prscX

@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

callmejm avatar Apr 25 '18 06:04 callmejm

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.

callmejm avatar Apr 25 '18 07:04 callmejm

@JayricMok: That's strange. Just for confirmation, can you please run built-in example app in order to verify the same.

Thanks </ Pranav >

prscX avatar Apr 25 '18 07:04 prscX

@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 >

prscX avatar Apr 25 '18 08:04 prscX

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 >

prscX avatar Apr 30 '18 10:04 prscX