简体   繁体   中英

Xcode is crashing when launching app with CoreSpotlight (9.0+) on iOS 8.3

I'm working on integrating CoreSpotlight framework functionality with the app and try to run it on iOS 8.3 device. Every time I've got:

dyld: Library not loaded: /System/Library/Frameworks/CoreSpotlight.framework/CoreSpotlight
Referenced from: /private/var/mobile/Containers/Bundle/Application/F9714BAD-1386-42A7-9B5F-5C06607AF6CE/Quotes.app/Quotes
Reason: image not found
  • I have marked CoreSpotlight as Optional .
  • Every target (App + Tests) has set Link Frameworks Automatically to NO and also main project has this flag set the same.

I don't see where is the problem and why this is still not working.

Thank you in advance!

I ran into the same problem, but resolved it this way:

  1. under "Linked Frameworks and Library", added CoreSpotlight, and marked it as Optional
  2. Clean build folder (Alt+Shift+Command+K)
  3. Build and run on iOS8 device

Works for me (Xcode7 Beta4)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM