Xcode Cross Compiling cocos2d Errors - xcode

When i try to compile my project for the simulator or real devices, i get these errors:
Ld /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/HarvestMoon.app/HarvestMoon normal armv7
cd /Users/maumau/Dropbox/Daten/Projekte/HMiOS
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -L/Users/maumau/Dropbox/Daten/Projekte/HMiOS/../../../../Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -F/Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos -filelist /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Intermediates/HarvestMoon.build/Debug-iphoneos/HarvestMoon.build/Objects-normal/armv7/HarvestMoon.LinkFileList -dead_strip -ObjC -framework Foundation -framework UIKit -miphoneos-version-min=4.3 /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/libbox2d.a -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/maumau/Library/Developer/Xcode/DerivedData/HarvestMoon-bciczopagtmfyqgxjxasrffzrnls/Build/Products/Debug-iphoneos/HarvestMoon.app/HarvestMoon
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CCRepeatForever", referenced from:
objc-class-ref in KBPlayer.o
"_OBJC_METACLASS_$_CCTMXTiledMap", referenced from:
_OBJC_METACLASS_$_KBTMXTiledMap in KBTMXTiledMap.o
"_OBJC_CLASS_$_CCDirector", referenced from:
.... more errors ....
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i use Xcode 4.2 and cocos2d-1.0. does anyone have an idea, how i can fix this?

You'd better to make sure that your project includes cocos2d source code or cocos2d static library. If you are using cocos2d static library, it must be compiled for armv7.
Your project is based on cocos2d application template?

Related

archiving in xcode 7.3.1

i am trying to get my app on testflight for testing. however when following the instruction on this video https://www.youtube.com/watch?v=6tydk4Fc-tg&t=302s everything work up to trying to archive the app.
i get the below error and i'm not quite sure what to do. if you have any idea on how to solve this problem, please help. i'm using Xcode 7.3.1 and ivy 1.9.1.
ld: warning: directory not found for option
'-L/Users/nabi/Desktop/kivy-ios/break-ios/../build/lib'
ld: warning: directory not found for option
'-F/Users/nabi/Desktop/kivy-ios/dist/frameworks'
ld: '/Users/nabi/Desktop/kivy-ios/dist/lib/libfreetype.a(ftsystem.o)'
does not contain bitcode. You must rebuild it with bitcode enabled
(Xcode setting ENABLE_BITCODE), obtain an updated library from the
vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Ld
/Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/IntermediateBuildFilesPath/break.build/Release-iphoneos/break.build/Objects-normal/arm64/break
normal arm64
cd /Users/nabi/Desktop/kivy-ios/break-ios
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
-L/Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/BuildProductsPath/Release-iphoneos
-L/Users/nabi/Desktop/kivy-ios/break-ios/../dist/lib -L/Users/nabi/Desktop/kivy-ios/break-ios/../build/lib -F/Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/BuildProductsPath/Release-iphoneos
-F/Users/nabi/Desktop/kivy-ios/dist/frameworks -filelist /Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/IntermediateBuildFilesPath/break.build/Release-iphoneos/break.build/Objects-normal/arm64/break.LinkFileList
-miphoneos-version-min=8.1 -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/BuildProductsPath/Release-iphoneos
-all_load -fobjc-link-runtime -framework AudioToolbox -framework ImageIO -framework MessageUI -framework UIKit -framework OpenGLES
-framework CoreMotion -framework MobileCoreServices -framework CoreGraphics -framework Accelerate -framework QuartzCore -lc++ -lz
-lsqlite3 -lbz2 -lfreetype -lsdl2_mixer -lsdl2 -lsdl2_image -lffi -lkivy -lpython -lios -lsdl2_ttf -Xlinker -dependency_info -Xlinker /Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/IntermediateBuildFilesPath/break.build/Release-iphoneos/break.build/Objects-normal/arm64/break_dependency_info.dat
-o /Users/nabi/Library/Developer/Xcode/DerivedData/break-bnyieydgxnbwarhabzewbmeqxnyr/Build/Intermediates/ArchiveIntermediates/break/IntermediateBuildFilesPath/break.build/Release-iphoneos/break.build/Objects-normal/arm64/break
ld: warning: directory not found for option
'-L/Users/nabi/Desktop/kivy-ios/break-ios/../build/lib' ld: warning:
directory not found for option
'-F/Users/nabi/Desktop/kivy-ios/dist/frameworks' ld:
'/Users/nabi/Desktop/kivy-ios/dist/lib/libfreetype.a(ftsystem.o)' does
not contain bitcode. You must rebuild it with bitcode enabled (Xcode
setting ENABLE_BITCODE), obtain an updated library from the vendor, or
disable bitcode for this target. for architecture arm64 clang: error:
linker command failed with exit code 1 (use -v to see invocation)
The error tells you clearly what to do. When you see the dialog that asks if you want to rebuild using bitcode, you must uncheck that option. If you are not even getting that far, use the build settings of your target to disable bitcode:
In that screen shot, you'd need to switch from Yes to No.

Undefined symbols after crashlytics update

I have a problem after update of crashlytics framework in my project, through fabric app of course, it is linker error precisily, log below.
Ld /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Products/Debug-iphonesimulator/InternalApp.app/InternalApp normal x86_64
cd /Users/losiennik/temp/InternalApp-ios-fork_DONOTREMOVE
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Products/Debug-iphonesimulator -F/Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Products/Debug-iphonesimulator -F/Users/losiennik/temp/InternalApp-ios-fork_DONOTREMOVE -filelist /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Intermediates/InternalApp.build/Debug-iphonesimulator/InternalApp.build/Objects-normal/x86_64/InternalApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-AFNetworking -lPods-ActivateYourSalon -lPods-CocoaLumberjack -lPods-Foursquare-API-v2 -lPods-GZIP -lPods-MBProgressHUD -lPods-MLPAutoCompleteTextField -lPods-MTDates -lPods-UICKeyChainStore -lPods-UIResponder+KeyboardCache -lPods-WYPopoverController -lPods-zipzap -lc++ -lz -framework CoreGraphics -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libc++ -mios-simulator-version-min=7.0 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Intermediates/InternalApp.build/Debug-iphonesimulator/InternalApp.build/InternalApp.app.xcent -framework EventKit -framework MessageUI -framework Crashlytics -framework QuartzCore -framework MapKit -framework CoreLocation -framework CoreGraphics -framework UIKit -framework Foundation -lPods -framework Fabric -Xlinker -dependency_info -Xlinker /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Intermediates/InternalApp.build/Debug-iphonesimulator/InternalApp.build/Objects-normal/x86_64/InternalApp_dependency_info.dat -o /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Products/Debug-iphonesimulator/InternalApp.app/InternalApp
Undefined symbols for architecture x86_64:
"_CLSLog", referenced from:
-[IAPSyncManager processSuccessfulHTTPRequest] in IAPSyncManager.o
-[IAPLogService writeContentsOfURL:toStream:] in IAPLogService.o
-[IAPServerObjectMapping serializedPrimaryKeyToJSONStringFrom:forObject:] in IAPServerObjectMapping.o
"_CLSNSLog", referenced from:
___65-[IAPWeekDashboardViewController asyncInternalAppFetchSuccess:failure:]_block_invoke in IAPWeekDashboardViewController.o
-[IAPSyncManager prepareForSynchronizationInForeground:] in IAPSyncManager.o
___50-[IAPSyncManager reenableIdleTimerAfterTwoMinutes]_block_invoke in IAPSyncManager.o
-[IAPSyncManager reenableIdleTimer] in IAPSyncManager.o
-[IAPJSONValidator validateJSONWithError:] in IAPJSONValidator.o
-[IAPSynchronisationRelationship stringWithID:] in IAPSynchronisationRelationship.o
_POSTDataDictionary in IAPSyncConstants.o
...
"_OBJC_CLASS_$_Crashlytics", referenced from:
objc-class-ref in IAPSyncManager.o
objc-class-ref in Crashlytics+Utilities.o
l_OBJC_$_CATEGORY_Crashlytics_$_Utilities in Crashlytics+Utilities.o
objc-class-ref in IAPAppDelegate.o
(maybe you meant: _OBJC_CLASS_$_CrashlyticsPlaceholderStatic)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to fix that in a lot of manners, but I cannot. Ways that I tried:
Xcode Clean action on the project
deleting content of /Users/losiennik/Library/Developer/Xcode/DerivedData
removing and adding again Crashlytics.framework and Fabric.framework in Xcode 6.3.1 target Build Phases from Link Binary from Libraries
deleting those framework files from the project physically and adding them again from the other project where I've installed frameworks from the scratch
deleting /var/folders content
I've made every possible combination of that possible solution, and also tried with running and killed xcode, restarting OS also. Nothing works.
Do you have any other ideas? Maybe somebody know where else Xcode stores temporary files which can be used while compiling and linking processes? Do somebody have similar experience while updating that framework?
It turned out that the cause of the problem was related with the other problem that I had. That problem caused that I couldn't register specific app ID with fabric plugin help which was previously added to our old organization account. I deleted that app ID from that old organization but still couldn't add one to the new organization.
Thanks to fabric support member, it turned out that my app ID was in weird state on backend side. When that was corrected, my app ID appeared on our organization account and then the fabric plugin downloaded the proper version of Crashlytics.framework file. After that I don't have any problems with Apple Mach-O Linker Error related to Crashlytics binaries.
Summarising, when only you have the problem described above or the problem with adding app ID, write directly to fabric support and don't waste your time.
Thanks fabric team :)!
If you decided not to use CocoaPods then you obviously used the 2nd option, putting a Run Script inside Build Phases:
./Fabric.framework/run YourUniqueId!#$##%!#$%##$^#$3295209582523##%!#$#%!#%235
The run script will copy the files:
Crashlytics.framework
Fabric.framework
Into your project directory, but sometimes it is not enough and you also need to copy/reference the 2 frameworks into your Xcode project.
Importing the 2 frameworks is possible (before the above copying procedure) but Xcode needs a reference to them.
Should compile fine afterwards.
This issue came to me when i updated Xcode. It got fixed after uninstalling and installing newer version rather than updating.

Xcode Linker Error?

I get this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GameCenterManager", referenced from:
objc-class-ref in BT_viewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Info:
Ld /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator/LatinToGo.app/LatinToGo normal i386
cd /Users/Raoul/Downloads/latintogopro_v15_iOS
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator -L/Users/Raoul/Downloads/latintogopro_v15_iOS/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine -F/Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator -F/Users/Raoul/Downloads/latintogopro_v15_iOS/BT_Objects -filelist /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Intermediates/latintogopro.build/Debug-iphonesimulator/latintogopro.build/Objects-normal/i386/LatinToGo.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework GameKit -lxml2.2 -framework CoreAudio -framework CoreLocation -framework Foundation -framework SystemConfiguration -weak_framework UIKit -framework MobileCoreServices -framework AVFoundation -weak_framework MessageUI -lOAuth -framework MapKit -weak_framework MediaPlayer -framework CoreGraphics -framework QuartzCore -weak_framework iAd -o /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator/LatinToGo.app/LatinToGo
Go to your project, click on Build phases, Compile sources, Add GameCenterManager.m to the list.
Hope this will help :)
Presumably your code refers to the class called GameCenterManager but your project doesn't link to the framework that defines it.
If this is a built-in framework, then link to that framework: edit the target, in the Summary scroll down to the linked frameworks, press the Plus button to add the framework.
If this is a third-party framework, they should provide instructions for linking to their framework.

Why do I get an Apple Mach-O Linker (ID) Error?

I know that this question had been asked many times, but every answer seems different. I have built my project and tried to run it, but I get this error:
Ld "/Users/******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot" normal i386
cd "/Users/******/Xcode/iOS/Cypher Bot/Universal/Cypher Bot/Cypher Bot"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -F/Users/**********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -filelist "/Users/*******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Intermediates/Cypher Bot.build/Debug-iphonesimulator/Cypher Bot.build/Objects-normal/i386/Cypher Bot.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o "/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot"
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in CryptoMainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I also get this right below the message above:
What does this mean? What do I do to fix it?
The error means that the linker can't find the class definition for MFMailComposeViewController. That class is defined in the MessageUI framework. Did you add the MessageUI framework to your target? If you don't know how to do that, read this: How to "add existing frameworks" in Xcode 4?

Running RDPDFKitDemo_1.2

I have purchased reddle kit for ipad pdf viewer. when i try to run the demo program i am getting following error
Ld /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator/RDPDFKitSample.app/RDPDFKitSample normal i386
cd /Users/svp/Desktop/RDPDFKitDemo_1_2
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator -L/Users/svp/Desktop/RDPDFKitDemo_1_2/RDPDFKit.embeddedframework/RDPDFKit.framework/Versions/A -F/Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator -F/Users/svp/Desktop/RDPDFKitDemo_1_2/RDPDFKit.embeddedframework -filelist /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Intermediates/RDPDFKitSample.build/Debug-iphonesimulator/RDPDFKitSample.build/Objects-normal/i386/RDPDFKitSample.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework SystemConfiguration -framework RDPDFKit -framework Security -framework OpenGLES -framework QuartzCore -lz -framework CoreText -framework MessageUI -weak_framework UIKit -weak_framework Foundation -framework CoreGraphics -o /Users/svp/Library/Developer/Xcode/DerivedData/RDPDFKitSample-gjablgzmrirtqteckhbcytapkwcc/Build/Products/Debug-iphonesimulator/RDPDFKitSample.app/RDPDFKitSample
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NSFileCoordinator", referenced from:
objc-class-ref in RDPDFKit(libRDPDFKit.a-i386-master.o)
"_OBJC_CLASS_$_UIReferenceLibraryViewController", referenced from:
objc-class-ref in RDPDFKit(libRDPDFKit.a-i386-master.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
how can i solve this issue.
We don't support building with iOS 4 SDK.
Make sure you are building with iOS 5 SDK. YOur application will still be able to run on device with iOS 4.0.
Danil Somsikov
Readdle Inc.

Resources