Can't use the Intents framework and run on older iOS simulators on Mojave

Originator:rolfbjarne
Number:rdar://49811633 Date Originated:
Status: Resolved:
Product:iOS + SDK Product Version:
Classification: Reproducible:Always
 
Area:
Simulator

Summary:

An app that uses the Intents framework will crash at launch if executed on an iOS 9 (or earlier) simulator.

Steps to Reproduce:

1. Create new iOS app (I've tested with Objective-C)
2. In AppDelegate.m, add "@import Intents;" at the top and "NSLog (@"Intents: $@", [INIntentResponse class]);" in the applicationWillTerminate method.
3. Run in an iOS 9.0 simulator.

I've also attached a sample project.

Expected Results:

App launches successfully.

Actual Results:

Crash at launch:

dyld: Library not loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
  Referenced from: /System/Library/Frameworks/Intents.framework/Intents
  Reason: no suitable image found.  Did find:
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices: mach-o, but not built for iOS simulator

Version/Build:

Xcode 10.2 (10E125)
macOS 10.14.4 (18E226)

Comments


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!