react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

library not found for -lskia

Open leechanghoon3024 opened this issue 4 years ago • 21 comments

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

image

after pod install

my Pods-....release.xconfig OTHER_LDFLAGS = $(inherited) -ObjC...

image

my Library search path

image

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?

leechanghoon3024 avatar Apr 18 '22 04:04 leechanghoon3024

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?

chrfalch avatar Apr 18 '22 11:04 chrfalch

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 from 46 to 53
  • 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.

bluekyu avatar Apr 26 '22 14:04 bluekyu

I am also facing the same issue!

Is there any known fix for this?

Skia version: "@shopify/react-native-skia": "^0.1.130",

prince-sugarfit avatar Jun 06 '22 16:06 prince-sugarfit

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?

chrfalch avatar Jun 07 '22 06:06 chrfalch

objectVersion value was changed from 46 to 54

Reverting it fixed the issue...thanks @chrfalch & @bluekyu

prince-sugarfit avatar Jun 07 '22 10:06 prince-sugarfit

Awesome :) Which version of XCode are you using?

chrfalch avatar Jun 07 '22 10:06 chrfalch

Using XCode. Version 13.2.1 (13C100) But release builds are generated with Bitrise - CI

prince-sugarfit avatar Jun 07 '22 10:06 prince-sugarfit

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.

chrfalch avatar Jun 07 '22 10:06 chrfalch

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

riepmore avatar Jun 15 '22 16:06 riepmore

@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)

ali-io avatar Jul 01 '22 18:07 ali-io

@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

oldrtatu avatar Jul 02 '22 12:07 oldrtatu

@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.

giona69 avatar Jul 09 '22 10:07 giona69

confirming objectVersion = 54 causes issues on CI builds

RN: 0.67.4 skia version 0.1.137.
Xcode 13.4.1

chrispyballer avatar Aug 04 '22 05:08 chrispyballer

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)

samcarlinone avatar Aug 23 '22 19:08 samcarlinone

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)

me as well any solution? app unuploadable

alexokin1 avatar Sep 01 '22 15:09 alexokin1

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

alexokin1 avatar Sep 01 '22 15:09 alexokin1

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

bilal-prog avatar Sep 16 '22 08:09 bilal-prog

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.

bilal-prog avatar Sep 16 '22 08:09 bilal-prog

issue still occurring with fastlane. Any updates on it?

iamcrazyshank avatar Dec 15 '22 10:12 iamcrazyshank

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.

nandorojo avatar Jan 23 '23 17:01 nandorojo