Swift had fatal errors constructing the ast context for this module

I’m having the same issue in my project. The error that lldb spits out when attempting to po an object highlights the issue: (lldb)po fileURL warning: Swift error in module <APP_NAME>: Swift had fatal errors constructing the ast context for this module: <module-includes>:1:9: note: in file included from <module-includes>:1: #import “Headers/Crashlytics.h” ^ <APP_PATH>/Pods/Crashlytics/Crashlytics.framework/Headers/Crashlytics.h:10:9: error: include … Read more

What is Communications error: OS_xpc_error in Xcode 6?

XPC is Apple’s inter-process communication (IPC) system. Some functionality (such as h.264 encoding/decoding, or interacting with camera hardware) is handled by a separate app – a daemon – that runs all the time in the background. Connection interrupted means that the IPC connection was interrupted for some reason. Perhaps it took too long, perhaps the … Read more

Unable to load platform at path

I have the same FileMerge warning in Git. When I look inside Xcode’s preferences, I can see that neither the iPhoneSimulator nor the iPhoneOS platforms are installed but the directories do exist when I look into “/Applications/Xcode.app/Contents/Developer/Platforms”. I don’t develop for iOS, so I deleted both iPhoneOS.platform and iPhoneSimulator.platform and the warning went away. If … Read more

100+ “Class implemented in both MapKit and VectorKit” warnings with Xcode 9.0.1 and above

This is actually a bug in the current iOS Framework and has nothing to do with anything in your app, module cache, libraries, etc. The reason this appears to be non deterministic is that it is only there when the Accessibility Layer is active, which it isn’t on the simulator, except under very specific circumstances. … Read more

Xcode 4 plugin development

As far as I know there is no official way to create Xcode 4 plugins (just like there wasn’t one for v3.x). Here is an openradar on Xcode’s lack of plugin support: Please support the ability for 3rd parties to extend Xcode via a public plugin API. Aperture, Visual Studio, Eclipse, TextMate and other applications … Read more

Copy target file to another location in a post build step in CMake

Rather than using the obsolete LOCATION property, prefer using generator expressions: add_custom_command(TARGET mylibrary POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:mylibrary> ${targetfile} ) You could also just generate the exe in the target directory directly by setting the target property RUNTIME_OUTPUT_DIRECTORY instead of copying it. This has per-configuration options (e.g. RUNTIME_OUTPUT_DIRECTORY_DEBUG). set_target_properties(mylibrary PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG <debug path> RUNTIME_OUTPUT_DIRECTORY_RELEASE … Read more

Xcode 12 deployment target warnings when using CocoaPods

A short working solution is here! Just copy and paste the code snippet at the end of your Podfile and run the pod install command. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’].to_f < 12.0 config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘12.0’ end end end end In this case, 12.0 is the minimum supporting iOS version … Read more