Closed MarcHbb closed 1 year ago
Yeah, the same issue is on our side. Any ideas on how to deal with it? BTW. all started when we try to add firebase. Strangely, SKIA used to work before that...
I had this issue while having already firebase installed, never tried without firebase, but you might be right. I've seen similar issues on many forums
I suspect that adding these lines to app.json could have broken it:
{
"expo": {
"plugins": [
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
]
}
}
Should I remove the these lines ?
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
This will probably break Firebase. But here's an issue I just found that has some solutions: https://github.com/Shopify/react-native-skia/issues/652
@Episodex I've already look through this issue. But it's not related to mange workflow with expo, all workaround or fixes are for bare workflow. There's only one related to eas and exo managed workflow, with a patch or somehow. Tried this solution but its not working :/
We'll check this in a while also. The solution with custom plugin.
I will double check the custom plugin solution too thanks :)
It works with the plugin solution. We put the plugin code in /plugins/ folder in withSkia.js file.
Then in app.json:
"plugins": [
"@react-native-firebase/app",
["./plugins/withSkia"],
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
],
Glad to hear that @Episodex has had success with the plugin - seems like you're on a rather old version of RN Skia, we've made a lot of improvement (we hope!) regarding interoperability with Firebase etc. Closing this for now - please reopen if the problem still occurs.
Still not working for me even with the plugin @Episodex can you share your package versions ?
package.json
"expo": "^48.0.19",
"react-native": "0.69.9",
"@shopify/react-native-skia": "0.1.141",
"@react-native-firebase/analytics": "~15.4.0", ========== > (also tried with 15.7.0)
"@react-native-firebase/app": "~15.4.0", ========== >(also tried with 15.7.0)
app.config
"plugins": [
"@react-native-firebase/app",
"./withSkia", ========== > ( also tried with ["./withSkia"] )
"./withReactNativeMaps",
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 31,
"targetSdkVersion": 31,
"buildToolsVersion": "31.0.0"
},
"ios": {
"deploymentTarget": "13.0",
"useFrameworks": "static"
}
}
],
],
Error :
❌ (node_modules/@shopify/react-native-skia/cpp/skia/include/core/SkStream.h:11:10)
9 | #define SkStream_DEFINED
10 |
> 11 | #include "include/core/SkData.h"
| ^ 'include/core/SkData.h' file not found
12 | #include "include/core/SkRefCnt.h"
13 | #include "include/core/SkScalar.h"
14 | #include "include/private/SkTo.h"
Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the APPNAME editor. (in target 'APPNAME' from project 'APPNAME')
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/x86_64/SkiaManager.o /Users/expo/workingdir/build/node_modules/@shopify/react-native-skia/ios/RNSkia-iOS/SkiaManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
▸ (1 failure)
2023-07-02 05:28:14.369 xcodebuild[4291:12039] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-07-02 05:28:14.369 xcodebuild[4291:12039] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-07-02 05:28:14.407 xcodebuild[4291:12039] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2023-07-02 05:28:14.407 xcodebuild[4291:12039] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2023-07-02 05:28:14.407 xcodebuild[4291:12039] XType: unable to make a connection to the font daemon!
2023-07-02 05:28:14.407 xcodebuild[4291:12039] XType: XTFontStaticRegistry is enabled as fontd is not available.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/x86_64/SkiaManager.o /Users/expo/workingdir/build/node_modules/@shopify/react-native-skia/ios/RNSkia-iOS/SkiaManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
(1 failure)
Exit status: 65
Description
When I install react-native-skia (npx expo install @shopify/react-native-skia) and want to run a new build with eas, I get an error on Fastlane step. Managed to create a build right before install react-native-skia.
XCode Logs :
`Users/expo/workingdir/build/node_modules/@shopify/react-native-skia/cpp/skia/include/core/SkStream.h:11:10: fatal error: 'include/core/SkData.h' file not found
include "include/core/SkData.h"
1 error generated.`
Version
"@shopify/react-native-skia": "0.1.141"
Steps to reproduce
Create a build with eas build
Snack, code example, screenshot, or link to a repository
My package.json :