Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 259 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"dyld: Library not loaded', "reason: Image not found" error in Swift 2.2 iOS with watch

#1
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?
Reply

#2
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

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through