error Reason: no suitable image found. when run on device [duplicate] - swift

This question already has answers here:
dyld: Library not loaded: #rpath/libswiftCore.dylib / Image not found
(27 answers)
Closed 5 years ago.
I've created a project in Xcode 8. When I run it on the simulator, it works fine, but when I run it on a real device it doesn't run.
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /var/containers/Bundle/Application/871C44C1-B21B-418C-840E-DAB05DA1D542/Test03.app/Test03
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/871C44C1-B21B-418C-840E-DAB05DA1D542/Test03.app/Frameworks/libswiftCore.dylib: code signing blocked mmap() of '/private/var/containers/Bundle/Application/871C44C1-B21B-418C-840E-DAB05DA1D542/Test03.app/Frameworks/libswiftCore.dylib'

Following the below steps
remove your app from the device
clean your project
remove derived data (xcode->preferences->Loactiona->click on red part->and remove all file from DerivedData)
4. build and run in your device i think run

Related

Xcode8 Issue with "GPRCClient.framework"

I am getting this error in Xcode when running on a real device and I could not find a solution. Running on simulator works fine.
dyld: Library not loaded: #rpath/GRPCClient.framework/GRPCClient Referenced from: /var/containers/Bundle/Application/87E018E3-6128-41B7-B285-417FAF97143D/vivisell.app/vivisell
Reason: image not found

iOS app framework crashed

While I am trying to deploy an app on my phone, The app crashed and here is the console log:
dyld: Library not loaded: #rpath/libswiftCloudKit.dylib Referenced
from:
/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/ProximityContent
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/Frameworks/libswiftCloudKit.dylib:
code signing blocked mmap() of
'/private/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/Frameworks/libswiftCloudKit.dylib'
This happens for all other applications in my xcode.
I fixed the same issue (were having EXC_BAD_ACCESS for AVFoundation) by cleaning (cmd+k) and then cleaning the folder (cmd + shift + K).
It worked for me.
Check your Framework deployment info means framework supported OS.
Your project supported OS version and framework supported OS version check required.

Xcode doesn't run app on devices but simulator. dyld: Library not loaded, Reason: image not found

I am trying to run an open source project on my Xcode to my devices.
The app runs normally on simulator. But has fatal error when running on a device.
dyld: Library not loaded:
/Users/Kevinscience/cerbero/dist/ios_universal/lib/libspiceglue.0.dylib
Referenced from:
/var/mobile/Containers/Bundle/Application/317EAAE1-F492-44DE-B4BB-68B222E73C44/flexVDI.app/flexVDI
Reason: image not found (lldb)
Please help me to solve this problem.

Compiling Issue with SFBAudioEngine

I want to play Flac files in ios and downloaded code from: SFBAudioEngine
I added frameworks for mac os and it build successfully but when I run app it crashes and gives
dyld: Library not loaded: #rpath/dumb.framework/Versions/A/dumb
Referenced from: /Users/Library/Developer/Xcode/DerivedData/SFBAudioEngine-frrtbwxsqekjtmekpdfikqaqcsso/Build/Products/Debug/SimplePlayer.app/Contents/MacOS/SimplePlayer
Reason: image not found
And When I am trying to make build for ios app It is giving error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1
Please help me to run this app .
It looks like the dumb framework is not being loaded. You need to make sure it's located at this path on your computer:
#rpath/dumb.framework
And make sure this file exists before running your app:
#rpath/dumb.framework/Versions/A/dumb
Just put the Frameworks folder inside the SFBAudioEngine folder. check for #rpath details

problem while installing app on iphone

H everyone
i have up graded my xcode to xcode 4 & i am trying to install a app through this xcode on to a iphone but i am getting following error & i am unable to launch the app
warning: Unable to read symbols for /var/mobile/Applications/7A08B9EA-DD46-47B4-8E0C-BF081BDB1F4B/QIA All.app/QIA All (file not found).
dyld: Library not loaded: /System/Library/Frameworks/QuickLook.framework/QuickLook
Referenced from: /var/mobile/Applications/7A08B9EA-DD46-47B4-8E0C-BF081BDB1F4B/QIA All.app/QIA All
Reason: image not found
i have following warning in my app
ld: warning: directory not found for option '-F/Developer/new xcode/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/System/Library/PrivateFrameworks'
is from this warning
how can i fix this?,,,thanx in advance
you have to check that all images and framework are included friend. may b any image is missing that is deleted from project folder .check if you get any image in red then add that image
Looks like your app is still trying to link to the 3.1.2 SDK. You need to change the SDK in the project settings to Base SDK: Latest (iOS 4.3). Also make sure to clear out any settings in the target for this value so that it inherits it properly.