I am getting the below error when I build my iOS project in Xcode 13.0 for Simulator 15 with Swift 5.5
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.
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.
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 ..
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.
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
I tried everything mentioned here without success. What worked for me was to reinstall the latest version of Xcode
I got this as well, but I just had to add my package again yarn add ...
so it autolinked correctly with react-native
© 2022 - 2024 — McMap. All rights reserved.