__dyld_dyld_fatal_error upon app startup - iphone

I get a __dyld_dyld_fatal_error when trying to run my app on an iOS3 device:
dyld: Symbol not found: _OBJC_CLASS_$_NSBlockOperation Referenced from: /var/mobile/Application/.......
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
My guess is that this is due to the fact that blocks aren't supported in iOS3. However, I'm having trouble tracking down which library is referencing NSBlockOperation. Is there a tool similar to dependency walker, that I can use to figure out which module it is?

You need to set your deployment target to iOS 3.x.

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)

Flutter Xcode 12 archive build fails with Undefined symbol: _OBJC_CLASS_$_STPAPIClient

Flutter version 1.22.2
Xcode 12.1
the app builds fine in the simulator but trying to generate an archive for App Store fails with: building for iOS-armv7 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture armv7:
"OBJC_CLASS$_STPAPIClient", referenced from:
objc-class-ref in TPSStripeManager.o
I have deployment target to 11.0.
XCode->Pods->stripe_payment->Build Setting. Change the iOS Deployment Target to 11.0. Without knowing exact reason for the problem however this worked for me.
I have attached the xcode ss.
Xcode Pods:Adding armv7 to excluded architectures solved the issue.
This works for me.

Debug an obscure error on iPhone

My app crashes on versions 4.2 and 4.3 of iOS. The line of code that crashes is in a C++ library:
Ais8_001_22_Circle const *circle = dynamic_cast<Ais8_001_22_Circle const*>(*sa);
The console says:
dyld: lazy symbol binding failed: can't resolve symbol ___dynamic_cast MY_APP
because dependent dylib #2 could not be loaded
dyld: can't resolve symbol ___dynamic_cast in MY_APP
because dependent dylib #2 could not be loaded
It would probably help if I could figure out what "dylib #2" is.
It turns out I needed to include the lstdc++ linker flag under iOS 4.X
One possibility - Is the C++ library you are linking to a dynamic library (dylib)? If so, you'll need find a statically linked version for iOS as iOS does not allow dynamic libraries.

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?

Printing in 4.2 SDK - would like to support 4.0 without app crashing

I'm trying to have printing in my application.
While this works, and I can indeed print from my application, I would like to be able to run my application on devices that aren't running iOS 4.2.
Even if I check the version before I run the code.
The method that prints the document has all of the classes that are being used to print.
Whenever I switch the simulator back to 4.1, I get a Symbol not found exception that displays the error:
dyld: Symbol not found: _OBJC_CLASS_$_UIMarkupTextPrintFormatter
Referenced from: /Users/Jack/Library/Application Support/iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/Jack/Library/Application Support/iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation
I don't want to discard the users who haven't upgraded to 4.2.
Any help appreciated.
Which compiler are you using? If you haven't, you should switch to LLVM GCC or LLVM to support automatic weak linking as described by Marco Arment in Supporting older versions of iOS while using new APIs.