I have loaded the Cardio and Result frameworks, with Carthage, and added it to linked binaries and embedded frameworks. I have added the 'copy new files' in Build Phases. It is showing the 'suitcase' icons for the frameworks in my iOS target, watch target and watch extension. The app builds but then crashes before loading any scenes on my watch.
The console error says
"dyld: Library not loaded: @rpath/Cardio.framework/Cardio referenced from" (my realm database) then " Reason: image not found"
Any ideas?
Try this In Xcode,
1) On your application targets’ Build Phases
settings tab, click the +
icon and choose New Run Script Phase
. Create a Run Script in which you specify your shell (ex: bin/sh
), add the following contents to the script area below the shell:
/usr/local/bin/carthage copy-frameworks
2) and add the paths to the frameworks you want to use under Input Files
, e.g.:
$(SRCROOT)/Carthage/Build/iOS/Cardio.framework
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With