Error in using "dumpdecrypted" to decrypt ios application - ios

I am trying to use 'dumpdecrypted' to decrypt iOS Application.
In accordance with README, I compiled dumpdecrypted.dylib and send it to my device, and I run command like below:
IPad-mini:/var/mobile root# DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib /var/mobile/Applications/XXXXX
XXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName
But there was an error:
dyld: could not load inserted library 'dumpdecrypted.dylib' because no suitable image found. Did find:
dumpdecrypted.dylib: stat() failed with errno=1
Trace/BPT trap:5
How can I solve this problem??
My device is iPad mini 2(iOS7.1.2 Jailbreaked).

Put dumpdecrypted.dylib in /usr/lib, then move to that directory (i.e., cd /usr/lib).
Then execute the command:
DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib /var/mobile/Applications/D9DC2DBC-3C80-43E8-AF79-C01480A46271/rcplus.app/rcplus
You will find the output in the current directory (/usr/lib).

Related

iOS 13.3.1 error "dyld: Library not loaded:...Reason: no suitable image found. Did find:..." application crash [swift][xcode] [duplicate]

This question already has answers here:
How to run an iOS app that causes runtime error for frameworks "code signature invalid"
(9 answers)
Closed 3 years ago.
After updating your phone to iOS 13.3.1 the application stopped running! Start and crash and error:
dyld: Library not loaded: #rpath/AppAuth.framework/AppAuth
Referenced from: /private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/AppName
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: code signature invalid for '/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth'
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: stat() failed with errno=25
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: code signature invalid for '/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth'
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: stat() failed with errno=1
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: code signature invalid for '/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth'
/private/var/containers/Bundle/Application/268CB30E-7E71-473D-BFC4-A548A20D6F00/AppName.app/Frameworks/AppAuth.framework/AppAuth: stat() failed with errno=1
In a simulator (iOS 13.3) and on another phone with iOS 13.3, the application runs
Maybe someone who's faced a problem like this, please help.
Maybe it's something with a dynamic framework. If you are using CocoaPods, comment the use_frameworks! line in the Podfile, do a pod update, pod install, clean and run.

dyld: could not load inserted library, but works on Simulator and another iPhone

So i was coding on my app the last few hours and on some point I decided to launch my app on my iPhone 8 (13.3.1) instead of using the simulator (13.3) and it crashed instantly with the following error:
dyld: warning: could not load inserted library '#executable_path/Frameworks/libclang_rt.asan_ios_dynamic.dylib' into hardened process because no suitable image found. Did find:
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib: code signature invalid for '/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib'
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib: code signature invalid for '/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib'
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib: stat() failed with errno=1
dyld: Library not loaded: #rpath/FBLPromises.framework/FBLPromises
Referenced from: /private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/SmartBuy
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/F8559B38-6434-4B39-BA14-DF1FF9689517/SmartBuy.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
I tested the same app on my iPhone 5S (12.3.1) and it launched without any errors even tho I had a black-screen (My App is iOS 13 based)
some research suggested that it is because of certificates errors, but i cant seem to get around it. So here i am.
What I already tried:
Restart XCode, iPhone and MacBook
New Project with same code files
Deleted Apple Worldwide Developer Relations Certification Authority
New developer certificates
Delete folders like Cache and DerivedData
codesign in Terminal
reinstalled all Pods
The error seems to be everywhere since 13.3.1 update.
I found some thread saying that it's got fixed by commenting use_frameworks!
https://forums.developer.apple.com/thread/128435
https://github.com/Alamofire/Alamofire/issues/3051#issuecomment-580003683

Tweak make package failed: libfakeroot.dylib: mach-o, but wrong architecture

I was trying to make my first tweak for ios using Theos.
And I just used a default tweak template(nic.pl), didnt change anything, I got this error when I tried to run make package:
dyld: could not load inserted library '/usr/local/Cellar/fakeroot/1.22/lib/libfakeroot.dylib' because no suitable image found. Did find:
/usr/local/Cellar/fakeroot/1.22/lib/libfakeroot.dylib: mach-o, but wrong architecture
/usr/local/Cellar/fakeroot/1.22/lib/libfakeroot-0.dylib: mach-o, but wrong architecture
/usr/local/bin/fakeroot: line 181: 3701 Abort trap: 6 FAKEROOTKEY=$FAKEROOTKEY DYLD_INSERT_LIBRARIES="$LIB" "$#"
make: *** [internal-package] Error 134
More Information:
Env: Darwin MacBook pro 16.7.0 Darwin Kernel Version 16.7.0
IOS sdk: I am using the newest version of SDK(iosdk11) & Xcode(9.0), I also tried different SDK, but no luck, I assume the problem here is fake root did not generate compatible binary.
Fakeroot: I just did brew install fakeroot to install.
libfakeroot info: /usr/local/Cellar/fakeroot/1.22/lib/libfakeroot.dylib: Mach-O 64-bit dynamically linked shared library x86_64.

React native build to device failed

I'm trying to build to an iOS device, building to simulator works fine.
This is what I get:
uncaught error Error: TypeError: unsupported file type at lookup (/Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/image-size/lib/index.js:35:9)
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:93:22
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:50:9
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:82:15)
See logs /var/folders/h8/42h3w_qd2r9fvpwy99jsnjq40000gn/T/react-packager.log
at SocketClient._handleMessage (SocketClient.js:144:23)
at BunserBuf. (SocketClient.js:53:42)
at emitOne (events.js:90:13)
at BunserBuf.emit (events.js:182:7)
at BunserBuf.process (/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/bser/index.js:289:10)
at /Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/bser/index.js:244:12
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
Command /bin/sh failed with exit code 1
I'm assuming there's something wrong with image assets. I didn't install the image-size node module myself, so I doubt there's something wrong with that module, it could be though.
Any suggestions welcome.
Solution: apparently you can't add png files to native ios build

Can't upload photo, failed to manipulate minimagick

Using Ruby on Rails, I was trying to upload a photo on my localhost. However, it seems like I can't upload and gets an error:
"Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: Command ("identify -ping /var/folders/rc/zy5w8vkd3m341pndp2d546nm0000gn/T/mini_magick20130103-78039-1m8b1lt.png") failed: {:status_code=>nil, :output=>"dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib\n Referenced from: /usr/local/bin/identify\n Reason: Incompatible library version: identify requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0\n"}"
I am using Homebrew. please help me with this :(
Softwares:Mac OS 10.7.2 (Lion), Xcode 4.1, ImageMagick-6.8.0-10
I met a same error and I used below commands to fix this bug:
jbao009-108: sudo find / -name "libfreetype.6.dylib" -print
/Applications/Inkscape.app/Contents/Resources/lib/libfreetype.6.dylib
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Frameworks/GStreamer.framework/Versions/0.10/lib/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.4.11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.6.dylib
/usr/local/lib/libfreetype.6.dylib
jbao009-108: sudo cp /usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.6.dylib /usr/local/lib/
These 2 commands will find the latest freetype and copy to system lib

Resources