react-native-skia: library not found for -lskia
my package.json
"react-native": "0.68.0",
"@shopify/react-native-skia": "^0.1.120",
build - debug ok
build - release ok
but build - archive error
<
If I proceed with the archive to launch on the App Store, I face the error.
library not found for -lskia
library not found for -lsvg
after pod install
my Pods-…release.xconfig
OTHER_LDFLAGS = $(inherited) -ObjC...
my Library search path
The library does not exist in the path.
Is there a manual that is not mentioned separately for the installation manual for your library?
What I tried
npm install @shopify/react-native-skia
cd ios && pod install
I understand that react-native-skia uses a skia library. Is there any solution or opinion that I can try for the error? have you ever tested a build to upload to the App Store through an archive?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (1 by maintainers)
@chrfalch The issue is still there while archiving, nothing changed in my
pbxproj
. It’s working fine after I remove react native skia in my existing project.I think this pod setting for react-native pod install has something to do with this
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end
React native version: 0.67.3 Skia version: 0.1.134 Xcode : 13.4.1
I also had the same issue in my CI server.
In my cases, the below
project.pbxproj
changes raised the issue by enabling “Parallelize build for command-line builds”:BuildIndependentTargetsInParallel = YES
was added.objectVersion
value was changed from46
to53
LD_RUNPATH_SEARCH_PATHS
value was changed from single string to multiple string array.I reverted the
project.pbxproj
file, and then the issue was resolved.