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?
Hi, @leechanghoon3024! I created a new react-native project, added Skia as per the documentation and did the archive command in XCode without any errors. Not sure why this is happening to you, there are already apps using react-native-skia on iOS published without any issues so I don't know why this is happening. Could you try to reproduce on a new RN project?
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 = YESwas added.objectVersionvalue was changed from46to53LD_RUNPATH_SEARCH_PATHSvalue was changed from single string to multiple string array.
I reverted the project.pbxproj file, and then the issue was resolved.
I am also facing the same issue!
Is there any known fix for this?
Skia version: "@shopify/react-native-skia": "^0.1.130",
Hi @prince-sugarfit, have you tried the recommended fixes that @bluekyu suggested?
We don't have any clear reproduction for this issue but you're welcome to participate and create one if possible?
objectVersion value was changed from 46 to 54
Reverting it fixed the issue...thanks @chrfalch & @bluekyu
Awesome :) Which version of XCode are you using?
Using XCode. Version 13.2.1 (13C100) But release builds are generated with Bitrise - CI
Could it be something related to Bitrise and Xcode versions? Not sure. The objectVersion field has nothing to do with React Native Skia AFAIK - this field describes the version of the Xcode objects are used to create the project file.
Hello, i had exactly the same problem, put objectVersion from 54 to 46 solved this, pretty strange.
React native version: 0.67.4 Skia version: 0.1.132 Xcode: 13.4.1
@chrfalch
The issue still persists even when following all the instructions @bluekyu shared
i'm using the latest skia version 0.1.134 with xCodeVersion 13.4.1 (13F100)
@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
@chrfalch
still don't working also for me after upgrading to skia 136
React native version: 0.66.2 Skia version: 0.1.136 Xcode : 13.4.1
objectVersion = 46
I don't think this library it's usable at the moment till this problem get fixed.
confirming objectVersion = 54 causes issues on CI builds
RN: 0.67.4
skia version 0.1.137.
Xcode 13.4.1
Seeing the same error in Bitrise CI, objectVersion makes no difference between 46 and 53.
RN: 0.68.1 Skia: 0.1.142 Machine: Xcode 13.2.x on macOS 11.6 (Big Sur)
Seeing the same error in Bitrise CI, objectVersion makes no difference between
46and53.RN: 0.68.1 Skia: 0.1.142 Machine: Xcode 13.2.x on macOS 11.6 (Big Sur)
me as well any solution? app unuploadable
S̶u̶p̶p̶o̶r̶t̶ ̶f̶o̶r̶ ̶S̶D̶K̶ ̶4̶6̶ ̶o̶n̶ ̶t̶h̶e̶ ̶C̶l̶a̶s̶s̶i̶c̶ ̶b̶u̶i̶l̶d̶ ̶s̶e̶r̶v̶i̶c̶e̶ ̶(̶e̶x̶p̶o̶ ̶b̶u̶i̶l̶d̶:̶[̶i̶o̶s̶|̶a̶n̶d̶r̶o̶i̶d̶]̶)̶ ̶w̶i̶l̶l̶ ̶b̶e̶ ̶r̶e̶a̶d̶y̶ ̶a̶b̶o̶u̶t̶ ̶t̶w̶o̶ ̶w̶e̶e̶k̶s̶ ̶f̶r̶o̶m̶ ̶t̶h̶e̶ ̶d̶a̶t̶e̶ ̶o̶f̶ ̶t̶h̶i̶s̶ ̶r̶e̶l̶e̶a̶s̶e̶.̶ ̶S̶D̶K̶ ̶4̶6̶ ̶i̶s̶ ̶t̶h̶e̶ ̶f̶i̶n̶a̶l̶ ̶r̶e̶l̶e̶a̶s̶e̶ ̶t̶o̶ ̶s̶u̶p̶p̶o̶r̶t̶ ̶t̶h̶e̶ ̶c̶l̶a̶s̶s̶i̶c̶ ̶b̶u̶i̶l̶d̶ ̶s̶e̶r̶v̶i̶c̶e̶,̶ ̶s̶o̶ ̶w̶e̶ ̶w̶o̶u̶l̶d̶ ̶e̶n̶c̶o̶u̶r̶a̶g̶e̶ ̶s̶w̶i̶t̶c̶h̶i̶n̶g̶ ̶t̶o̶ ̶E̶A̶S̶ ̶B̶u̶i̶l̶d̶ ̶n̶o̶w̶ ̶i̶n̶s̶t̶e̶a̶d̶ ̶o̶f̶ ̶w̶a̶i̶t̶i̶n̶g̶!̶ Classic build support (expo build:[ios|android]) is available for SDK 46 as of Friday, August 19th. As mentioned elsewhere in these notes, this last version of the Expo SDK that will support Classic Builds! You should migrate to EAS Build soon to ensure that you are able to continue submitting your app as App Store version requirements change in the future.
https://docs.expo.dev/eas/
is this right, also omg i couldn't get 46, redownloaded pod install and it worked im in shock.i feel like i owe someone money im not sure who
for me in the first I had many libraries not found but after I changed objectVersion from 46 to 54 the problem was near to be resolved, now I have just one library not found :
d: library not found for -lReact-CoreModules
its resolved for me, you will need to navigate to your framework - Build Settings - Deployment - iOS Deployment target and check if it is the same as main project, if not just set the correct one.
issue still occurring with fastlane. Any updates on it?
Looks like there is a solution here: https://github.com/facebook/react-native/issues/34102#issuecomment-1180727214
However, I'm using a managed Expo Dev Client, so it'd require using a Config Plugin. Not sure if anyone knows how to do that for that solution.