NSURLIsExcludedFromBackupKey makes app crash on launch on iPhone 5.0 Simulator

Number:rdar://11017158 Date Originated:Fri, 09 Mar 2012 05:23:45 GMT
Status:Open Resolved:
Product:Developer Tools Product Version:4.3.1
Classification:Crash/Hang/Data Loss Reproducible:Always
Summary: NSURLIsExcludedFromBackupKey makes app crash on launch with "symbol not found" exception when ran in iPhone 5.0 Simulator (doesn't happen on device running 5.x or Simulator running 5.1)

Steps to Reproduce: create project that uses NSURLIsExcludedFromBackupKey (makes the check so that it's only used if running 5.1 or higher)

Expected Results: app launches normally, key only gets used if iOS 5.1 or higher

Actual Results: app crashes on launch with exception dyld: Symbol not found: _NSURLIsExcludedFromBackupKey Referenced from: /Users/sam/Library/Application Support/iPhone Simulator/5.0/Applications/B0872A19-3230-481C-B5CE-D4BDE264FBDF/Transit.app/Transit Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation in /Users/sam/Library/Application Support/iPhone Simulator/5.0/Applications/B0872A19-3230-481C-B5CE-D4BDE264FBDF/Transit.app/Transit


Notes: attached a demo project that demonstrates this. Using Xcode 4.3.1.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!