lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

28064734: AddressBook isn't linked via PassKit on iOS < 10 if built with iOS 10 SDK #15734

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

Summary: If you build an app that imports PassKit with the iOS 10 SDK, and use a constant from AddressBook.framework (such as kABPersonAddressStreetKey), if you run to iOS < 10 simulator, the app crashes on launch.

Steps to Reproduce:

  1. Create a new iOS project
  2. Import PassKit
  3. Add print(kABPersonAddressStreetKey)
  4. Run to the iOS 9 simulator

Expected Results: Street is printed

Actual Results: The app crashes on launch with dyld: Symbol not found: _kABPersonAddressStreetKey

Version: iOS 10 beta 6 SDK

Notes:

A workaround for this is to manually add AddressBook.framework to your "Linked Frameworks and Libraries"

See the attached project for an example.

Entire crash log:

dyld: Symbol not found: _kABPersonAddressStreetKey
  Referenced from: /Users/ksmiley/Library/Developer/CoreSimulator/Devices/1CC234EA-3994-48AF-9CF0-1C1516669C88/data/Containers/Bundle/Application/5D5AA158-2081-431A-BE88-AA5A5EE7CA79/PassKitImportBug.app/PassKitImportBug
  Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/PassKit.framework/PassKit
 in /Users/ksmiley/Library/Developer/CoreSimulator/Devices/1CC234EA-3994-48AF-9CF0-1C1516669C88/data/Containers/Bundle/Application/5D5AA158-2081-431A-BE88-AA5A5EE7CA79/PassKitImportBug.app/PassKitImportBug

Product Version: iOS 10 beta 6 SDK Created: 2016-08-29T22:32:35.083920 Originated: 2016-08-29T15:32:00 Open Radar Link: http://www.openradar.me/28064734

deokarDattatray commented 7 years ago

I have added AddressBook.framework but still app crashing with same error.

dyld: Symbol not found: _kABPersonAddressCityKey Referenced from: /Users/ajitemsahasrabuddhe/Library/Developer/CoreSimulator/Devices/83287726-DAB4-4319-9950-B4750F56DFAD/data/Containers/Bundle/Application/EB937A70-7404-49AA-966F-DF19720D824A/ChangeTransit.app/Frameworks/Paysafe.framework/Paysafe Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/PassKit.framework/PassKit in /Users/ajitemsahasrabuddhe/Library/Developer/CoreSimulator/Devices/83287726-DAB4-4319-9950-B4750F56DFAD/data/Containers/Bundle/Application/EB937A70-7404-49AA-966F-DF19720D824A/ChangeTransit.app/Frameworks/Paysafe.framework/Paysafe