Xcode crashes reproducibly whenever we type #import and autocompletion jumps in
Originator: | futuretap | ||
Number: | rdar://43279651 | Date Originated: | 14-Aug-2018 01:09 PM |
Status: | Duplicate/42425247/Closed | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 10b5 |
Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: This is a duplicate of radar #42425247 Xcode crashes reproducibly whenever we type #import and autocompletion jumps in. Xcode 10b4 Reproducible in our large project. I can’t offer a sample, hopefully the attached crash report link helps. Steps to Reproduce: - Expected Results: - Actual Results: Backtrace: 0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit) 1 _DVTAssertionHandler (in DVTFoundation) 2 _DVTAssertionFailureHandler (in DVTFoundation) 3 +[DVTFilePath filePathForPathString:] (in DVTFoundation) 4 -[IDETextCompletionHeadersInSearchPathStrategy _uniqueCompletionItemsAtPath:withBasePriority:] (in IDESourceEditor) 5 -[IDETextCompletionHeadersInSearchPathStrategy _completionItemsFromSubPath:includerURL:usingUserPaths:userHeaderSearchPaths:systemHeaderSearchPaths:headerMappedHeaders:alwaysSearchUserPaths:context:] (in IDESourceEditor) 6 -[IDETextCompletionHeadersInSearchPathStrategy completionItemsForDocumentLocation:context:highlyLikelyCompletionItems:areDefinitive:] (in IDESourceEditor) 7 __94-[DVTTextCompletionDataSource generateCompletionsForDocumentLocation:context:completionBlock:]_block_invoke (in DVTKit) 8 -[DVTOperation main] (in DVTFoundation) 9 -[__NSOperationInternal _start:] (in Foundation) 10 __NSOQSchedule_f (in Foundation) 11 _dispatch_client_callout (in libdispatch.dylib) 12 _dispatch_continuation_pop (in libdispatch.dylib) 13 _dispatch_async_redirect_invoke (in libdispatch.dylib) 14 _dispatch_root_queue_drain (in libdispatch.dylib) 15 _dispatch_worker_thread3 (in libdispatch.dylib) 16 _pthread_wqthread (in libsystem_pthread.dylib) 17 start_wqthread (in libsystem_pthread.dylib) Version: Xcode 10b5 Notes: See full crash log: https://gist.github.com/steipete/0be8e143ab0660be2815a3e3d62d1a6c I'm seeing this in Version 10.0 beta 5 (10L221o), too.
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!
I could pin it down to the usage of static libs. http://www.openradar.me/radar?id=5039913074425856
Here is the minimal demo project with this error: https://github.com/dasdom/Xcode10BugDemo
In my case it was a wrong configured header search path within the projectfile:
USER_HEADER_SEARCH_PATHS = ./Pods/GoogleAPIClientForREST;
I don't know how this happend (by pods automatically or by a developer), however deleting the configuration helped:
USER_HEADER_SEARCH_PATHS = "";