From 953ac372020804d7d723e08e45f2bc9c4ffeb3af Mon Sep 17 00:00:00 2001 From: Brendan Guegan Date: Mon, 16 Nov 2020 09:33:17 +0100 Subject: [PATCH] Fix issue with IRGen During debugging session, with the use of pods installed via Cocoapods-binary, the console in Xcode displays error messages while executing following expression: `po self` The error looks the following one: ``` Printing description of self: expression produced error: error: virtual filesystem overlay file '/path/to/project/Pods/build/Pods.build/Release-iphoneos/Charts.build/all-product-headers.yaml' not found error: couldn't IRGen expression. Please check the above error messages for possible root causes. ``` The issue is not related to Charts pod, but to every pod used. To fix the issue, I just removed the line that delete the build folder generated during the precompiling of pods. THis folder contains for each pod, the `all-product-headers.yaml` expected by Xcode. --- lib/cocoapods-binary/rome/build_framework.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods-binary/rome/build_framework.rb b/lib/cocoapods-binary/rome/build_framework.rb index 10c8571..44e217e 100644 --- a/lib/cocoapods-binary/rome/build_framework.rb +++ b/lib/cocoapods-binary/rome/build_framework.rb @@ -188,7 +188,7 @@ def self.build(sandbox_root_path, target, output_path, bitcode_enabled = false, def self.remove_build_dir(sandbox_root) path = build_dir(sandbox_root) - path.rmtree if path.exist? + # path.rmtree if path.exist? end private