Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
388 views
in Technique[技术] by (71.8m points)

ios - UIActivityViewController => LaunchServices: invalidationHandler called

I am playing around with the idea of Airdrop. There is an error while running the sample code by Apple:

https://developer.apple.com/library/ios/samplecode/sc2273/Introduction/Intro.html

The error message is:

LaunchServices: invalidationHandler called

The problem is obviously caused by UIActivityViewController. The related code is under #pragma mark - Actions of this file if you could have a look.

It only show the error message when running on devices (both iPhone and iPad). It is all fine if running on simulator (both iPhone and iPad). What's the cause of this? Any idea about how to resolve it? Could it be possibly a bug?

Similar questions are asked by the following, none of which seems to be able to answer this quesition:

LaunchServices: invalidationHandler called - iOS 8 share sheet

Sharing via UIActivityViewController to Twitter/Facebook etc. causing crash

Present UIActivityViewController- LaunchServices:invalidationHandler called

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is a bug on Apple's side. From the developer forums:

That log message does not indicate any error on your part.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...