Migration from 4.3 sdk to ios 5 sdk - migration

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.

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....

Xcode 6 beta 5 won't build Swift with iOS 7.1 SDK

Despite the release notes stating this is supported and previous version of Xcode 6 working ok, I have a rather verbose error message when trying to build with 7.1 SDK.
"iOS targets using Swift cannot be built against an SDK older than 8.0, but the effective SDK is 7.1."
Has anyone else seen this?
I just had this issue, but with the app store build of Xcode 6.0.1 (6A317).
The issue was that I had copied old SDK's (7.0, 7.1) into the Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs directory. This was causing Xcode to use the wrong SDK for building.
Deleting them solved this problem for me. That'll teach me for mucking around with Xcode.

iPhone 5.1 App using OpenCV crashes due to "nonatomic" not found

I'm developing an iOS App which targets iOS 5.1+. I'm using XCode 4.5 on Mac OS X 10.8 and I do own an iPhone 4 with iOS 5.1.1. The app needs OpenCV, which I have successfully built from sources according to a tutorial in the OpenCV-Documentation.
Here is what happens:
When I start up the application I get an exception:
dyld: Symbol not found: _objc_setProperty_nonatomic
The error does not occur with iOS 6, but with iOS 5.1 in both the simulator and on a real device.
What is that? Is it related to OpenCV? Does it have to do something with incompatibilities between iOS / the iPhone / XCode??
EDIT: My development target is set to 5.1. The Base SDK is 6.0. I copied an SDK für 4.3 (which is the lowest version that XCode 4.5 will support) from another Mac and set development target as well as the base SDK to 4.3. Did not work either (it did not even build then).
I did not an update, the project has been started from scratch using XCode 4.5 initially.
Meanwhile I also found a tip to use gnulibc++ instead of libc++, but that also resulted in that the project did not build at all.
I built a test project and found the same issue. OpenCV is being built with a deployment target of ios6, this is a known issue, and a fix is pending review, see https://github.com/Itseez/opencv/pull/70

while i try to run in iOS 6 my code throws Sen test Framework error. why?

I have a project that is developed in iOS 5.0 and now i need to update my project to iOS 6.0 .
While doing this my xcode 4.5 throws the error as below...
dyld: Library not loaded: #rpath/SenTestingKit.framework/Versions/A/SenTestingKit
Referenced from: /Users/developer/Library/Application Support/iPhone Simulator/6.0/Applications/6EFF12B6-DA80-4DD8-B3CF-B217C5EA63DF/XxxxXxxx.app/xxxxXxxxXxx
Reason: image not found
still it runs and works perfectly in iOS 5 devices and i am trying to run this app in iphone Simulator iOS 6.0 it throws that error...
Any body have any idea about this...
Thanks in advance...
its working....set SentestingKit.framework as optional
#fry copied his answer from here:
http://www.cocoabuilder.com/archive/xcode/260066-sentesttingkit-framework-runtime-failure.html
There's more information there which I found useful in solving this problem.
Try to delete the derived Data, then clean the project and restart Xcode.
If its still not working, check the Target dependencies of your library.
It seams like it has Problems with the armv7s Architecture, check that in the
Buildsettings of your Framework!

Compiling link error with xcode 4.2 for my iphone apps

I pass to xcode 4.2 and when I compile I have this error:
ld: library not found for -lz.1.2.3
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
failed with exit code 1.
I am assuming lz is supposed to be libz. If that is the case, you are looking for a very specific version of the lib, so you're problem can be fixed by changing it to 1.2. This is done where you add frameworks (Coredata etc) in Xcode.
Hope this helps.