iOS7 App crash issue which works fine in iOS7.1 and above - ios7

Symbol not found: _OSAtomicDecrement32 app crash issue in iOS7
which works fine in version higher than iOS7.1 and above.
<Notice>: dyld: lazy symbol binding failed: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/.....
Expected in: /usr/lib/libSystem.B.dylib
Jan 29 12:07:01 admines-iPhone LoxaBeauty[3536] <Notice>: dyld: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/.....
Expected in: /usr/lib/libSystem.B.dylib
This is the output when I run the app on iOS7 device crashes but works fine with iOS7.1 and above

Related

Ejected Expo, React Native, can't find libreactnativejni.so

I've got an Ejected Expo project, that's getting the following error while trying to run on Android.
I'm aware there's lots of documentation on this issue but all seem focused on 64bit binaries being included. I've unzipped the APK that's generated and the lib folder only contains :
/x86
/armeabi-v7a
So if there is a 64Bit include, I cant see where it would be?
Any suggestions?
2019-06-02 17:32:27.725 6202-6280/com.projectName.dynamic E/SoLoader: couldn't find DSO to load: libreactnativejni.so
2019-06-02 17:32:27.727 6202-6280/com.projectName.dynamic E/AndroidRuntime: FATAL EXCEPTION: Thread-3
Process: com.projectName.dynamic, PID: 6202
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:703)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:564)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:500)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:455)
at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:18)
at com.facebook.react.bridge.NativeMap.<clinit>(NativeMap.java:19)
at com.facebook.react.bridge.JSCJavaScriptExecutorFactory.create(JSCJavaScriptExecutorFactory.java:21)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:914)
at java.lang.Thread.run(Thread.java:764)

Error in 1.3.0 when accessing ParameterEncoding.encode()

When Accessing encode function of ParameterEncoding, project terminates. The error and code is below.
Alamofire 1.3.0
Carthage 0.7.5
Xcode 6.4
Swift 1.2
Do you know how to avoid this error?
Code
let encoding = ParameterEncoding.URL
return encoding.encode(URLRequest, parameters: parameters).0
Error message
2015-07-29 19:07:34.019 dyld: lazy symbol binding failed[D: Symbol not found: __TFO9Alamofeire17ParameterEncoding6encodefS0b_FTPS_21URLRequestConvertible_10uparametersGSqGVSs10DictionarySSPgSs9AnyObject____TCSo12NSURLReque]stGSqCSo7NSError__
Referenced from: /Users/moritanaoki/Library[/Developer/CoreSimulator/DevicesS/ACFF4AC5-B2EC-4831-822A-3006009yA88BB/data/Containers/Bundle/Appnlication/6FE2D54F-3947-472F-80BFc-4481D2FFE84A/sync-messenger-qa.Mapp/sync-messenger-qa
Expecteda in: /Users/moritanaoki/Library/nDeveloper/CoreSimulator/Devices/aACFF4AC5-B2EC-4831-822A-3006009Ag88BB/data/Containers/Bundle/Appleication/6FE2D54F-3947-472F-80BF-r4481D2FFE84A/sync-messenger-qa.a.pp/Frameworks/Alamofire.frameworsk/Alamofire

Getting "apple mach-o linker id error undefined symbols for architecture i386" when implement a Library in iOS5

I'm having troubles to implement the PayPal Library in XCode 4.
I get this error when I try to build the project:
Undefined symbols for architecture i386:
"_xmlParseMemory", referenced from:
-[AdaptivePaymentsSOAP11Binding_CancelPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ConfirmPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ConvertCurrency connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ExecutePayment connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_GetPaymentOptions connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_PaymentDetails connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_Pay connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
...
Searching on the web I found that this is a tipical error when passing from XC3 to XC4. Maybe the Library isn't updated. But that file .a that you see there seems to be uneditable.
Solved. Have to load 3 frameworks: libXML, Security and libz.

What does this gdb output mean?

I've got a button that plays a sound, and it seems to work perfectly fine on the simulator, but i'm getting this message:
Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.605 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.657 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.671 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.706 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.715 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.732 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.741 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
And i've had reports saying, on some devices it's not playing at all.
That is a confirmed bug of the iOS SDK 5 / Simulator - happens as soon as the simulator tries to play sound (from a movie or any other sound source). Do not worry though, it won't be a problem on the actual device.
You mentioned actual reports of users having trouble using your App - those problems are not related / connected to the issue you have posted above.
This issue is filed by Apple under Bug ID# 10555404. I did file a report myself which has finally been identified as a dupe of the mentioned bug id.
The issue currently persists up until and including Xcode Version 4.4.1 (4F1003), iOS SDK 5.1.
Update
This issue is finally fixed within Xcode Version 4.5 (4G182), iOS SDK 6.0.
Note
The issue persists even in Xcode Version 4.5 when used in conjunction with the iOS 5.1 (or lower) simulator.
I found a temporary workaround to this problem: simply turn off breakpoints before playing the video. Then it works fine in the simulator.
This Problem May occur if you incorrectly import a Mac OSX framework instead of iOs framework. Removing the Mac OS framework worked for me
Use the AVAudioPlayer as ivar in head file with strong :
#property (strong,nonatomic) AVAudioPlayer *audioPlayer
For me this works.
The following code can be used to test on simulator.
if (beep == nil)
NSLog(#"audio player not initialized");
else if(TARGET_IPHONE_SIMULATOR)
{
NSLog(#"beep play");
}
else
{
[beep play];
}
This is a problem many people are having. I didn't find any solution to this yet.
I strongly suggest to file a radar.
Here's mine http://openradar.appspot.com/radar?id=1466402
What Till says is absolutely right. But when using ARC, this problem might correlate (without a causality) with another problem: If the AVAudioPlayer actually doesn't play any sound, this might be interesting for you: https://stackoverflow.com/a/7744831/838068

"Symbol not found" Crash while Testing Mac OS X 10.7-specific code on 10.6

I have an application that uses a few classes found only in 10.7 Lion. (For example, NSFileCoordinator.)
When my application launches, it can use NSFileCoordinator to coordinate read access to the data store. (I save to XML.)
The application launches fine under 10.7 Lion, but when launching under 10.6 Snow Leopard, the application crashes with the error shown below.
My base SDK is set to 10.7, and the deployment target is 10.6. As far as I can tell, all my code is properly wrapped, like:
if (NSClassFromString(#"NSFileCoordinator") != nil) {
// Do something the 10.7 way
} else {
// Do something the 10.6 way
}
But for some reason, I'm still seeing the crash. Since the Base SDK is 10.7, I can't run the application under Xcode in 10.6, making debugging difficult. Additional messages are being logged to the console:
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] dyld: Symbol not found: _OBJC_CLASS_$_NSFileCoordinator
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] Referenced from: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
9/1/11 9:48:03 AM [0x0-0x18018].com.me.myapp[173] in /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
And the crash report:
Process: myapp [137]
Path: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
Identifier: com.me.myapp
Version: 1.5.0 (150)
Code Type: X86-64 (Native)
Parent Process: launchd [92]
Date/Time: 2011-09-01 09:40:32.591 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Interval Since Last Report: 2009 sec
Crashes Since Last Report: 5
Per-App Crashes Since Last Report: 5
Anonymous UUID: 32784C79-0821-471E-BCBF-BE5874774075
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Symbol not found: _OBJC_CLASS_$_NSFileCoordinator
Referenced from: /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
in /Volumes/Macintosh HD/Users/Me/Library/Developer/Xcode/DerivedData/Mac-ebdxgdvcqfnptlftkreamrwdxetd/Build/Products/Debug/myapp.app/Contents/MacOS/myapp
#Anomie has the right answer but let me expand on it some more.
Here is the code of a command line tool that is similar to what you are doing:
int main (int argc, const char * argv[])
{
#autoreleasepool {
if (NSClassFromString(#"NSFileCoordinator")) {
NSLog(#"Version >= 10.7");
} else {
NSLog(#"Version < 10.7");
}
}
return 0;
}
The only framework that this program links to is Foundation. But in order to weakly link to this framework you must do the following:
Click on the project in the project browser
Go to "Build Phases"
Go to "Link Binary With Libraries" and remove "Foundation.framework"
Go to "Build Settings" and add the following "Other Linker Flags":
-weak_framework Foundation
Rebuild your project. I've tested on OS X 10.6 and 10.7 and neither crashed and both produced the expected output. Hope this helps.
You need to weakly link the framework, so these unresolved symbols won't be an error at load time.