Can't build project to physical device Xcode - swift

I cant build my Xcode project to a physical device. Simulated devices are working perfectly. I installed every cocoapods library again and cleaned the project multiple times.
dyld: Library not loaded: #rpath/BarcodeScanner.framework/BarcodeScanner
Referenced from: /private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Segler
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: code signature invalid for '/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner'
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: stat() failed with errno=25
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: code signature invalid for '/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner'
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: stat() failed with errno=1
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: code signature invalid for '/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner'
/private/var/containers/Bundle/Application/CFE145F7-D789-4DB8-A0DB-D8B533D08B5A/Segler.app/Frameworks/BarcodeScanner.framework/BarcodeScanner: stat() failed with errno=1
(lldb)

Look like your project.xcodeproj path is wrong or something, I found this on someone's question/answer and look like he got the same problem as you. Hope this helps you.
https://stackoverflow.com/questions/32730312/reason-no-suitable-image-found

Related

Failed to install a project to a real device

Someone who solved this problem by emulating on an iPhone.
It is a project that a library was embedded and well I already gave it a lot of laps and all the Build Setting configurations, from the signature of the build functions are correctly I do not understand what may be happening I have xcode 12.0.1 I will thank you very much for a feetback,
este es mi error:
dyld: Symbol not found: _$s8DropDownAAC9DirectionO6bottomyA2DmFWC
Referenced from: /private/var/containers/Bundle/Application/0E7CFCF6-F3E3-422F-8EF9-BD721F6D0ADB/proyectodemo.app/Frameworks/FrameworkDemo.framework/FrameworkDemo
Expected in: /private/var/containers/Bundle/Application/0E7CFCF6-F3E3-422F-8EF9-BD721F6D0ADB/proyectodemo.app/Frameworks/DropDown.framework/DropDown
in /private/var/containers/Bundle/Application/0E7CFCF6-F3E3-422F-8EF9-BD721F6D0ADB/proyectodemo.app/Frameworks/FrameworkDemo.framework/FrameworkDemo
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb)

Xcode 11.3.1 with Firebase

I've been making an Xcode app. When I run it on the simulator it works. When I run it on my iPad it also works but when I try to use is on my iPhone 11, it doesn't work. Gets the following message:
Thread 1: signal SIGABRT"
And in the console:
dyld: Library not loaded: #rpath/GTMSessionFetcher.framework/GTMSessionFetcher
Referenced from: /private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/WBG
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signature invalid for '/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: stat() failed with errno=25
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signature invalid for '/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: stat() failed with errno=1
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signature invalid for '/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/B50AD250-D857-4C76-B9BB-EC8377913E91/WBG.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: stat() failed with errno=1
Seems like the libary GTMSessionFetcher is not copied on your device. PLease check on Your Project target settings, under section Frameworks, Libraries and Embedded Content that you have chosen Embed & Sign or Embed Without Signing.
Alsom, one of the issues might be that library GTMSessionFetcher was built for iPad Architecture only when archived.
Check sample image below
I have been facing the same problem... It got fixed by adding:
In you podfile:
use_modular_headers!
instead of
use_frameworks!
Good luck! I hope this works for you!

Framework Pod says Library not loaded

Hi I'm making an application for ios that uses a pod library called Signature.Framework (Substantially allows you to make the signature). When I start the application on the XCode simulator everything works perfectly when I go to test the application on the physical device, I get the error below. What is more due and how can I solve it?
Error:
dyld: Library not loaded: #rpath/Signature.framework/Signature
Referenced from: /var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/myapp
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
(lldb)
Linking:
Solution 1
In my case i set the Pods.framework to optional and it fixed the issue , It wasn't being copied to device by the .sh script and so the app crashed:
Solution 2
remove your project from DerivedData
User/YourPcName/Library/Developer/Xcode/DerivedData/ProjectNameFolder

Error dyld: Library not loaded: #rpath/GTMSessionFetcher.framework/GTMSessionFetcher - Code signing error

I am having this error with GTMSessionFetcher
I'm not sure what it means.
Could it be a could signing error?
dyld: Library not loaded: #rpath/GTMSessionFetcher.framework/GTMSessionFetcher
Referenced from: /var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Studioso
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
Message from debugger: Terminated due to signal 6
I have been facing the same problem... It got fixed by adding:
In you podfile:
use_modular_headers!
instead of
use_frameworks!
Good luck! I hope this works for you!

Error while linking an app

getting this error while linking an app, some one an idea?
ld: duplicate symbol _OBJC_METACLASS_$_FBCustomLoginDialog1 in ....
Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
failed with exit code 1
As i know i linking a file twice... budet how to fix it?
The same .m file is likely included in your project twice. See this thread for suggestions on how this could have happened.