Symbol not found: _kAXXCAttributeAbsoluteValue Xcode Beta5 XCTest on iOS 8 - xctest

Running tests on iOS 8 from Xcode Beta 5 is crashing with this error:
dyld: Symbol not found: _kAXXCAttributeAbsoluteValue
Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AXRuntime.framework/AXRuntime
in /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
Anyone else seeing this?

Looks like this is fixed in Xcode 7 beta 6.

Related

Ios :: dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction

I have an app which works fine with iOS sdk 8.3 and Xcode 6. but when i check backward compatibility with iOS sdks 7.1 and 7.1 simulator it fails.
App crashes with following error
dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction
Referenced from: /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName
Please suggest to resolve the issue.
How can i make it work for all the iOS versions?
Thanks
In my case, UIKit.Framework had to be marked Optional rather than Required now my app works fine....

App crashed on IOS 7.0 works fine on 7.1

I have built an app that works well on IOS 7.1 but when installed on IOS 7.0 it crashes with the following logs:
dyld: lazy symbol binding failed: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/80FCE91D-EAB5-4321-A157-4A05EA40C07C/MyAPP.app/MyAPP
Expected in: /usr/lib/libSystem.B.dylib
Aug 16 14:42:00 LAWR3NCEde-iPhone MyAPP[14925] <Notice>: dyld: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/80FCE91D-EAB5-4321-A157-4A05EA40C07C/MyAPP.app/MyAPP
Expected in: /usr/lib/libSystem.B.dylib
The app uses Facebook SDK and MSDynamicsViewController (Which uses UIKit). Any idea what this message mean ? And what is this OSAtomicDecrement32 ?
OSAtomicDecrement32 is in OSAtomic.h. It is useful when implementing locks or retain counts in a multi-threaded program.
It's marked as being available on 7.1 and up only (on iPhone) which is why you are crashing.
__OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_7_1)
int32_t OSAtomicDecrement32( volatile int32_t *__theValue );

dyld: Symbol not found: __NSConcreteGlobalBlock after updating to OSX 10.8

I just updated to Mac OSX10.8 and I'm trying to compile a Mac app that ran perfectly when using 10.7 + Xcode 4.5. Now I get this error:
dyld: Symbol not found: __NSConcreteGlobalBlock
Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
I've looked everywhere and things seem to be ok. The deployment target for the app is 10.6 which already supports blocks. Any ideas?
Thanks!!
It turns out that my project was trying to use an old version of the CoreServices framework which was causing this issue. I re-added all the frameworks that my project was using and the problem was gone :)
+1 on your question... Not sure if that would help finding the problem with OS X, but there is a similar error that happens with iPhone apps, with a solution in the link below. Another reason I am providing this link is that googling this error for the iPhone got me to this page.
iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

Compiling reverse geocoding in iOS 5

I'm writing a program for iOS 5. The program should perform reverse geocoding.
When trying to compile I get the warning
MKReverseGeocoder is deprecated
and an error
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in UserLocationAddressViewController.o"
I have 2 questions:
How can I compile without the warning and the error?
I want the application to run on iOS 3, iOS 4, and on iOS 5. How can I do it?
You need to make sure your deployment target is set to the lowest iOS version you want to support. In the example below, the app is built for 5.0 (base SDK), but will run on iOS 4.0 (deployment target):
Setting this to any value below 5.0 will remove the deprecation warning.

Migration from 4.3 sdk to ios 5 sdk

I just updated my old ios 4.3 sdk working project to ios 5 sdk and I'm retrieving the following error:
ld: library not found for -lz.1.2.3
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
Any clue of what is causing this?
It seems like I was missing a library that in ios 4.3 was called libz.1.2.3.dylib but now on ios 5 the lib is called: libz.1.2.5.dylib.
Problem solved.
Instead of linking against libz.1.2.3.dylib or libz.1.2.5.dylib, link against libz.dylib. This will always be the latest version of libz.