mrousavy / react-native-mmkv

⚡️ The fastest key/value storage for React Native. ~30x faster than AsyncStorage!
MIT License
5.29k stars 232 forks source link

Building for 'iOS-simulator', but linking in dylib (/opt/local/lib/libz.1.3.1.dylib) built for 'macOS' #675

Closed mrdomino closed 1 week ago

mrdomino commented 1 week ago

I am getting this with a fresh react-native project if i do yarn add react-native-mmkv when I click "run" in XCode.

Specific repro steps are:

npx react-native@latest init testapp
# say no to "install pods"
cd testapp
cd ios
bundle
bundle exec pod install
cd -
yarn add react-native-mmkv
cd ios
bundle exec pod install
cd -
open ios/testapp.xcworkspace
# select a simulator target and push "play"
mrdomino commented 1 week ago

🙁 https://github.com/mrdomino/dotconfig/commit/c816cbc7502b14e5a35c3f21e36648bdb205b3b7

It turns out you guys are the only jerks in the world who will actually respect a guy's LIBRARY_PATH.

mrdomino commented 1 week ago

(Please feel free to label this “PEBKAC” if you have such a label.)