CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Pageboy' from project 'Pods')
Asked Answered
C

7

25

I am getting the below error when I build my iOS project in Xcode 13.0 for Simulator 15 with Swift 5.5

Screenshot

Cysto answered 23/9, 2021 at 6:22 Comment(2)
How did you resolve this?Magnetograph
i have resolved the issue by manually changing the ios target of every pod to higher level and i'm using Adjust and that have to solve the issue which is in Adjust.h replacing + (nullable id)getInstance; with + (nullable instancetype)getInstance;Cysto
S
9

Issue related to your's dependencies: You must have to wait for those dependencies to update to Swift 5.5, otherwise, you have to stay on Xcode 12. In my case, I updated to 13 during development.

Systematize answered 23/9, 2021 at 6:26 Comment(2)
How do you see which dependencies?Pastoral
i have to build every time and check which pod is having issue than updating that one.Cysto
F
9

For Example:

The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')

The outdated pod here seems to be ExpoModulesCore

and if it does not work, like it did not for me lol:

follow this: https://mcmap.net/q/344096/-command-compileswiftsources-failed-with-a-nonzero-exit-code-xcode-13

For anyone looking for an answer.

run

cd ios
pod update ExpoModulesCore

and repeat the previous step for every outdated pod, if there are more outdated.

Furtado answered 13/2, 2022 at 19:50 Comment(0)
T
5

I am working with react native and had a very similar error.

This worked for me:

cd ios && rm -rf Pods && pod cache clean --all && pod install && cd ..
Tartary answered 5/11, 2022 at 4:36 Comment(0)
F
1

For me it helped to downgrade XCode. I got back from 13.3 to 13.2.
You can get previous versions this way:
https://mcmap.net/q/93968/-where-can-i-download-old-versions-of-xcode-closed

Getting back to version 13.3 caused same problems again.

Freewill answered 25/3, 2022 at 8:52 Comment(0)
V
1

I had a dependency that was using a newer version of Swift that my version of Xcode did not support.

I had a similar stacktrace

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'NEW_DEPENDENCY' from project 'Pods')

You can fix the issue by updating MacOS and Xcode

Velocity answered 8/3, 2023 at 7:27 Comment(0)
R
0

I tried everything mentioned here without success. What worked for me was to reinstall the latest version of Xcode

Raina answered 27/6 at 8:19 Comment(0)
P
-2

I got this as well, but I just had to add my package again yarn add ... so it autolinked correctly with react-native

Pedro answered 8/4, 2022 at 17:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.