Hey guys so I have an expo managed app and I want to use a notification library called Notifee which has an expo plugin. This plugin adds native code not supported by Expo Go, so I'm forced to enter bare workflow and build native iOS and Android folders.
I'm building the iOS package by running expo run:ios. And build fails due to something with ExpoModulesCore:
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project
'Pods')
So I did some research and found that others had the same issue here on Stackoverflow. I tried altering the pod file and updating ExpoModulesCore pod update ExpoModulesCore as this answer suggests https://stackoverflow.com/a/71104305/8561357
After updating ExpoModulesCore and re-building, I get an additional error:
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/kevin/Library/Developer/Xcode/DerivedData/Addressbook-gmgtddiltntfosevknuexadcwkpt/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-BC35D93E0A296DC41D8D893483CBC12F.sh (in target 'FBReactNativeSpec' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
(2 failures)
So why does this happen?
I saw something about Xcode version 13 not working, only 12??
Is Expo version incompatible?
Really trying to figure out what's going on here
There are a few potential causes for these errors:
Xcode version compatibility: As you mentioned, it is possible that the version of Xcode you are using is not compatible with the version of the ExpoModulesCore and FBReactNativeSpec targets. It is recommended to use the latest stable version of Xcode for your app.
Expo version compatibility: It is also possible that the version of Expo you are using is not compatible with the version of the ExpoModulesCore and FBReactNativeSpec targets. You can try updating your Expo version to the latest stable release and see if that resolves the issue.
Podfile configuration: The Podfile in your app's root directory specifies the dependencies that are included in your app, including the ExpoModulesCore and FBReactNativeSpec targets. If there are any issues with the configuration of your Podfile, it could cause build errors. You can try modifying the Podfile to see if that resolves the issue.