Xcode 11.3.1 with Firebase - swift

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!

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)

Can't build project to physical device Xcode

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

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

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.

SSHCore Framework can't run in iphone sdk

I have downloaded SSHCore source code which uses libssh2 library.
That code build successfully, but as i put that in my code and build it, it builds successfully but after running it gives me this error:
dyld: Library not loaded: #executable_path/../Frameworks/SSHCore.framework/Versions/A/SSHCore
Referenced from: /Users/mac04/Library/Application Support/iPhone Simulator/4.0/Applications/541D1C93-3E50-4932-841C-2D63F5F7FF10/SSH.app/SSH
Reason: image not found
If any one has used this then please help me to solve this issue.
Thanx in advance.
You can't run 3rd party frameworks on iOS.
Have you followed these instructions to turn it into a library that can be used on the iPhone?