Ziggeo / ReactNativeSDK

React Native SDK
Apache License 2.0
7 stars 6 forks source link

IOS current version not working on Apple Silicon #90

Closed sam-houle1 closed 2 years ago

sam-houle1 commented 2 years ago

Hi, I recently changed to a M1 mac and since then I can't launch the app on IOS. When I try to lunch the simulator, I have this error: Screen Shot 2022-01-12 at 1 31 07 PM

And when I try to launch on my device, I end up on my app loading screen but have this error and the app does not connect to my metro bundle: dyld: Library not loaded: dyld: Library not loaded: @rpath/PINOperation.framework/PINOperation

My project still works on my old mac. The package version that use is 1.6.4.

Bane-D commented 2 years ago

Hi Sam, thank you for reporting it to us.

I see that one of our colleagues has started looking into this, however we do not have any updates at this time.

We will keep you posted as we know more.

katolykdev commented 2 years ago

Hi, Sam. Please add use_frameworks! on the Podfile.

01

sam-houle1 commented 2 years ago

Hi @katolykdev, we can't use use_frameworks with flipper: https://fbflipper.com/docs/getting-started/react-native-ios/

I tried to build the library static as mentioned here but it seems to works only for old react-native version.

Bane-D commented 2 years ago

Hi Sam,

Can you please try to recompile your app again? My colleague had pushed the update to the current version.

Do let us know how it goes for you.

sam-houle1 commented 2 years ago

Hi @Bane-D, I upgraded to 1.6.5 but I still have the exact same issue.

Bane-D commented 2 years ago

OK. Thank you for letting us know.

Passing the info to my colleague in iOS team to look into it further.

Just to know, did you by any chance run following before compiling app:

cd ios
rm -rf build
xcodebuild clean
sam-houle1 commented 2 years ago

I think we can close this issue, not sure what fixed it, but few weeks after I posted the error I stop getting it.