Darwin Build Environment Help Center

build crash

append delete neri

windows version 11
builder v3.733.1
ios 18.5

my app teach mathematics childrens with the help of ai

i am using cocoapods for autentication and admob i would love to get an help

https://pmbaty.com/paste/?82d08cf30475c424#Bt8LH2sKwxvnaj11fGJn5do8qUbaCgxfz1L91s3vACVW

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

It's a crash in the Swift compiler. More precisely, in the Windows version of the Swift compiler. Unfortunately, since version 3.70, I no longer use my own builds of the Swift/LLVM toolchain, I rely on the *official releases* from the Swift team, that can be downloaded from their official page: https://www.swift.org/install/windows/

As this builder is now using the official Swift compiler, there's little I can do about these crashes.

What you can try at this point (with decreasing chances of success):

Option 1 - Skip Pods and use pre-built versions of your dependencies. Your crash happens while building the GTMAppAuth pod, which is part of Google's Firebase. So, download the precompiled release of Firebase for iOS that corresponds to the version you need, and add these frameworks to your build using the "Add extra framework" button. As long as your dependencies are available in precompiled form, this option will *always* work.

Option 2 - Replace the Swift binaries in the Toolchain directory with a *development snapshot* version of the official Swift executables (that you can find at the bottom of their download page), not the release version. Then try rebuilding your project thoroughly, including cleaning the compiler cache. Maybe the development snapshot of the Swift compiler will have this bug fixed.

Option 3 - Submit a bug report to the official maintainer of the Windows version of the Swift compiler, I believe (might be mistaken) his name is Saleem Abdulrasool (@compnerd): https://github.com/compnerd

I hope this helps

append delete #2. neri

i have tried to skip but then i am getting that i have missing files , since its part of the google sign in git hub package i assume its because i skip the pods

https://pmbaty.com/paste/?e7ca9191706f2bb3#KLPuUb8SPTMvPWLhbD5vZZdFyfLKWfFhc3S1h1eQVN6

append delete #3. Pierre-Marie Baty

You probably need to add extra include flags to the compiler. Do a search for a file called "GIDSignIn.h" in your Xcode project root directory. Tell me what it finds and I'll tell you what extra compiler flag to add.

append delete #4. neri

thats where it is

https://postimg.cc/6ygnDPnP

again thanks for helping :)

append delete #5. Pierre-Marie Baty

Let me explain what I am doing here. The compiler fails because your project’s source code tells it to include a file whose relative path is GoogleSignIn/GIDSignIn.h

This relative path was checked against all of the compiler’s include search paths, and it was found under none of them.

Since that file actually exists, and it is located in a subdirectory whose name also matches the relative path at which your source code tells the compiler to load it, what is needed here to make the compiler able to find it is to add the path that leads to that subdirectory to the compiler’s list of include search paths. The compiler being called from the root of your Xcode project, the path to append to that list shall be the relative path, starting from the root of your Xcode project, that leads to that directory: Pods/GoogleSignIn/GoogleSignIn/Sources/Public

Compilers can be instructed to add a path to their list of known include search paths using the -I… flag. This is a standard flag.

So, add this to the extra compiler flags:

%
-IPods/GoogleSignIn/GoogleSignIn/Sources/Public
%

This will enable the compiler to load the missing include file successfully.

Proceed likewise if you have other compilation errors.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty