Amplitude-TypeScript
Amplitude-TypeScript copied to clipboard
chore: update ReactNative example to support Mac Catalyst
Summary
Updates React Native example to support Mac Catalyst.
- Updated React Native packages (
react-native
was updated to0.71.7
). - Added a dummy Swift file to generated
ios
folder to use Swift libraries during building/linking.
Different XCode/React-Native combinations can have different issues. My environment: XCode 14.2, Ubuntu with MacOS as guest system (qemu virtualization).
Steps:
-
yarn
, thenpod install
inios
folder -
Open
ios
folder in XCode and try to build withMac Catalyst
destination. -
If there is a error
... duplicated symbols for architecture x86_64
set linking optionDon't Dead-Strip Inits and Terms
toYes
-
The build should be successful.
-
The example app should start.
Checklist
- [x] Does your PR title have the correct title format?
- Does your PR have a breaking change?: no